I am trying to use PyInstaller to create a standalone OSX application that launches the GUI that I created. When I enter the terminal:
pyinstaller gui.py
Everything works until the following error occurs:
File "/Users/username/anaconda/bin/PyInstaller", line 11, in <module> sys.exit(run()) File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/__main__.py", line 90, in run run_build(pyi_config, spec_file, **vars(args)) File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/__main__.py", line 46, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/build_main.py", line 788, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/build_main.py", line 734, in build exec(text, spec_namespace) File "<string>", line 16, in <module> File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/build_main.py", line 212, in __init__ self.__postinit__() File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/datastruct.py", line 178, in __postinit__ self.assemble() File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/build_main.py", line 470, in assemble module_hook.post_graph() File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/imphook.py", line 409, in post_graph self._load_hook_module() File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/building/imphook.py", line 376, in _load_hook_module self.hook_module_name, self.hook_filename) File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/hooks/hook-PyQt4.py", line 33, in <module> (qt_menu_nib_dir('PyQt4'), ''), File "/Users/username/anaconda/lib/python2.7/site- packages/PyInstaller/utils/hooks/qt.py", line 125, in qt_menu_nib_dir """.format(namespace, path)) Exception: Cannot find qt_menu.nib for PyQt4 Path checked: /Users/felipe/miniconda/envs/_build/lib/QtGui.framework/Resources/qt_menu.nib
Which seems strange, since my name is not Felipe!
I have a couple of questions:
1) How is it possible that on my computer there is a directory called felipe? (I used anaconda to install qt, I don't know if this has anything to do with this?)
2) Before receiving the error message, PyInstaller searches for the desired folder. Why is it starting to look in this indefinite (foggy for me that is) directory that I donβt know about?
3) I am new to directories and I cannot find Mr. Felipe anywhere on my computer. When I look in the Users folder, I just see my user and the empty Shared folder. (I do not know what the shared folder is used for and why it is there.)
4) Based on what I read on the Internet, I copied qt_menu-nib to the folder where the script is located, which should be turned into a standalone one. What should I do to successfully create a standalone from here?