On May 22, 2010, at 4:41 PM, geep999 wrote:
On May 22, 11:27 pm, Robert Bradshaw <rober...@math.washington.edu>
wrote:
This is sounding a lot like the issues we had on OpenSolaris (that
were never completely/correctly resolved, specifically hashlib is
blamed when unrelated stuff goes wront). Could you run
SAGE_ROOT/local/bin/python -c "import hashlib"
And see what the traceback is? For another datapoint, also try
SAGE_ROOT/local/bin/python -c "import zlib"
Robert, I have executed the commands in a script test.sh thus:
#!/bin/bash
cd /space3/sage/space/software/Source/sage/sage-4.4.2/local/bin
./python -c "import hashlib"
if [ $? -eq 0 ]; then
echo "hashlib imported"
else
echo "hashlib module failed to import"
fi
./python -c "import zlib"
if [ $? -eq 0 ]; then
echo "zlib imported"
else
echo "zlib module failed to import"
fi
./python -c "import totalrubbish"
if [ $? -eq 0 ]; then
echo "totalrubbish imported"
else
echo "totalrubbish module failed to import"
fi
The results are:
hashlib imported
zlib imported
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named totalrubbish
totalrubbish module failed to import
That's almost certainly testing your system Python.
Side issue - sorry that I don't understand the use of the SAGE_ROOT.
(Do you mean $SAGE_ROOT ?)
Yes, or wherever you installed sage (if you don't have $SAGE_ROOT
defined in your environment).
Anyway, I have set SAGE_ROOT in /space/software/Source/sage/
sage-4.4.2/
sage
# Set SAGE_ROOT to the location of the sage install.
SAGE_ROOT="/space3/sage/space/software/Source/sage/sage-4.4.2"
I then try to use SAGE_ROOT via the subshell as documented in
install.log:
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/space/software/Source/sage/sage-4.4.2/spkg/build/
python-2.6.4.p7' && '/space/software/Source/sage/sage-4.4.2/sage' -sh)
but as sage-sage is not yet installed I get this error:
/space/software/Source/sage/sage-4.4.2/sage: line 39: /space3/sage/
space/software/Source/sage/sage-4.4.2/local/bin/sage-sage: No such
file or directory
Try the above using the python inside $SAGE_ROOT/local/bin and see if
it gives anything different. The interesting part will be the
traceback it gives (or not).
- Robert
--
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