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

ModuleNotFoundError: No module named 'python' #327

Open
sjib opened this issue Jun 11, 2024 · 4 comments
Open

ModuleNotFoundError: No module named 'python' #327

sjib opened this issue Jun 11, 2024 · 4 comments
Labels
Bug QGIS project Concerns qgs project file

Comments

@sjib
Copy link

sjib commented Jun 11, 2024

i have installed your demo data qwat in Qgis 3.36.2

and i open with this error script python:

Si è verificato un errore durante l'esecuzione delle istruzioni seguenti:
qgis.utils.reloadProjectMacros()

Traceback (most recent call last):
File "", line 1, in
File "C:\PROGRA1/QGIS331.2/apps/qgis/./python\qgis\utils.py", line 673, in reloadProjectMacros
exec(str(code), mod.dict)
File "", line 1, in
File "C:\PROGRA1/QGIS331.2/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'python'

Versione Python:
3.12.3 (main, Apr 14 2024, 17:21:43) [MSC v.1938 64 bit (AMD64)]

Versione di QGIS:
3.36.2-Maidenhead 'Maidenhead', 6d250527

You can help me ?

thanks

@sjib
Copy link
Author

sjib commented Jun 11, 2024

@ponceta Any idea?

@sjib
Copy link
Author

sjib commented Jun 11, 2024

Something to do with the Python path variable?
https://stackoverflow.com/questions/8922568/error-no-module-named-qgis

@ponceta
Copy link
Member

ponceta commented Jun 12, 2024

  1. Go to -> project / properties / Macros

  2. Remove this old obsolete stuff

image

  1. Deactivate the Macros as they are not used anymore.

  2. Save your project.

@ponceta ponceta added Bug QGIS project Concerns qgs project file labels Jun 12, 2024
@Dserretti
Copy link

Thanks !!!
now is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug QGIS project Concerns qgs project file
Projects
None yet
Development

No branches or pull requests

3 participants