TransWikia.com

QGIS 3 Python support disabled Linux

Geographic Information Systems Asked by jrickards on June 9, 2021

Couldn’t find a similar question for Linux, just Windows.

I’m running Linux Mint 19.3.

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


Python version:
3.6.9 (default, Apr 18 2020, 01:56:04) 
[GCC 8.4.0]

QGIS version:
3.10.5-A Coruña 'A Coruña', exported

Python path:
['/usr/share/qgis/python', '/home/jrickards/.local/share/QGIS/QGIS3/profiles/default/python', '/home/jrickards/.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/jrickards/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.6/dist-packages']

How do I resolve this?

2 Answers

Is pyqt5 installed ? You can write this in a terminal to do so :

sudo apt install python3-pyqt5 pyqt5-dev-tools qttools5-dev-tools

Answered by Cupain on June 9, 2021

Found the answer here:

https://askubuntu.com/questions/1144003/ubuntu-18-04-couldnt-load-sip-module-qgis

Just remove PyQt5 using pip3:

pip3 uninstall PyQt5

And install form apt:

sudo apt-get install python3-pyqt5

Works just fine.

Answered by jonasagapito on June 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP