problems installing M2Crypto on Mint: follow-up

岁酱吖の 提交于 2019-12-03 16:31:09

It looks like it is a bug introduced in M2Crypto 0.21.1, there is a patch here that correct the problem.

Maybe you could try to install an old version of M2Crypto (like the 0.20.1-1.1) or apply the patch manually with the patch command.

After two years the problem in m2crypto0.21.1 still exists, so here is a note for Ubuntu users. If you're not using virtualenv, you can easily fix it by installing m2crypto from Ubuntu PPA instead of pip:

sudo pip uninstall m2crypto 
sudo apt-get install python-m2crypto

Seems like the problem is fixed in the PPA, but not in the project's repo. At least it worked for me at Ubuntu 12.04.

To expand the answer above:

This is a bug in M2Crypto 0.21.1. It has to do with the fact that SSLv2 was removed from OpenSSL on many platforms on the grounds of it being too insecure, notably Debian [1] and Ubuntu.

The removal is not detected during compile. There is a widely available patch that fixes this. I incorporated this into the M2Crypto source code on Github.

You can use pip to install directly from the repository like so:

pip install -e git+https://github.com/Hypernode/m2crypto#egg=M2Crypto

For those who want to inspect the (much published) patch that fixes this: b432d36

Edit: moved to another location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!