-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PyQT 5.7 DLLs are not bundled #2152
Comments
Can confirm. Copying the DLLs over works. |
Second to confirm. As a workaround I added the following to my .spec file to automatically copy the DLLs.
|
You can also use the --path option of pyinstaller to get it working: pyinstaller --path C:\Python35-32\Lib\site-packages\PyQt5\Qt\bin test.py should work. Also it' s possible to insert the bin path to pathex in the .spec file. Works also for virtual environments. a = Analysis(['app.py'],
pathex=['venv\\Lib\\site-packages\\PyQt5\\Qt\\bin'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher) |
@MrLeeH, thanks for your help, I will try it out. |
Using |
On Mac, in |
It works for me using the Riverbank installer, but I have the same problem when using PyQt5 installed via Pip. Appending to
Edit: Just noticed @akej74 and @MrLeeH mentioned pretty much the same thing above But I still get a lot of these
which is not the case when using the Riverbank installer. |
For Mac OS, I found the shared libraries in
However, I still get
These frameworks are in the Here the command-line I use
|
Nevermind, works on MacOS using the latest version from the develop branch: 3.3.dev0+g483c819.mod Edit Without adding any |
confirm, windows fails with current dev tip but adding (in my case) |
For some reason it just works now on Windows with PyInstaller 3.2 and a Riverbank install of PyQt5 5.5.1. No errors, no warnings. No need for |
Still broken in v3.2.1 |
Windows 10, Python 3.5.3, pyinstaller 3.2.1 and PyQt5 5.9 I had 2 issues as well:
Is there any other workaround for it? I hope it gets fixed soon. Edit: Tested it with cx_freeze and those dlls were automatically bundled without any issues, which confirms it's a pyinstaller thing. |
Hi, I did a new test with a simple QT application, using the following versions:
Packaging with the following command: Now, the three QT DLL´s (Qt5Core.dll, Qt5Gui.dll and Qt5Widgets.dll) are indeed included in the dist folder automatically, and the built application works. As far as I can see, this is now fixed, but maybe someone else would like to confirm? As a bonus, everything works using Python 3.6 as well :-) |
I'm confirming that Python 3.6 + PyQT 5.9 + PyInstaller dev tip no longer require pathex modifications. |
Thanks to testing. |
Python 3.6 + PyQt 5.9 + PyInstaller 3.3 ¡Works! , But just with the 64 bit version of Python 3.6.2, the 32bit version gave me the problem trated in 2241. Also the version that works make projects incredibly bigs, a little project bundled in a single file and it was 23mb, i think that s a lot, does someone has any tricks to make it smaller ? |
To complete @stlehmann answer, you can use the
|
does this mean it is also solved for other libraries using dll's? like sounddevice and soundfile? i am using python 2.7 due to some constraints, so i can't test it. |
I'm getting the same library warnings as yyjkt commented June 10, 2019 If anyone has a recommendation for resolution, that would be great! |
PyInstaller: 3.3.dev0+e78b701
Python: 3.5.1
Platform: Windows-10-10.0.14393-SP0
It look like PyQT5 hook is not updated to new PyQT5 structure. PyQT no longer depends on system QT - all DLLs are now part of the wheel.
Directory qt5_plugins is created correctly but DLLs from Lib\site-packages\PyQt5\Qt\bin are not bundled.
PyInstaller build logs clearly states that it fail to find DLLs.
It can be easily replicated:
test.py:
from PyQt5 import QtGui, QtCore, QtWidgets, QtNetwork
The text was updated successfully, but these errors were encountered: