[Python-de] py2exe und python-mysql

Bastian Boday bast at bast.li
Mi Jan 23 06:22:41 CET 2008


Hallo, ich möchte py2exe benutzen, nur macht mir da python-mysql einen
Strich durch die Rechnung.

habe installiert:

MySQL-python-1.2.2.win32-py2.5.exe
py2exe-0.6.6.win32-py2.5.exe
pywin32-210.win32-py2.5.exe
python-2.5.1.msi

mein setup.py:
from distutils.core import setup
import py2exe
setup(console=['fileHasher.py'])
options = {"py2exe": {"compressed": 1,
                       "optimize": 2,
                       "packages": ["_mysql"]
                       }
}

und der Aufruf dann setup.py py2exe
ich habe mit und ohne dem option Teil versucht, bekomme aber immer folgenden
output wenn ich das .exe ausführen will.

Traceback (most recent call last):
  File "myprog.py", line 5, in <module>
  File "_mysql.pyc", line 12, in <module>
  File "_mysql.pyc", line 10, in __load
ImportError: _mysql: init failed

Gruss
Bastian
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://mail.python.org/pipermail/python-de/attachments/20080122/c1c48961/attachment.html>


Mehr Informationen über die Mailingliste python-de