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

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

Open
agiudiceandrea opened this issue Feb 7, 2023 · 0 comments

Comments

@agiudiceandrea
Copy link

agiudiceandrea commented Feb 7, 2023

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):

  • OS: Windows 7 64-bit
  • QGIS: 3.28.3 - 3.22.16
@agiudiceandrea agiudiceandrea changed the title Error during installation / activation of the plugin on QGIS 3.28 Error during installation / activation in QGIS 3.28 on Windows Feb 7, 2023
@agiudiceandrea agiudiceandrea changed the title Error during installation / activation in QGIS 3.28 on Windows Error during installation / activation in QGIS 3.28 and 3.22 on Windows Feb 7, 2023
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

1 participant