2010/1/28 Aahz <aahz@...>
> On Wed, Jan 27, 2010, Eligio Becerra wrote:
> >
> > It builds Ok, but when I try to run the exe I've got this
> >
> > Traceback (most recent call last):
> > File "mainFoo.py", line 268, in <module>
> > File "mainFoo.py", line 24, in __init__
> > File "PyQt4\uic\__init__.pyo", line 175, in loadUi
> > File "PyQt4\uic\Loader\loader.pyo", line 21, in loadUi
> > File "PyQt4\uic\uiparser.pyo", line 768, in parse
> > File "xml\etree\ElementTree.pyo", line 862, in parse
> > File "xml\etree\ElementTree.pyo", line 579, in parse
> > IOError: [Errno 2] No such file or directory:
> > 'D:\\dist\\library.zip\\mainForm.ui'
> > Exception AttributeError: "SQLiteOps instance has no attribute 'connect'"
> in
> > <bound method SQLiteOps.__del__ of <SQLiteOps.SQLiteOps instance at
> > 0x0131DE90>> ignored
>
> This doesn't make any sense -- are you really getting two different
> errors from one traceback?
>
Yes, I did get those errors on the same traceback, but now that issue it's
solved.
It turn out that, for reasons unknown to me, sys.path[0] turned out to be
inside the zip, but the files (an
sqlite database and QT ui form) were not inside the zip file. Even if I
added them manually, the
app won't find them. I just had to remove the sys.path[0] references.
Now I have another issue:
The application works fine but it keeps failing to find/use pywinauto. I
been googling but I get nothing.
Traceback (most recent call last):
File "mainForm.py", line 12, in <module>
File "zipextimporter.pyc", line 82, in load_module
File "pywinauto\__init__.pyc", line 28, in <module>
File "zipextimporter.pyc", line 82, in load_module
File "pywinauto\findwindows.pyc", line 37, in <module>
File "zipextimporter.pyc", line 82, in load_module
File "pywinauto\controls\__init__.pyc", line 33, in <module>
File "zipextimporter.pyc", line 82, in load_module
File "pywinauto\controls\win32_controls.pyc", line 31, in <module>
ImportError: cannot import name win32functions
Also py2exe generates a corrupted zip file when using "'bundle_files': 1"
jcoon is helping me at stackoverflow to solve this. You can find the
currents of this event here:
http://stackoverflow.com/questions/2156875/exe-generated-with-py2exe-cant-find-pywinauto
> --
> Aahz (aahz@...) <*>
> http://www.pythoncraft.com/
>
> import antigravity
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Py2exe-users mailing list
> Py2exe-users@...
> https://lists.sourceforge.net/lists/listinfo/py2exe-users
>
--
Por favor, antes de preguntar mamadas... http://www.usaelputogoogle.com
masterLoki - Trying to understand the universe
|