qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.66k stars 3.01k forks source link

Couldn't load SIP module. Python support will be disabled. QGIS 3.34, Ubuntu 23.10 #55535

Open asqmeol1 opened 11 months ago

asqmeol1 commented 11 months ago

What is the bug or the crash?

I get the following error when tying to start QGIS from a venv:

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

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'qgis'

Python version: 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0]

QGIS version: 3.34.1-Prizren 'Prizren', 133927424d9

Python path: ['/usr/share/qgis/python', '/home/name/.local/share/QGIS/QGIS3/profiles/default/python', '/home/name/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/home/name/.venv/lib/python3.11/site-packages']

Im quite new to QGIS and Ubuntu so any help would be greatly appriciated

Steps to reproduce the issue

  1. Type in "source .venv/bin/activate" in terminal
  2. Type in "qgis"

Versions

Qt version | 5.15.10 Python version | 3.11.6 GDAL/OGR version | 3.7.1 PROJ version | 9.2.1 EPSG Registry database version | v10.088 (2023-05-13) GEOS version | 3.12.0-CAPI-1.18.0 SQLite version | 3.42.0 PostgreSQL client version | 15.4 (Ubuntu 15.4-1ubuntu1) SpatiaLite version | 5.1.0 QWT version | 6.1.4 QScintilla2 version | 2.14.1 OS version | Ubuntu 23.10

Supported QGIS version

New profile

Additional context

No response

roydenyates commented 11 months ago

Revoking the confirm: I removed all venv's, ensured libs were dist provided where possible and then installed missing python modules and QGIS loads within the venv with python activated.

I confirm the same running qgis in a venv, Ubuntu 23.10

QGIS version: 3.35.0-Master 'Master', e5a8aa3f14a