开发者

Error importing module _md5, and relevant RPM

I have a python script that used to run, although since moving servers at work it now throws up a strange error:

>>> import _md5
    ImportError: No module named _md5

The general setup is all correct, as is my python path and seemingly everything else. I was told that I need to install the relevant RPM for this to work, but have no idea what this might be - could anyone please point me in the right direction?

These machines have a setup that prohibits me using yum, so I need to make 开发者_如何学JAVAa request to those maintaining the system about which RPM I want installed.


Based on extra bit of information from the OP, they use Python 2.5+ on the new server. Suggested remedy is to use standard hashlib module. Which provides MD5 hash implementation among other things.


Install openssl-devel and rebuild.

Or better yet, build your own Python package and deploy everywhere.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜