[Python] strano "orrore" su mac os x

2010-11-28 Thread salvatore monaco
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 "", line 1, in 
  File "build/bdist.macosx-10.3-i386/egg/MySQLdb/__init__.py", line 19, in

  File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in 
  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 ?


-- 
Salvatore Monaco
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] strano "orrore" su mac os x

2010-11-28 Thread Roberto De Ioris

> 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 "", line 1, in 
>   File "build/bdist.macosx-10.3-i386/egg/MySQLdb/__init__.py", line 19, in
> 
>   File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in 
>   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


Re: [Python] strano "orrore" su mac os x

2010-11-28 Thread salvatore monaco
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 "", line 1, in 
  File "MySQLdb/__init__.py", line 19, in 
import _mysql
  File "build/bdist.macosx-10.3-x86_64/egg/_mysql.py", line 7, in 
  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 

>
> > 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 "", line 1, in 
> >   File "build/bdist.macosx-10.3-i386/egg/MySQLdb/__init__.py", line 19,
> in
> > 
> >   File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in 
> >   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
>



-- 
Salvatore Monaco
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] strano "orrore" su mac os x

2010-11-28 Thread Daniele Varrazzo
On Sun, 28 Nov 2010 14:32:40 +0100, salvatore monaco
 wrote:
> 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 "", line 1, in 
>   File "build/bdist.macosx-10.3-i386/egg/MySQLdb/__init__.py", line 19,
in
> 
>   File "build/bdist.macosx-10.3-i386/egg/_mysql.py", line 7, in 
>   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 ?

Sembra la stessa rogna che regolarmente incontra chi prova ad usare
psycopg su mac osx.

Ho raccolto un po' di pointer a soluzioni in questo articolo:
.
Potresti dare un'occhiata e vedere se qualcuno ti risolve il problema.

-- 
Daniele Varrazzo - Develer S.r.l. 
http://www.develer.com
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python