Opened 10 years ago

Closed 10 years ago

#28389 closed defect (invalid)

ImportError: No module named M2Crypto

Reported by: miguel.erazo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: py-m2crypto



I just updated my system using 'sudo port selfupdate'. Then, issued a 'sudo port upgrade outdated'. Then, to fully install python I issued 'sudo port install python_select' and then 'sudo python_select python27'.

Now, to install M2crypto I executed:

sudo port install py-m2crypto ---> Computing dependencies for py-m2crypto ---> Cleaning py-m2crypto'

So the installation does not output any error. But when I try to run a program using it I get:

from M2Crypto import X509 ImportError: No module named M2Crypto

I am using:

$python --version $Python 2.7.1

$uname -a $Darwin MacBook-Pro.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386

What could be wrong?

Thanks in advance,


Change History (1)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Port: py-m2crypto added
Resolution: invalid
Status: newclosed

You installed the module for python 2.4, so of course python 2.7 can't find it.

Note: See TracTickets for help on using tickets.