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
RuntimeError: qgis._gui cannot import type '����' from PyQt5.QtCore
with QGIS 3.10.2 and Ubuntu 18.04
#34317
Comments
@stragu did you added the proper qgis.org repo (that uses ubuntugis dependencies)? |
Yes, using https://qgis.org/ubuntugis/
Stéphane Guillou
… On 6 Feb 2020, at 05:31, Giovanni Manghi ***@***.***> wrote:
with the ubuntugis repos
@stragu did you added the proper qgis.org repo (that uses ubuntugis dependencies)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@stragu weird, many of us do installations on k/ubuntu, mint at al. and I personally don't see this problem/error. It could be a local issue, you can test it by trying the installation on Ubuntu Studio on VM for example. |
Thanks, @gioman After paying around with my PyQt5 version, I've got the following error:
Which makes me think it has to be something like this one: #28362 |
Hm interesting, I think I solved it by uninstalling PyQt5 and PyQt5-sip with pip3, I guess so QGIS would use my system packages instead? I did the following in a terminal: pip3 uninstall PyQt5-sip
pip3 uninstall PyQt5 And I can now start QGIS 3.10 without errors! This is where I got the idea: https://tutel.me/c/gis/questions/306595/qgis+34+couldn39t+load+sip+module+python+support+will+be+disabled+on+windows+10 Does that make sense to you at all? |
In general it's a really bad idea to install pyqt through pip -- you'll end up with a mess of conflicting qt versions on your system |
Thank you, not sure how I started out with those installed through Pip, but glad it's working now. Thanks again for your help, @nyalldawson and @gioman ! :) |
For this error, I've just reinstalled PyQt5 QScintilla :
|
With qgis 3.32.0 on openSUSE Tumbleweed I also fixed this issue by installing PyQt5 QScintilla
|
I have the same error with you. After I uninstalled pyqt5 and pyqt5-sip, i got the error ' no module named pyqt5.core'. How can I solve it? Do you have any idea? |
Os: redhat7.6 |
Me too. I have same problem. But don't know how to do. |
I reinstalled qgis and all it's dependencies on a new machine and then the problem was solved. I don't know if this will solve your problem, but I hope my answer will help you. |
Using Ubuntu Studio 18.04 with the ubuntugis repos, when I start QGIS 3.10.2, I run into this issue:
Which results in QGIS without most of the processing tools.
I could find my Qt5 and PyQt5 version by running the following:
I had 5.9.2 for the Qt version, and 5.9.1 for the PyQt version.
I also checked my version of
libqt5core5a
, and I had 5.9.5 installed.So I thought I could try updating PyQt5 incrementally and see if that helped. You can check the history of releases of PyQt5 here: https://pypi.org/project/PyQt5/#history
I first tried:
But that led to more issues, as PyQt5 was obviously looking for Qt Core version 5.10 on my system. Upgrading Qt on the system seems like a bad, painful idea, so I decided to revert PyQt5 to the previous version. Turns out there was a more recent release in the 5.9 branch: I had 5.9.1 installed, but there is 5.9.2 available. I ran:
... to no avail, unfortunately. Back to the original issue.
(Also, sidenote: pip3 makes it looks like it sticks to the 5.10 branch. The commands:
and
... show that both the system and user modules have PyQt5 5.10.1
But going into a python3 kernel again, we can confirm that the version matches whatever we installed last. Phew, just a pip3 weirdness?)
Interestingly (?), the bionic repos have version 5.10.1 of pyqt5-dev available, which is not installed by default, but installing it doesn't change anything.
People having similar issues online:
I'm out of ideas here. Anything else I could try?
QGIS and OS versions
The text was updated successfully, but these errors were encountered: