Search code examples
pythonm2crypto

error in importing M2Crypto Mac OS X


when I try to import M2Crypto in python, I get following error:

I'm using Mac OS X, python 2.7

ImportError: dlopen(/Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so, 2): Symbol not found: _X509_free
  Referenced from: /Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so
  Expected in: flat namespace
 in /Users/armita/.python-eggs/M2Crypto-0.22.3-py2.7-macosx-10.9-intel.egg-tmp/M2Crypto/__m2crypto.so

what should I do?


Solution

  • this problem solved by installing M2Crypto version 21 or 23, 22 causes this problem.