> Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) > [GCC 4.0.1 (Apple Inc. build 5493)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import MySQLdb > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "build/bdist.macosx-10.3-i386/egg/MySQLdb/__init__.py", line 19, in > <module> > File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in <module> > File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 6, in > __bootstrap__ > ImportError: > dlopen(/Users/easyboy/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.3-i386.egg-tmp/_mysql.so, > 2): no suitable image found. Did find: > /Users/easyboy/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.3-i386.egg-tmp/_mysql.so: > mach-o, but wrong architecture >>>> > > vi e' mai successo ? >
La versione di python che hai e' compilata per x86_64 (presumo, a meno che non sei su powerpc) mentre il modulo e' per i386 -- Roberto De Ioris http://unbit.it _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python