[Qgis-user] Couldn't load SIP module

Mike Flannigan mikeflan at att.net
Thu Oct 29 13:40:26 PDT 2020


I have been using QGIS a lot recently.  All of a sudden
it gives "Couldn't load SIP module", which is a Python
problem with QGIS that has been around for many years.

I TimeShifted back about 3 days and the problem is solved
for now, but I just wanted to get this recorded.

Here are a few write-ups on the problem, some very recent:


https://github.com/qgis/QGIS/issues/38310

https://github.com/qgis/QGIS/issues/30895

https://gis.stackexchange.com/questions/306595/qgis-3-4-couldnt-load-sip-module-python-support-will-be-disabled-on-windows-10



The error message I receive is:


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


Traceback (most recent call last):
   File "", line 1, in
   File "/app/share/qgis/python/qgis/__init__.py", line 70, in
     from qgis.PyQt import QtCore
   File "/app/share/qgis/python/qgis/PyQt/QtCore.py", line 24, in
     from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5.sip'


Python version:
3.8.5 (default, Nov 10 2011, 15:00:00)
[GCC 10.2.0]

QGIS version:
3.14.16-Pi 'Pi', a235a149

Python path:
['/app/share/qgis/python', 
'/home/mike/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python', 
'/home/mike/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins', 
'/app/share/qgis/python/plugins', '/usr/lib/python38.zip', 
'/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', 
'/usr/lib/python3.8/site-packages', '/app/lib/python3.8/site-packages', 
'/app/lib/python3.8/site-packages/numpy-1.19.2-py3.8-linux-x86_64.egg', 
'/app/lib/python3.8/site-packages/MarkupSafe-1.1.1-py3.8-linux-x86_64.egg']




Ignoring the error message allows QGIS to start, but then
you don't have the "Lat Lon Tools" plugin, and a few other things.

My Python versions appear to be ver 2.7, ver 3.6, ver 3.7.

Again, I am OK for now, but I hope this issue is resolved soon.



Mike




More information about the Qgis-user mailing list