[Buildbot-devel] Buildbot and Solaris

Russel Winder russel at russel.org.uk
Tue Aug 7 16:10:06 UTC 2007


On Tue, 2007-08-07 at 10:47 -0500, Dustin J. Mitchell wrote:

> Just to leave buildbots out of it, please try:
> |> python
> Python 2.5.1 (r251:54863, Apr 22 2007, 13:18:20) 
> [GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import md5
> |>

Sorry, quite right, I should have tried this earlier.

Works fine on Ubuntu.  Fails dismally on Solaris.  Actually works if I
use python2.3 on Solaris so the SFW install work, it is just the SMC
install that doesn't.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.5/md5.py", line 6, in <module>
    from hashlib import md5
  File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/usr/local/lib/python2.5/hashlib.py", line 60, in
__get_builtin_constructor
    import _md5
ImportError: No module named _md5

Is the _md5 module supposed to be statically compiled into the Python
interpreter rather than being a shared library? 

I re-read your earlier email:

> I don't see _md5.so in there, which is the lib you need.  md5.py is a
> wrapper around _md5, which is a CPython module.  It's a common trick in
> the Python standard library.

so hunted around for '*md5*.so*'.  On Ubuntu I get:

|> locate '*md5*.so*'
/usr/lib/python2.4/lib-dynload/md5.so
/usr/lib/sasl2/libcrammd5.so.2
/usr/lib/sasl2/libcrammd5.so
/usr/lib/sasl2/libdigestmd5.so.2
/usr/lib/sasl2/libdigestmd5.so
/usr/lib/sasl2/libcrammd5.so.2.0.22
/usr/lib/sasl2/libdigestmd5.so.2.0.22
/usr/lib/ruby/1.8/i486-linux/digest/md5.so

So there appears to be no shared library for Python 2.5, yet md5 import
works fine.  On Solaris 10 I get a long list, I removed all the entries
from /platform:

/lib/libmd5.so
/lib/libmd5.so.1
/lib/sparcv9/libmd5.so
/lib/sparcv9/libmd5.so.1
/usr/lib/libmd5.so
/usr/lib/libmd5.so.1
/usr/lib/sasl/crammd5.so.1
/usr/lib/sasl/digestmd5.so.1
/usr/lib/sasl/sparcv9/crammd5.so.1
/usr/lib/sasl/sparcv9/digestmd5.so.1
/usr/lib/security/crypt_bsdmd5.so
/usr/lib/security/crypt_bsdmd5.so.1
/usr/lib/security/crypt_sunmd5.so
/usr/lib/security/crypt_sunmd5.so.1
/usr/lib/security/sparcv9/crypt_bsdmd5.so
/usr/lib/security/sparcv9/crypt_bsdmd5.so.1
/usr/lib/security/sparcv9/crypt_sunmd5.so
/usr/lib/security/sparcv9/crypt_sunmd5.so.1
/usr/lib/sparcv9/libmd5.so
/usr/lib/sparcv9/libmd5.so.1
/usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so
/usr/sfw/lib/python2.3/lib-dynload/md5.so

-- 
Russel.
====================================================
Dr Russel Winder
41 Buckmaster Road               m: +44 7770 465 077
London SW11 1EN, UK              t: +44 20 7585 2200
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://buildbot.net/pipermail/devel/attachments/20070807/ed00c9be/attachment.bin>


More information about the devel mailing list