I am working with a fresh install of Ubuntu 18.04 and installed QGIS using https://qgis.org/debian. I get the following error when I launch QGIS:
Couldn't load PyQt.
Python support will be disabled.
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /usr/local/lib/python3.6/dist-packages/PyQt5/QtCore.so)
Python version:
3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0]
QGIS version:
3.0.3-Girona 'Girona', 8a899c8
Python path:
['/usr/share/qgis/python', '/home/ned/.local/share/QGIS/QGIS3/profiles/default/python', '/home/ned/.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', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
A similar error has been reported as a bug (https://issues.qgis.org/issues/19040) but I haven’t seen a workaround.
I tried to install 2.18 (ltr) but apt-get failed with:
qgis : Depends: python-qgis (= 1:2.18.20+28bionic) but 1:3.1.0+git20180529+ad1fef9+28bionic is to be installed
Any suggestions on how to get QGIS working on Ubuntu 18.04?