I am trying to use PyInstaller v2.1 to create a single executable file from a simple script welcome world (Python 2.7). script, hello.py, has only one line:
print 'Hello, World!'
Then I will open the command window in the folder containing the script and type:
pyinstaller -F hello.py
I get the following output:
C:\Users\chris\workspace\HelloPy>pyinstaller -F hello.py
43 INFO: wrote C:\Users\chris\workspace\HelloPy\hello.spec
66 INFO: Testing for ability to set icons, version resources...
79 INFO: ... resource update available
83 INFO: UPX is not available.
115 INFO: Processing hook hook-os
299 INFO: Processing hook hook-time
304 INFO: Processing hook hook-cPickle
402 INFO: Processing hook hook-_sre
585 INFO: Processing hook hook-cStringIO
721 INFO: Processing hook hook-encodings
741 INFO: Processing hook hook-codecs
1332 INFO: Extending PYTHONPATH with C:\Users\chris\workspace\HelloPy
1332 INFO: checking Analysis
1539 INFO: checking PYZ
1644 INFO: checking PKG
1655 INFO: building because C:\Users\chris\workspace\HelloPy\build\hello\hello.exe.manifest changed
1656 INFO: building PKG (CArchive) out00-PKG.pkg
7801 INFO: checking EXE
7803 INFO: rebuilding out00-EXE.toc because pkg is more recent
7803 INFO: building EXE from out00-EXE.toc
7809 INFO: Appending archive to EXE C:\Users\chris\workspace\HelloPy\dist\hello.exe
The build and dist files are created as expected, as is the executable. I try to run it and get the following output:
C:\Users\chris\workspace\HelloPy>cd dist
C:\Users\chris\workspace\HelloPy\dist>hello
WARNING: file already exists but should not: C:\Users\chris\AppData\Local\Temp\_MEI58962\include\pyconfig.h
Hello, World!
If I run pyinstaller instead of a single executable key, that is, without -F, then I will not get "WARNING: file already exists"
I probably missed something really obvious, but I searched around and can't find this problem anywhere. Any help or pointer to a solution elsewhere would be greatly appreciated.