I tried to build the executable for the following code -
sqlalc.py
================================
from sqlalchemy import testing
print "sclalchemy imported."
================================
with the following command -
python PyInstaller\pyinstaller.py --onedir sqlalc.py
I get the following error -
====================================
Traceback (most recent call last):
File "..\PyInstaller\pyinstaller.py", line 18, in <module>
run()
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\main.py", l
ine 88, in run
run_build(opts, spec_file, pyi_config)
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\main.py", l
ine 46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\build.py",
line 1917, in main
build(specfile, kw.get('distpath'), kw.get('workpath'),
kw.get('clean_build'
))
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\build.py",
line 1866, in build
execfile(spec)
File "C:\Users\user_3\blib-rel2\blib\build\test_sqlalchemy\sqlalc.spec",
line
6, in <module>
runtime_hooks=None)
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\build.py",
line 442, in __init__
self.__postinit__()
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\build.py",
line 305, in __postinit__
self.assemble()
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\build.py",
line 696, in assemble
for ln in importTracker.getwarnings():
File
"C:\Users\user_3\blib-rel2\blib\build\PyInstaller\PyInstaller\depend\impt
racker.py", line 382, in getwarnings
for w in mod.warnings:
TypeError: iteration over non-sequence
====================================
I saw that sqlalchemy.testing contains a module named warnings.py , so in
Pyinstaller/depend/imtracker.py :: getwarnings () , mod.getwarnings is
actually shows up as a python object, rather than a list. Its type is
printed below -
===================================================================
>, warnings <PyModule 'sqlalchemy.testing.warnings'
C:\Python27\lib\site-package
s\sqlalchemy\testing\warnings.pyc imports=[('', 0, 0, 2),
('assertions.emits_war
ning', 1, 0, 1), ('assertions.eq_', 1, 0, 1), ('__future__', 0, 0, 0),
('warning
s', 0, 0, 0), ('__future__.absolute_import', 0, 0, 0), ('util', 0, 0, 2),
('asse
rtions', 1, 0, 1), ('exc', 0, 0, 2)] binaries=[] datas=[]>
===================================================================
I am not entirely sure, but is this a case of name conflict ?
Thanks,
Abhshek.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.