Skip to content
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

PyQt6: DLL load failed while importing QtGui: The specified procedure could not be found. #105

Open
xiaoxstz opened this issue Jun 21, 2022 · 2 comments

Comments

@xiaoxstz
Copy link

PyQt6: DLL load failed while importing QtGui: The specified procedure could not be found.

@tab-cmd
Copy link

tab-cmd commented Dec 4, 2023

We encountered this issue in our GitHub actions build on Windows 10 in the last week or so. This happens using both Python 3.8.10 and 3.9.13. It seems to be caused by a mismatch between PyQt6 and PyQt6-Qt6 that installs when just using pip install PyQt6==6.6.0.

See: https://github.com/CAMBI-tech/BciPy/actions/runs/7092847344/job/19305011604#step:7:1591

We were able to resolve the issue by forcing the installs in the requirements.txt file:

PyQt6==6.6.0
PyQt6-Qt6==6.6.0

I have not tried other PyQt6 or Windows versions. Here's information on the Windows build system used in GitHub actions: https://github.com/actions/runner-images/releases/tag/win22%2F20231126.1

@hrvojej
Copy link

hrvojej commented Feb 16, 2024

But when you do that pip installer reports:

`ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

pyqt6-plugins 6.4.2.2.3 requires pyqt6==6.4.2, but you have pyqt6 6.6.0 which is incompatible.
pyqt6-plugins 6.4.2.2.3 requires pyqt6-qt6==6.4.3, but you have pyqt6-qt6 6.6.0 which is incompatible.
pyqt6-tools 6.4.2.3.3 requires pyqt6==6.4.2, but you have pyqt6 6.6.0 which is incompatible.`

Python 3.11.8
Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants