qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
57 stars 31 forks source link

ModuleNotFoundError: No module named 'python' #327

Open sjib opened 2 weeks ago

sjib commented 2 weeks ago
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:\PROGRA~1/QGIS33~1.2/apps/qgis/./python\qgis\utils.py", line 673, in reloadProjectMacros exec(str(code), mod.dict) File "", line 1, in File "C:\PROGRA~1/QGIS33~1.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 commented 2 weeks ago

@ponceta Any idea?

sjib commented 2 weeks ago

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

ponceta commented 2 weeks ago
  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.

Dserretti commented 1 week ago

Thanks !!! now is ok