2

I updated QGIS Girona to QGIS Madeira and now I have the problem. Every time I open QGIS I get two errors:

Couldn't load SIP module.
Python support will be disabled.

Traceback (most recent call last):
File "", line 1, in 
File "/usr/lib/python3/dist-packages/qgis/__init__.py", line 72, in 
from qgis.PyQt import QtCore
File "/usr/lib/python3/dist-packages/qgis/PyQt/QtCore.py", line 26, in 
from PyQt5.QtCore import *
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.11' not found (required by 
/home/user/.local/lib/python3.6/site-packages/PyQt5/QtCore.so)

Python version:
3.6.6 (default, Sep 12 2018, 18:26:19) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]

QGIS version:
 3.4.0-Madeira 'Madeira', 4a4b62e

And I checked, I have QtCore.so on that path. And my version is PyQt5-5.11.3.

Second error:

An error occurred during execution of following code:
qgis.utils.uninstallErrorHook()


Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'qgis' is not defined


Python version:
3.6.6 (default, Sep 12 2018, 18:26:19) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]

QGIS version:
3.4.0-Madeira 'Madeira', 4a4b62e

Python path:
['/usr/share/qgis/python',     '/home/user/.local/share/QGIS/QGIS3/profiles/default/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/home/user/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']

After that I tried to reinstall QGIS - it didn't help, I tried to install back Girona - didn't succeed in that. I tried to reinstall Qt library, also nothing. I tried solutions from here and here - also didn't help.

And at the end. It really doesn't matter which version I would have (only to be 3.X). I needed it to set up PyQGIS with Pycharm.

I am using Ubuntu 18.04 Bionic.

  • Which Operating System are you using? – Mapperz Oct 31 '18 at 17:38
  • Ubuntu 18.04 Bionic – Neven Oct 31 '18 at 17:50
  • If you updated any python modules with pip, uninstall them and take the version from the default Ubuntu repo. – AndreJ Nov 26 '18 at 7:14
  • I reinstalled the system, It was the fastest solution than the all other which I tried. – Neven Nov 26 '18 at 8:47
  • But I have done that after few days of trying. – Neven Nov 26 '18 at 8:48
1

After a few days of desperately trying, I reinstall Ubuntu18.04 and install QGIS 3.4 Madeira. Now I have the QT5 library which was came with QGIS, and version is 5.9.5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.