Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyInstaller "ImportError: No module named Pyinstaller"

This is the code that gets produced when I run python configure.py.

dan@Q430-Q530:~/pyinstaller-2.0/PyInstaller$ python configure.py
Traceback (most recent call last):
  File "configure.py", line 28, in <module>
    from PyInstaller import HOMEPATH, PLATFORM
ImportError: No module named PyInstaller

So, currently, I can't even get PyInstaller running because of a missing module called... PyInstaller. This is PyInstaller 2.0, and you can find some screens of the insides of the /pyinstaller-2.0 and the /pyinstaller-2.0/PyInstaller directories here and here, respectively.

Does anyone here know what's going on? I tried copying the pyinstaller.py file in the /pyinstaller-2.0 directory into the /pyinstaller-2.0/PyInstaller directory, but I had no luck there.

This will probably turn out to be some ridiculously easy fix, but... It's got me stumped. If there's any more information needed, just ask and I shall try to provide.

like image 883
dantdj Avatar asked Aug 14 '12 13:08

dantdj


2 Answers

With PyInstaller 2.0, you do not need to run configure or pyinstaller files. (Read PyInstaller 2.0 Document which comes with the installation files.)

To build your project; in the /your/path/to/pyinstaller/ directory, just run:

"python pyinstaller.py [opts] yourprogram.py"

like image 152
hakan Avatar answered Nov 15 '22 11:11

hakan


I don't think the configure.py, makespec.py and build.py files are supposed to be run directly in PyInstaller 2.0.

In the download there's a pyinstaller.py file in the top level - run that.

like image 25
Matt Avatar answered Nov 15 '22 13:11

Matt