Hi all,
I'm using pyinstaller to produce a package for an application using
Tkinter. I'm using MacOs 10.6, I tried both with the 2.0 version of
pyinstaller and the latest one from development. The build fails on my
system, while it proceeds smoothly under a Linux machine (Ubuntu). After
some trials, I found that the error is due to the 'import Tkinter'
statement; removing it makes the building run fine. Has anybody experienced
the same error? The error I get is the following:
Traceback (most recent call last):
File "pyinstaller.py", line 91, in <module>
main()
File "pyinstaller.py", line 86, in main
run_build(opts, spec_file)
File "pyinstaller.py", line 50, in run_build
PyInstaller.build.main(spec_file, **opts.__dict__)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 1625, in main
build(specfile, buildpath)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 1582, in build
execfile(spec)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/test/test.spec",
line 5, in <module>
hookspath=None)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 389, in __init__
self.__postinit__()
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 315, in __postinit__
self.assemble()
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 475, in assemble
importTracker.analyze_script(script)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/depend/imptracker.py",
line 205, in analyze_script
return self.analyze_r('__main__')
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/depend/imptracker.py",
line 98, in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/depend/imptracker.py",
line 159, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/depend/imptracker.py",
line 261, in doimport
mod = self._handle_hook(mod, hook)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/depend/imptracker.py",
line 279, in _handle_hook
mod = hook.hook(mod)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/hooks/hook-_tkinter.py",
line 160, in hook
tk_files = _collect_tkfiles(mod)
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/hooks/hook-_tkinter.py",
line 145, in _collect_tkfiles
excludes=['demos', 'encoding', '*.lib', 'tclConfig.sh'])
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 1412, in __init__
self.__postinit__()
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 315, in __postinit__
self.assemble()
File
"/Users/giovanni/Downloads/pyinstaller-pyinstaller-ce5811a/PyInstaller/build.py",
line 1452, in assemble
for fnm in os.listdir(dir):
TypeError: coercing to Unicode: need string or buffer, NoneType found
Cheers,
Giovanni
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyinstaller/-/ufIQR37y3aUJ.
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.