Hello,
Chasing the code through (because that error message turns out not to be
the real problem) my guess is that you need ssl (well, possibly ssl3)
installed. So on the Linux box where the code was compiled there is a
file /usr/lib/libssl.so and libssl3.so. And I think Python is trying to
load that. And if that fails it goes through trying to use a legacy
library called md5. So install ssl if you can. I will ask Tim if we can
do a try/except around the relevant code so that you get a warning message
(and that bit of functionality not available) instead of an exception.
(In fact, we hit this problem once before with the update code, so it just
goes to show that urllib2 is unfortunately a dangerous library to use in
Python. I think this is something Mr Python should sort out.)
Wayne
On Wed, 8 Apr 2009, Kaare Teilum wrote:
> Hi Wayne
>
> I have tried to install your precompiled 2.0.7 for 32-bit linux. Running it
> gives me the following traceback:
>
> Model read finished. Duration 1.95277404785
> Model validity check skipped
> Traceback (most recent call last):
> File "/sbinlab2/software/x32/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/AnalysisG
> ui.py", line 81, in <module>
> from ccpnmr.analysis.AnalysisPopup import AnalysisPopup
> File "/sbinlab2/software/x32/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/AnalysisP
> opup.py", line 153, in <module>
> from nijmegen.cing.CingPopup import CingPopup
> File "/sbinlab2/software/x32/ccpnmr/ccpnmr2.0/python/nijmegen/cing/CingPopup.p
> y", line 5, in <module>
> from nijmegen.cing.CingFrame import CingFrame
> File "/sbinlab2/software/x32/ccpnmr/ccpnmr2.0/python/nijmegen/cing/CingFrame.p
> y", line 23, in <module>
> from nijmegen.cing import iCingRobot
> File "/sbinlab2/software/x32/ccpnmr/ccpnmr2.0/python/nijmegen/cing/iCingRobot.
> py", line 6, in <module>
> import urllib2, httplib, mimetypes, mimetools
> File "/sbinlab2/software/x32/ccpnmr/python2.5/lib/python2.5/urllib2.py", line
> 91, in <module>
> import hashlib
> File "/sbinlab2/software/x32/ccpnmr/python2.5/lib/python2.5/hashlib.py", line
> 133, in <module>
> md5 = __get_builtin_constructor('md5')
> File "/sbinlab2/software/x32/ccpnmr/python2.5/lib/python2.5/hashlib.py", line
> 60, in __get_builtin_constructor
> import _md5
> ImportError: No module named _md5
>>>>
>
> I have tried it both on OpenSuse 10.2 and RHEL 5.3 and get the same. For
> your records I have also installed the 64-bit and that works fine.
>
> Cheers,
> Kaare
>
|