[MacPorts] #28389: ImportError: No module named M2Crypto

MacPorts noreply at macports.org
Sun Feb 13 04:27:32 PST 2011


#28389: ImportError: No module named M2Crypto
------------------------------------+---------------------------------------
 Reporter:  miguel.erazo@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  1.9.2                                
 Keywords:                          |        Port:                                       
------------------------------------+---------------------------------------
 Hello,

 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,

 Miguel

-- 
Ticket URL: <https://trac.macports.org/ticket/28389>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list