Hello,
I've been using pyinstaller to package quite a large program with
numerous dependencies (numpy, scipy, cherrypy, simplejson, sqlalchemy
and more). With some tweaks in the spec file I managed to get it
working. However now I need to integrate pytables, which in turn comes
with Cython as a dependency. I've tried but have no luck whatsoever, I
always get the error:
Traceback (most recent call last):
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 1494, in
<module>
main(args[0], configfilename=opts.configfile)
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 1472, in
main
build(specfile)
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 1429, in
build
execfile(spec)
File "setup_linux.py", line 88, in <module>
pathex=['/home/tester/TVB/pyinstaller-1.5.1'])
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 347, in
__init__
self.__postinit__()
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 298, in
__postinit__
self.assemble()
File "/home/tester/TVB/pyinstaller-1.5.1/Build.py", line 416, in
assemble
analyzer.analyze_script(script)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 572, in
analyze_script
return self.analyze_r('__main__')
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 466, in
analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 525, in
analyze_one
mod = self.doimport(nm, ctx, fqname)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 587, in
doimport
mod = parent.doimport(nm)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 761, in
doimport
mod = self.subimporter.getmod(nm)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 355, in getmod
mod = owner.getmod(nm)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 148, in getmod
mod = self._modclass()(nm, pth, co)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 725, in
__init__
self.scancode()
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 728, in
scancode
self.imports, self.warnings, self.binaries, allnms =
scan_code(
self.co)
File "/home/tester/TVB/pyinstaller-1.5.1/mf.py", line 966, in
scan_code
all.extend(all_nested)
AttributeError: 'NoneType' object has no attribute 'extend'
Now I've tried to go into the code and see if I can figure out what
the problem is but no chance. However I did find that there is a
#FIXME there saying:
# FIXME: "all" was not updated here nor returned. Was it
the desired
# behaviour?
Now is this some kind of problem that will be fixed? Better has anyone
manage to package a project with pytables/cython dependencies and if
so, how?
regards,
Bogdan