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.09k stars 2.93k forks source link

Python error on startup #57996

Open eflaten opened 1 week ago

eflaten commented 1 week ago

What is the bug or the crash?

There is Python Error displayes during startup. Here it is:

An error occurred during execution of following code: is_startup_script_executed = run_startup_script(pyqgstart)

Traceback (most recent call last): File "", line 1, in File "QgsPythonUtilsImpl::checkSystemImports [run_startup_script]", line 7, in run_startup_script ModuleNotFoundError: No module named 'qgis'

Python version: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 19:00:53) [Clang 16.0.6 ]

QGIS version: 3.38.0-Grenoble 'Grenoble', exported

Python path: ['/Applications/QGIS-3.38.app/Contents/lib/python311.zip', '/Applications/QGIS-3.38.app/Contents/lib/python3.11', '/Applications/QGIS-3.38.app/Contents/lib/python3.11/lib-dynload', '/Applications/QGIS-3.38.app/Contents/lib/python3.11/site-packages']

Steps to reproduce the issue

Doubleclick the qgis icon and wait

Versions

QGIS version 3.38.0-Grenoble QGIS code branch Release 3.38 Qt version 5.15.8 Python version 3.11.9 Compiled against GDAL/OGR 3.9.0 Running against GDAL/OGR 3.9.1 PROJ version 9.4.1 EPSG Registry database version v11.006 (2024-03-13) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.46.0 Compiled against PDAL 2.7.1 Running against PDAL 2.7.2 PostgreSQL client version unknown SpatiaLite version 5.1.0 QWT version 6.3.0 QScintilla2 version 2.14.1 OS version macOS 10.16

Active Python plugins beePen 0.2.5 batch_gps_importer version 1.0.1 wfsclient 0.9.11 qgis2web 3.21.0 processing 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6

Supported QGIS version

New profile

Additional context

Its the new macos installer: https://github.com/opengisch/qgis-conda-builder/releases

No response

agiudiceandrea commented 1 week ago

@eflaten, thanks for reporting. Does the issue occur also using a new QGIS user profile? I think you need to report such issue to the qgis-conda-builder developers at https://github.com/opengisch/qgis-conda-builder. Perhaps @m-kuhn may be of help here.

eflaten commented 1 week ago

Yes. Same error when starting up with a new profile. Sidenote. There was no way to enter a new user profile in the settings/user profiles menu. So I just made an folder manually and qgis used that folder as a profile and filles it with default stuff.