#10082: Python spkg: ImportError: No module named math
------------------------+---------------------------------------------------
   Reporter:  mpatel    |       Owner:  tbd     
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:  sage-4.6
  Component:  packages  |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------
 On the Skynet hosts flavius (x86_64-Linux-k8-f12), iras (ia64-Linux-suse),
 and menas (x86_64-Linux-core2-suse), installing the Python package
 sometimes fails with
 {{{
 #!python
 [...]
 Sleeping for three seconds before testing python
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
 ImportError: No module named math
 math module failed to import
 }}}
 This is with 4.6.alpha2.  Running `./sage -python` and doing `import math`
 works.

 From near the end of `spkg-install`:
 {{{
 #!sh
 [...]
 # Sleeping for three seconds so that parallel 'make install' catches up
 # with the following test.
 echo "Sleeping for three seconds before testing python"
 sleep 3

 # Make sure extension modules were built correctly.
 python -c "import math"

 if [ $? -eq 0 -a -f "$SAGE_LOCAL/bin/python" ]; then
     echo "math module OK"
 else
     echo "math module failed to import"
     exit 1
 fi
 [...]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10082>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to