import _md5 fails

Help
2007-10-19
2013-04-11
  • Nobody/Anonymous

    I thought I had gotten everything but I am getting an error on '_md5'
    Import Error: No module named _md5
    using Python2.5.1
    It seems to find the md5.py module

     
    • Sebastián Santisi

      Hi!;

      I haven't any Python2.5 installation to check the error but...

      On Python documentation, the module MD5 is flagged as deprecated for 2.5 version (http://docs.python.org/lib/module-md5.html)... the module is only deprecated, msnlib would be work on Python2.5.

      Python 2.5 has added the hashlib module (http://docs.python.org/lib/module-hashlib.html), instead of md5. I think that changing the md5 import by a hashlib import and replacing the "hash = md5.md5(hash).hexdigest()" line on msncb.py with "hash = hashlib.md5(hash).hexdigest()" it will be working.

      Sebastián Santisi

       
  • Nobody/Anonymous

    It won't work It crash at least actually.

    Change:
    `import md5`
    to `import hashlib`
    and change
    `"hash = md5.md5(hash).hexdigest()" `
    to
    `hash = hashlib.md5(hash)`
    `hash = hash.hexdigest()`

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks