PyInstaller 2.0 is working with PySide for me also on Windows 7 now. Would be great if someone interested in PySide can find out if this also works for them:
1. On Windows XP or Windows 7, install Python27 to C:\Python27 2. Install PySide-1.1.1qt474.win32-py2.7.exe from http://qt-project.org/wiki/PySide_Binaries_Windows accepting all defaults 3. Download https://github.com/downloads/pyinstaller/pyinstaller/pyinstaller-2.0.zip 4. Unzip to C:\pyinstaller-2.0 5. Open an administrator command prompt / console window to C:\pyinstaller-2.0 6. Remove any PYTHON[...] environment variables (i.e. PYTHONPATH, PYTHON_LIB, PYTHON_INCLUDE, PYTHONHOME, anything starting with "PYTHON") 7. Verify that the Windows PATH environment variable contains C:\PYTHON27\SCRIPTS (must be in PATH, others possibly ok, mine contains all of C:\PYTHON27;C:\PYTHON27\DLLs;C:\PYTHON27\SCRIPTS, however SCRIPTS is the only one necessary) 8. Verify that any *pyside*egg files or directories under C:\Python27 have been renamed so they won't be found 9. Verify that C:\Python27\Lib\site-packages\easy-install.pth does NOT contain the string 'pyside' and remove any line/entry to it if so 10. Save the following contents to C:\pyinstaller-2.0\test.py #!python # -*- coding: utf-8 -*- from PySide import QtCore as QtCore from PySide import QtGui as QtGui from PySide.QtCore import QSettings, Qt from PySide.QtGui import QApplication, QLineEdit, QCursor print "yep" 11. Run as follows (also showing the output here): C:\pyinstaller-2.0>PyInstaller -F test.py 530 INFO: wrote C:\pyinstaller-2.0\test\test.spec 639 INFO: Testing for ability to set icons, version resources... 842 INFO: ... resource update available 842 INFO: UPX is not available. 6228 WARNING: library python%s%s required via ctypes not found 6438 INFO: checking Analysis 6438 INFO: building Analysis because out00-Analysis.toc non existent 6438 INFO: running Analysis out00-Analysis.toc 6438 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable 6698 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ... 6698 INFO: Found manifest C:\Windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest 6708 INFO: Searching for file msvcr90.dll 6708 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll 6708 INFO: Searching for file msvcp90.dll 6708 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll 6718 INFO: Searching for file msvcm90.dll 6718 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll 7218 INFO: Analyzing C:\pyinstaller-2.0\support\_pyi_bootstrap.py 12878 WARNING: library python%s%s required via ctypes not found 13039 INFO: Analyzing C:\pyinstaller-2.0\PyInstaller\loader\archive.py 13656 INFO: Analyzing C:\pyinstaller-2.0\PyInstaller\loader\carchive.py 14296 INFO: Analyzing C:\pyinstaller-2.0\PyInstaller\loader\iu.py 14404 INFO: Analyzing test.py 16105 INFO: Hidden import 'encodings' has been found otherwise 16105 INFO: Looking for run-time hooks 16120 INFO: Analyzing rthook C:\pyinstaller-2.0\support/rthooks/pyi_rth_encodings.py 37726 INFO: Warnings written to C:\pyinstaller-2.0\test\build\pyi.win32\test\warntest.txt 37758 INFO: checking PYZ 37758 INFO: rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing 37758 INFO: building PYZ out00-PYZ.toc 41509 INFO: checking PKG 41509 INFO: rebuilding out00-PKG.toc because out00-PKG.pkg is missing 41509 INFO: building PKG out00-PKG.pkg 55335 INFO: checking EXE 55335 INFO: rebuilding out00-EXE.toc because test.exe missing 55335 INFO: building EXE from out00-EXE.toc 55350 INFO: Appending archive to EXE C:\pyinstaller-2.0\test\dist\test.exe 12. Run the exe: C:\pyinstaller-2.0>C:\pyinstaller-2.0\test\dist\test.exe yep 13. Verify the print line runs and there were no errors -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/ozIxEdkxC6kJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
