[Python] strano "orrore" su mac os x
salvatore monaco
salvatore.monaco a gmail.com
Dom 28 Nov 2010 14:48:12 CET
ho travato un post che suggeriva questo
sudo ARCHFLAGS='-arch x86_64' python setup.py build
sudo ARCHFLAGS='-arch x86_64' python setup.py install
il risultato e':
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
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-x86_64.egg/_mysql.py:3:
UserWarning: Module _mysql was already imported from
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-x86_64.egg/_mysql.pyc,
but /Users/easyboy/Downloads/MySQL-python-1.2.3 is being added to sys.path
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "MySQLdb/__init__.py", line 19, in <module>
import _mysql
File "build/bdist.macosx-10.3-x86_64/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.3-x86_64/egg/_mysql.py", line 6, in
__bootstrap__
ImportError:
dlopen(/Users/easyboy/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.3-x86_64.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-x86_64.egg-tmp/_mysql.so:
mach-o, but wrong architecture
>>>
2010/11/28 Roberto De Ioris <roberto a unbit.it>
>
> > 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 a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
--
Salvatore Monaco
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20101128/b1b1ecff/attachment.html>
Maggiori informazioni sulla lista
Python