"ImportError: cannot import name QtGui" Any tips? ------------------------------------ Environment ------------------------------------ Windows 7 64-bit Python 2.7 32-bit c:\pyinstaller1.5.1>set py PYTHONHOME=c:\python27 PYTHONLIB=c:\Python27\libs\python27.lib;c:\Python27\Lib\site-packages PYTHONPATH=c:\python27\Lib ------------------------------------ Steps ------------------------------------ 1. Add PySide: http://releases.qt-project.org/pyside/1.1.1/PySide-1.1.1qt474.win32-py2.7.exe 2. Unzip PyInstaller 1.5.1 from https://github.com/pyinstaller/pyinstaller/zipball/develop to c:\pyinstaller1.5.1 3. Run commands below ------------------------------------ Script 'imports_test.py' ------------------------------------ #!python import sip from PySide import QtGui ------------------------------------ Commands ------------------------------------ c:\pyinstaller1.5.1>c:\pyinstaller1.5.1\pyinstaller.py -F -c c:\pyinstaller1.5.1\imports_test.py 93 INFO: wrote c:\pyinstaller1.5.1\imports_test.spec 171 INFO: Testing for ability to set icons, version resources... 296 INFO: ... resource update available 296 INFO: UPX is not available. 4250 INFO: checking Analysis 4250 INFO: building Analysis because out00-Analysis.toc non existent 4266 INFO: running Analysis out00-Analysis.toc 4266 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable 4516 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ... 4516 INFO: Found manifest C:\Windows\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest 4531 INFO: Searching for file msvcr90.dll 4531 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll 4531 INFO: Searching for file msvcp90.dll 4547 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcp90.dll 4547 INFO: Searching for file msvcm90.dll 4547 INFO: Found file C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcm90.dll 4891 INFO: Analyzing C:\pyinstaller1.5.1\support\_pyi_bootstrap.py 8712 INFO: Analyzing C:\pyinstaller1.5.1\PyInstaller\loader\archive.py 9149 INFO: Analyzing C:\pyinstaller1.5.1\PyInstaller\loader\carchive.py 9632 INFO: Analyzing C:\pyinstaller1.5.1\PyInstaller\loader\iu.py 9757 INFO: Analyzing c:\pyinstaller1.5.1\imports_test.py 9789 INFO: Hidden import 'encodings' has been found otherwise 9789 INFO: Looking for run-time hooks 9804 INFO: Analyzing rthook C:\pyinstaller1.5.1\support/rthooks/pyi_rth_encodings.py 26753 INFO: Warnings written to c:\pyinstaller1.5.1\build\pyi.win32\imports_test\warnimports_test.txt 26783 INFO: checking PYZ 26783 INFO: rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing 26783 INFO: building PYZ out00-PYZ.toc 28967 INFO: checking PKG 28967 INFO: rebuilding out00-PKG.toc because out00-PKG.pkg is missing 28967 INFO: building PKG out00-PKG.pkg 41401 INFO: checking EXE 41401 INFO: rebuilding out00-EXE.toc because imports_test.exe missing 41401 INFO: building EXE from out00-EXE.toc 41526 INFO: Appending archive to EXE c:\pyinstaller1.5.1\dist\imports_test.exe c:\pyinstaller1.5.1>c:\pyinstaller1.5.1\dist\imports_test.exe Traceback (most recent call last): File "<string>", line 4, in <module> ImportError: cannot import name QtGui ------------------------------------ Note ------------------------------------ http://www.pyinstaller.org/query?verbose=1&milestone=PyInstaller+1.4&owner=williamcaban&order=version said import sip would help with the same error in PyQt4
-- 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/-/BHyceqZLClkJ. 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.
