Robert Bradshaw wrote:
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.

It does if you set LD_LIBRARY_PATH first on 't2'

$ export LD_LIBRARY_PATH=/usr/sfw/lib
./sage
import _hashlib

will work.

I've also got _haslib working on the notebook at

http://t2nb.math.washington.edu:8000

try it and see. You will not get the error you used to get.


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

Sorry, I realised the problem - we are discussing two different issues.

On Solaris 10 (SPARC), i.e. t2, this has never been an issue, as python has built ok. There is no need to do anything fancy - it just works. It's probably the case the OpenSSL libraries are *not* found, but the haslib module builds, which is enough to pass the test in spkg-install.

On OpenSolaris, python does not build with haslib, without installing OpenSSL. Ask William - he was the one that told me that installing OpenSSL would solve the problem on OpenSolaris.

I think it would be advantageous to add /usr/sfw/lib to that search path, as at least on Solaris 10, it will give some extra functionality. On OpenSolaris it will not, as the OpenSSL libraries are not installed by default. When they get installed, they install in /usr/local/ssl, and python finds them.

dave

--
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