Prev: Multidimensional Fitting
Next: source install of python2.7 and rpm install of cx_Oracle collision
From: Massi on 21 Jul 2010 04:55 Hi everyone, I'm trying to build an executable with py2exe. My script uses SQLalchemy and pymssql with python 2.6. Here is my setup file: from distutils.core import setup import py2exe manifest = """ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="0.64.1.0" processorArchitecture="x86" name="Controls" type="win32" /> <description>myProgram</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b" /> </dependentAssembly> </dependency> </assembly> """ setup(name="MyProg", windows=[{"script": "MyProg.py", "other_resources": [(24,1,manifest)]}], options={"py2exe": {"includes":[ "sqlalchemy.dialects.mssql", "pymssql", "_mssql"]}} ) The executable is successfully built up, but when I run the program I get the following error message: Exception in thread Thread-3: Traceback (most recent call last): File "threading.pyc", line 532, in __bootstrap_inner File "threading.pyc", line 484, in run File "MyProg.py", line 166, in DatabaseSetup File "sqlalchemy\engine\__init__.pyc", line 241, in create_engine File "sqlalchemy\engine\strategies.pyc", line 60, in create File "sqlalchemy\dialects\mssql\pymssql.pyc", line 61, in dbapi File "pymssql.pyc", line 12, in <module> File "pymssql.pyc", line 10, in __load File "_mssql.pxd", line 10, in init pymssql (pymssql.c:7364) File "_mssql.pyc", line 12, in <module> File "_mssql.pyc", line 10, in __load File "_mssql.pyx", line 36, in init _mssql (_mssql.c:14941) ImportError: No module named uuid Can anyone point me out what I am doing wrong? Thanks you in advance!
|
Pages: 1 Prev: Multidimensional Fitting Next: source install of python2.7 and rpm install of cx_Oracle collision |