GIS4WRF / gis4wrf

QGIS toolkit 🧰 for pre- and post-processing 🔨, visualizing 🔍, and running simulations 💻 in the Weather Research and Forecasting (WRF) model 🌀
https://gis4wrf.github.io
MIT License
159 stars 36 forks source link

Error during installation / activation in QGIS 3.28 and 3.22 on Windows #248

Open agiudiceandrea opened 1 year ago

agiudiceandrea commented 1 year ago

Describe the bug During the plugin installation process the following error occurs.

Couldn't load plugin 'gis4wrf' due to an error when calling its classFactory() method 

RuntimeError: GIS4WRF: Error installing Python packages Log: Added C:\Users\Andrea\AppData\Local\gis4wrf\python39 as module search pathAdded C:\Users\Andrea\AppData\Local\gis4wrf\python39\lib\site-packages as module search pathPackage directory: C:\Users\Andrea\AppData\Local\gis4wrf\python39F:\QGIS\OSGEO4~1.2\qgis\bin\python-qgis.bat -m pip install --prefix C:\Users\Andrea\AppData\Local\gis4wrf\python39 f90nml==1.0.2 netCDF4==1.5.7 cftime==1.5.1 
Traceback (most recent call last):
  File "F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\gis4wrf\__init__.py", line 39, in bootstrap_with_ui
    for msg_type, msg_val in bootstrap():
  File "F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\gis4wrf\bootstrap.py", line 237, in bootstrap
    for line in run_subprocess(args, LOG_PATH):
  File "F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\gis4wrf\bootstrap.py", line 251, in run_subprocess
    process = subprocess.Popen(args,
  File "F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\subprocess.py", line 829, in __init__
    errread, errwrite) = self._get_handles(stdin, stdout, stderr)
  File "F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\subprocess.py", line 1267, in _get_handles
    p2cread = self._make_inheritable(p2cread)
  File "F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\subprocess.py", line 1314, in _make_inheritable
    h = _winapi.DuplicateHandle(
OSError: [WinError 6] Handle non valido

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "F:\QGIS/OSGEO4~1.2/qgis/apps/qgis/./python\qgis\utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\gis4wrf\__init__.py", line 22, in classFactory
    bootstrap_with_ui(iface)
  File "F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\gis4wrf\__init__.py", line 62, in bootstrap_with_ui
    raise RuntimeError(PLUGIN_NAME + ': Error installing Python packages\nLog:\n' + log) from e
RuntimeError: GIS4WRF: Error installing Python packages
Log:
Added C:\Users\Andrea\AppData\Local\gis4wrf\python39 as module search pathAdded C:\Users\Andrea\AppData\Local\gis4wrf\python39\lib\site-packages as module search pathPackage directory: C:\Users\Andrea\AppData\Local\gis4wrf\python39F:\QGIS\OSGEO4~1.2\qgis\bin\python-qgis.bat -m pip install --prefix C:\Users\Andrea\AppData\Local\gis4wrf\python39 f90nml==1.0.2 netCDF4==1.5.7 cftime==1.5.1

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.28.2-Firenze Firenze, b47e00ba601 

Python Path:
F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins\MultiMaps
F:/QGIS/OSGEO4~1.2/qgis/apps/qgis/./python
F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python
F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python/plugins
F:/QGIS/OSGEO4~1.2/qgis/apps/qgis/./python/plugins
F:\QGIS\OSGEO4~1.2\qgis\bin\python39.zip
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\DLLs
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib
F:\QGIS\OSGEO4~1.2\qgis\bin
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\site-packages
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\site-packages\win32
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\site-packages\win32\lib
F:\QGIS\OSGEO4~1.2\qgis\apps\Python39\lib\site-packages\Pythonwin
F:\QGIS\OSGeo4W64_3.28.2\qgisconfig\profiles\default/python
C:\Users\Andrea\AppData\Local\gis4wrf\python39
C:\Users\Andrea\AppData\Local\gis4wrf\python39\lib\site-packages

System Information (please complete the following information):