[Qgis-user] Couldn't load SIP module. ModuleNotFoundError: No module named 'qgis'

Jorge Gustavo Rocha jgr at geomaster.pt
Tue Dec 17 16:30:33 PST 2019


Hallo Frank,

Have you installed QGIS from https://qgis.org/ubuntu/? What do you have
in your /etc/apt/sources.list?

You should have installed a package called python3-qgis and another
python3-qgis-common.

$ dpkg -L python3-qgis
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/qgis
/usr/lib/python3/dist-packages/qgis/3d
/usr/lib/python3/dist-packages/qgis/3d/__init__.py
/usr/lib/python3/dist-packages/qgis/_3d.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_analysis.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_core.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_gui.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/_server.cpython-36m-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/qgis/analysis
/usr/lib/python3/dist-packages/qgis/analysis/__init__.py
/usr/lib/python3/dist-packages/qgis/core
/usr/lib/python3/dist-packages/qgis/core/__init__.py
/usr/lib/python3/dist-packages/qgis/gui
/usr/lib/python3/dist-packages/qgis/gui/__init__.py
/usr/lib/python3/dist-packages/qgis/server
/usr/lib/python3/dist-packages/qgis/server/__init__.py
/usr/share
/usr/share/doc
/usr/share/doc/python3-qgis
/usr/share/doc/python3-qgis/changelog.Debian.gz
/usr/share/doc/python3-qgis/changelog.gz
/usr/share/doc/python3-qgis/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/python3-qgis

Regards,

Jorge

On 17/12/19 21:02, Frank Heuer wrote:
>
> Hallo qgis users
>
> I need help with the new 3.10 qgis on my ubuntu Ubuntu 18.04.3 LTS
> system. When I start qgis, I get an Python-errorbox showing, that the
> SIP module could not be loaded. Because I run with german locale I
> could only post the german message here, but its nearly the same as in
> https://issues.qgis.org/issues/22029. Here is the original:
>
> Das SIP-Modul konnte nicht geladen werden.
> Die Python-Unterstützung wird abgeschaltet.
>
> Traceback (most recent call last):
> File "", line 1, in
> ModuleNotFoundError: No module named 'qgis'
>
> Python-Version:
> 3.6.9 (default, Nov 7 2019, 10:44:02)
> [GCC 8.3.0]
>
> QGIS-Version:
> 3.10.1-A Coruña 'A Coruña', ef24c52
> <https://github.com/qgis/QGIS/commit/ef24c526da26a4d3e9c542659e48b32480d0827f>
>
> Python-Pfad:
> ['/usr/share/qgis/python',
> '/home/frank/.local/share/QGIS/QGIS3/profiles/default/python',
> '/home/frank/.local/share/QGIS/QGIS3/profiles/default/python/plugins',
> '/usr/share/qgis/python/plugins', '/usr/local/lib/python36.zip',
> '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload',
> '/home/frank/.local/lib/python3.6/site-packages',
> '/usr/local/lib/python3.6/site-packages']
>
> How to fix this error? I have no idea where the qgis module is
> installed and which search path is the right.
>
> Actual, via update-alternatives --config python I activated python3 in
> manual mode
>
> Regards
>
> Frank
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Email Signature
Logo <https://www.geomaster.pt> 	
*Geomaster*
*Jorge Gustavo Rocha* | Software Engineer
*e:*jgr at geomaster.pt | *m:*+351 910 333 888
*g:*41.54094,-8.40490 | *v: *510 906 109
*a: * Rua António Cândido Pinto, 67, 4715-400 Braga

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20191218/36c8c2e5/attachment.html>


More information about the Qgis-user mailing list