Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python error on startup #20

Open
eflaten opened this issue Jul 5, 2024 · 3 comments
Open

Python error on startup #20

eflaten opened this issue Jul 5, 2024 · 3 comments

Comments

@eflaten
Copy link

eflaten commented Jul 5, 2024

The error is reported her:
qgis/QGIS#57996

@eflaten
Copy link
Author

eflaten commented Aug 4, 2024

Just to mention the error is still there in version 3.8.1
However, when starting up the conda-buildt version of 3.8.1, QGIS starts fine.
There might be several diferences between the macos installer, the one that gives the python error, and the conda way of installing. I could see one. Its python 3.11 on the readymade installer and 3.12 in the conda buildt version. Hope this helps :)

Under is the python error from the macos installer.
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.1-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']

@tsmcgrath
Copy link

I get the same error. QGIS does start up fine. But, I am running a script in the Python console and it is throwing a new error I didn't see in 3.36. See #22.

@eflaten
Copy link
Author

eflaten commented Sep 19, 2024

@tsmcgrath
Same Error message in 3.38.3 on Macos 15.0 during startup.

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.10 | packaged by conda-forge | (main, Sep 10 2024, 11:06:07) [Clang 17.0.6 ]

QGIS version:
3.38.3-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']

The about section in qgis lists up itself:
QGIS version
3.38.3-Grenoble
QGIS code branch
Release 3.38
Qt version
5.15.8
Python version
3.11.10
GDAL/OGR version
3.9.2
PROJ version
9.4.1
EPSG Registry database version
v11.006 (2024-03-13)
GEOS version
3.12.2-CAPI-1.18.2
SQLite version
3.46.1
PDAL version
2.8.0
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
qgis2web
3.22.0
processing
2.12.99
grassprovider
2.12.99
db_manager
0.1.20
MetaSearch
0.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants