Hi,all I have 1 python file only 1 line: ----------------------------------------------------------- #!/usr/bin/python import _mysql -----------------------------------------------------------
compile it using such commands: ----------------------------------------------------------- $PYINSTALLER_HOME/Makespec.py mysql.py $PYINSTALLER_HOME/Build.py mysql.spec ----------------------------------------------------------- Then i run this compiled file but get error: ----------------------------------------------------------- jiangxd@localhost ~/test/dist/mysql $ ./mysql Traceback (most recent call last): File "<string>", line 2, in <module> File "/usr/local/pyinstaller-1.5-rc1/iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "/usr/local/pyinstaller-1.5-rc1/iu.py", line 505, in doimport mod = director.getmod(nm) File "/usr/local/pyinstaller-1.5-rc1/iu.py", line 297, in getmod mod = owner.getmod(nm) File "/usr/local/pyinstaller-1.5-rc1/iu.py", line 109, in getmod mod = imp.load_module(nm, fp, attempt, (ext, mode, typ)) ImportError: _mysql: init failed ----------------------------------------------------------- Any help? -- Xiaodong Jiang [email protected] -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
