On Mar 10, 1:06 pm, John Cremona <john.crem...@gmail.com> wrote:
> Does anyone have a clue why I cannot test anything after successfully
> building 4.3.4.alpha1?
>
> For example:
>
> sage -t -verbose "devel/sage/sage/rings/number_field/unit_group.py"
> Traceback (most recent call last):
>   File "/home/jec/.sage//tmp/.doctest_unit_group.py", line 2, in <module>
>     from sage.all_cmdline import *;
>   File 
> "/home/jec/storage/sage-4.3.4.alpha1/local/lib/python/site-packages/sage/al 
> l_cmdline.py",
> line 14, in <module>
>     from sage.all import *
>   File 
> "/home/jec/storage/sage-4.3.4.alpha1/local/lib/python/site-packages/sage/al 
> l.py",
> line 134, in <module>
>     from sage.parallel.all   import *
>   File 
> "/home/jec/storage/sage-4.3.4.alpha1/local/lib/python/site-packages/sage/pa 
> rallel/all.py",
> line 1, in <module>
>     from decorate import parallel
>   File 
> "/home/jec/storage/sage-4.3.4.alpha1/local/lib/python/site-packages/sage/pa 
> rallel/decorate.py",
> line 12, in <module>
>     import multiprocessing_sage
>   File 
> "/home/jec/storage/sage-4.3.4.alpha1/local/lib/python/site-packages/sage/pa 
> rallel/multiprocessing_sage.py",
> line 14, in <module>
>     from multiprocessing import Pool
>   File "/home/jec/.sage/tmp/multiprocessing.py", line 14, in <module>
>     from processing import Pool
> ImportError: No module named processing
>          [2.0 s]
>
> This is on a 64-bit ubuntu machine.  I have another successful build
> of 4.3.4.alpha1 on a different machine (32-bit Suse) which all tests
> fine.

One guess is that during doctesting from doctesting another version of
Sage, the file "multiprocessing.py" got copied to /home/jec/.sage/tmp/
multiprocessing.py, and this is confusing Python: it should try
importing from the standard Python module "multiprocessing", but
instead it looks in this file.  So I think you should delete it.

(The Sage library file multiprocessing.py has since been renamed to
"multiprocessing_sage.py", basically for this reason.)

--
John

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to