Hi, could anyone please explain to me how to use verbose import under Mac? >From the dev doc:
*You can also pass a -v (verbose imports) flag to the embedded Python interpreter (see Giving Run-time Python Options<http://htmlpreview.github.io/?https://github.com/pyinstaller/pyinstaller/blob/develop/doc/Manual.html#giving-run-time-python-options> above). This can be extremely useful. It can be informative even with apps that are apparently working, to make sure that they are getting all imports from the bundle, and not leaking out to the local installed Python.* *Python verbose and warning messages always go to standard output and are not visible when the --windowed option is used. Remember to not use this in the distributed program.* I tried to add [('v', None, 'OPTION')] after the EXE(), but the following error message appears: *Traceback (most recent call last):* * File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyinstaller", line 8, in <module>* * load_entry_point('PyInstaller==2.1dev-', 'console_scripts', 'pyinstaller')()* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/main.py", line 88, in run* * run_build(opts, spec_file, pyi_config)* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/main.py", line 46, in run_build* * PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 1915, in main* * build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 1864, in build* * execfile(spec)* * File "task.spec", line 18, in <module>* * console=True )* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 1164, in __init__* * strip_binaries=self.strip, upx_binaries=self.upx,* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 1004, in __init__* * self.__postinit__()* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 305, in __postinit__* * self.assemble()* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyInstaller-2.1dev_-py2.7.egg/PyInstaller/build.py", line 1035, in assemble* * if not os.path.isfile(fnm) and check_egg(fnm):* * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 29, in isfile* * st = os.stat(path)* *TypeError: coercing to Unicode: need string or buffer, NoneType found* * *My spec file is here: *# -*- mode: python -*-* *a = Analysis(['/Users/boxuancui/Documents/AA/Scripts/task.py'],* * pathex=['/Users/boxuancui/Documents/AA/Test'],* * hiddenimports=[],* * hookspath=None,* * runtime_hooks=None)* *pyz = PYZ(a.pure)* *exe = EXE(pyz,* * a.scripts,* * [('v', None, 'OPTION')],* * a.binaries,* * a.zipfiles,* * a.datas,* * name='task',* * debug=False,* * strip=None,* * upx=True,* * console=True )* * * Could anyone help me understanding this? Thanks! -- 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.
