New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyQt5 bundling not happening #2573

Closed
ZSSchulze opened this Issue Apr 24, 2017 · 3 comments

Comments

Projects
None yet
5 participants
@ZSSchulze

ZSSchulze commented Apr 24, 2017

PyInstaller is not including the PyQt5 .dll files. Below I have tried multiple methods to get this to work

Windows Server 2012 R2

4296 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\iconeng
ines\qsvgicon.dll
4328 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\iconen
gines\qsvgicon.dll
4359 WARNING: lib not found: Qt5Svg.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\iconeng
ines\qsvgicon.dll
4390 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\printsu
pport\windowsprintersupport.dll
4437 WARNING: lib not found: Qt5PrintSupport.dll dependency of C:\users\zachary_
schulze\appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugin
s\printsupport\windowsprintersupport.dll
4468 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\prints
upport\windowsprintersupport.dll
4499 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qtga.dll
4531 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qtga.dll
4578 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qtiff.dll
4609 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qtiff.dll
4640 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qjpeg.dll
4671 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qjpeg.dll
4718 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfor
ms\qminimal.dll
4749 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfo
rms\qminimal.dll
4781 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfor
ms\qoffscreen.dll
4812 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfo
rms\qoffscreen.dll
4859 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qgif.dll
4890 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qgif.dll
4937 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfor
ms\qwindows.dll
4984 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\platfo
rms\qwindows.dll
5031 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qwebp.dll
5062 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qwebp.dll
5093 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qsvg.dll
5124 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qsvg.dll
5156 WARNING: lib not found: Qt5Svg.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qsvg.dll
5203 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qicns.dll
5234 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qicns.dll
5265 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qwbmp.dll
5296 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qwbmp.dll
5343 WARNING: lib not found: Qt5Gui.dll dependency of C:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagefo
rmats\qico.dll
5374 WARNING: lib not found: Qt5Core.dll dependency of C:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\Qt\plugins\imagef
ormats\qico.dll
5531 WARNING: lib not found: Qt5Gui.dll dependency of c:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\QtWidgets.pyd
5562 WARNING: lib not found: Qt5Widgets.dll dependency of c:\users\zachary_schul
ze\appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtWidgets.pyd
5593 WARNING: lib not found: Qt5Core.dll dependency of c:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtWidgets.pyd
5624 WARNING: lib not found: Qt5Core.dll dependency of c:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtCore.pyd
5671 WARNING: lib not found: Qt5Gui.dll dependency of c:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\QtGui.pyd
5703 WARNING: lib not found: Qt5Core.dll dependency of c:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtGui.pyd
5749 WARNING: lib not found: Qt5Gui.dll dependency of c:\users\zachary_schulze\a
ppdata\local\programs\python\python35\lib\site-packages\PyQt5\QtPrintSupport.pyd

5781 WARNING: lib not found: Qt5Widgets.dll dependency of c:\users\zachary_schul
ze\appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtPrintSupport
.pyd
5812 WARNING: lib not found: Qt5PrintSupport.dll dependency of c:\users\zachary_
schulze\appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtPrintSu
pport.pyd
5843 WARNING: lib not found: Qt5Core.dll dependency of c:\users\zachary_schulze\
appdata\local\programs\python\python35\lib\site-packages\PyQt5\QtPrintSupport.py
d
# -*- mode: python -*-

block_cipher = None
import os
import ntpath
import PyQt5

a = Analysis(['mainnewwindow.py'],
             pathex=['C:\\Users\\zachary_schulze\\Desktop\\RS Appraiser', os.path.join(ntpath.dirname(PyQt5.__file__), 'Qt', 'bin')],
             binaries=['C:\\Windows\\chromedriver'],
             datas=[],
             hiddenimports=[],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='testExe',
          debug=True,
          strip=False,
          upx=True,
          console=True )
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               name='testExe')```

Also I have tried to just use the cmdline arg --path=PATH TO QT BIN


Nothing seems to fix this.


Using Python 3.5 and only Selenium, PyQt5, and urllib3 for external imports. 
@dominhtri1995

This comment has been minimized.

dominhtri1995 commented Apr 25, 2017

Easy fix, copy all .dll files in site-packages/PyQt5 into your onedir . Or include the path to PyQt5 when build

@akej74

This comment has been minimized.

akej74 commented Apr 30, 2017

Here is an example of how to include the path:

pyinstaller --paths C:\Python35-32\Lib\site-packages\PyQt5\Qt\bin test.py

@bjones1

This comment has been minimized.

Member

bjones1 commented Jan 31, 2018

I'm closing this, since #3233 should fix it -- see the instructions there.

@bjones1 bjones1 closed this Jan 31, 2018

@Dextroz Dextroz referenced this issue Jul 15, 2018

Closed

PyQt5 fix #3233

@htgoebel htgoebel added this to the PyInstaller 3.4 milestone Sep 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment