Hello
I would like to use pyinstaller to package my app under OS X 10.7.5. All my
python libraries (python 2.7) are up to date (installed through macports).
I am using the latest devel version of pyinstaller.
Here is the command used, with debug option to have more details :
python pyinstaller.py --windowed --log-level=DEBUG myapp.py
Here is the end of the error message :
80826 INFO: checking Tree
80873 INFO: checking Tree
80889 DEBUG: Analyzing FixTk
80900 DEBUG: Analyzing tkCommonDialog
80905 DEBUG: Analyzing tkCommonDialog.Dialog
80905 DEBUG: Analyzing tkCommonDialog.Dialog
80905 DEBUG: Analyzing matplotlib._windowing
80906 DEBUG: Analyzing __future__.print_function
80906 DEBUG: Analyzing matplotlib._windowing
80906 DEBUG: Analyzing matplotlib._windowing
80907 DEBUG: Analyzing matplotlib.rcParams
80907 DEBUG: Analyzing Dialog
80911 DEBUG: Analyzing Dialog.Dialog
80912 DEBUG: Analyzing Tkinter._cnfmerge
80912 DEBUG: Analyzing matplotlib.backend_bases.FigureManagerBase
80912 DEBUG: Analyzing matplotlib.backends.AppKit
80913 DEBUG: Analyzing AppKit
80946 DEBUG: Analyzing matplotlib.backends.PyObjCTools
80946 DEBUG: Analyzing PyObjCTools
80952 DEBUG: Analyzing __future__.division
80952 DEBUG: Analyzing matplotlib.backends.Foundation
80952 DEBUG: Analyzing Foundation
80972 DEBUG: Analyzing matplotlib.backend_bases.ShowBase
80973 DEBUG: Analyzing matplotlib._pylab_helpers.Gcf
80973 DEBUG: Analyzing matplotlib.backends.objc
80973 DEBUG: Analyzing objc
80999 DEBUG: Analyzing __future__.print_function
81000 DEBUG: Analyzing matplotlib.backend_bases.FigureCanvasBase
81000 DEBUG: Analyzing matplotlib.figure.Figure
81000 DEBUG: Analyzing matplotlib.backends.backend_agg.FigureCanvasAgg
81000 DEBUG: Analyzing PyObjCTools
81004 DEBUG: Analyzing PyObjCTools
81008 DEBUG: Analyzing AppKit.AppKit
81008 DEBUG: Analyzing AppKit._inlines
81009 DEBUG: Analyzing AppKit.objc
81010 DEBUG: Analyzing AppKit._AppKit
81010 DEBUG: Analyzing AppKit.sys
81010 DEBUG: Analyzing AppKit._metadata
81409 DEBUG: Analyzing AppKit._inlines._inline_list_
81410 DEBUG: Analyzing AppKit._nsapp
81412 DEBUG: Analyzing AppKit._nsapp.NSApp
81412 DEBUG: Analyzing AppKit.Foundation
81413 DEBUG: Analyzing objc.objc
81413 DEBUG: Analyzing objc._dyld
81417 DEBUG: Analyzing objc._convenience
81450 DEBUG: Analyzing objc._objc
81450 DEBUG: Analyzing objc._compat
81457 DEBUG: Analyzing objc._category
81459 DEBUG: Analyzing objc._descriptors
81466 DEBUG: Analyzing objc._context
81468 DEBUG: Analyzing objc._pythonify
81486 DEBUG: Analyzing objc._bridges
81490 DEBUG: Analyzing objc.sys
81491 DEBUG: Analyzing objc._lazyimport
81507 DEBUG: Analyzing objc._protocols
81515 DEBUG: Analyzing objc._properties
81540 DEBUG: Analyzing objc.copy_reg
81540 DEBUG: Analyzing objc._locking
81544 DEBUG: Analyzing objc._pycoder
81557 DEBUG: Analyzing objc.atexit
81557 DEBUG: Analyzing objc._bridgesupport
Traceback (most recent call last):
File "pyinstaller.py", line 18, in <module>
run()
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/main.py", line
88, in run
run_build(opts, spec_file, pyi_config)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/main.py", line
46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/build.py",
line 1732, in main
build(specfile, kw.get('distpath'), kw.get('workpath'),
kw.get('clean_build'))
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/build.py",
line 1681, in build
execfile(spec)
File "/Users/michkapopoff/Desktop/pyinstaller-develop/main/main.spec",
line 6, in <module>
runtime_hooks=None)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/build.py",
line 403, in __init__
self.__postinit__()
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/build.py",
line 305, in __postinit__
self.assemble()
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/build.py",
line 556, in assemble
importTracker.analyze_script(script)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/imptracker.py",
line 272, in analyze_script
return self.analyze_r('__main__')
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/imptracker.py",
line 165, in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/imptracker.py",
line 226, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/imptracker.py",
line 298, in doimport
mod = parent.doimport(nm)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/modules.py",
line 130, in doimport
mod = self.subimporter.getmod(nm)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/impdirector.py",
line 139, in getmod
mod = owner.getmod(nm)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/owner.py",
line 127, in getmod
mod = self._modclass()(nm, pth, co)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/modules.py",
line 78, in __init__
self.scancode()
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/modules.py",
line 89, in scancode
self.imports, self.warnings, self.binaries, allnms = scan_code(self.co)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/utils.py",
line 191, in scan_code
_, _, _, all_nested = scan_code(c, m, w, b, 1)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/utils.py",
line 191, in scan_code
_, _, _, all_nested = scan_code(c, m, w, b, 1)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/utils.py",
line 183, in scan_code
ctypesb, ctypesw = scan_code_for_ctypes(co, instrs, i)
File
"/Users/michkapopoff/Desktop/pyinstaller-develop/PyInstaller/depend/utils.py",
line 271, in scan_code_for_ctypes
if bin != os.path.basename(bin):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py",
line 112, in basename
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
Could somebody give me a hint on why it crashed ? Some path seems to be set
to None (bin) ?.
Thanks in advance
Michka Popoff
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.