On Feb 6, 2010, at 12:53 PM, Dr. David Kirkby wrote:
Dr. David Kirkby wrote:
Robert Bradshaw wrote:
On Feb 6, 2010, at 3:58 AM, Dr. David Kirkby wrote:
I've noticed an issue at
http://t2nb.math.washington.edu:8000/
where something fails when using the GUI, but which works at the
command line.
import haslib
Are you sure that's not a typo? You probably want hashlib (which
should work regardless of OpenSSL being found). I'd be really
surprised if "import haslib" (missing h) worked anywhere.
Hi Robert,
yes, you are correct, it was a typo. It is actually
"import _hashlib"
which causes the problem. It works at the command line, but not in
the browser.
Doesn't work in either for me.
Just checking python's spkg-install, it is hashlib, not _hashlib
which is checked.
-------------------------------------------
# Make sure sufficient crypto support is available in the built
python.
# This is critical.
python -c "import hashlib"
if [ $? -eq 0 -a -f "$SAGE_LOCAL/bin/python" ]; then
echo "hashlib module imported"
exit 0
else
echo "hashlib module failed to import"
exit 1
fi
-----------------------------------------------
Either way, this fails unless those libraries are in the search
path. Sage will simply build python, then exit with the message
"hashlib module failed to import"
and terminate the build.
rober...@t2:~$ /usr/local/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/
sage -python -c "import hashlib"
rober...@t2:~$ echo $?
0
rober...@t2:~$ /usr/local/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/
sage -python -c "import _hashlib"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: ld.so.1: python: fatal: libssl.so.0.9.7: open failed: No
such file or directory
I can't see anything wrong with adding /usr/sfw/lib to the search
path in python. It can't break anything, and will allow Sage to
build on Solaris. Whether it will be 100% functional at run-time is
another matter.
No, that won't hurt. The question is why do we need to if hashlib
imports fine? We don't need _hashlib.
- 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