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

Cannot install GIS4WRF in QGIS 3.4 on Windows: No module named pip #98

Closed
dmey opened this issue Oct 28, 2018 · 4 comments
Closed

Cannot install GIS4WRF in QGIS 3.4 on Windows: No module named pip #98

dmey opened this issue Oct 28, 2018 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@dmey
Copy link
Contributor

dmey commented Oct 28, 2018

After upgrading to QGIS 3.4, GIS4WRF fails to install dependencies: No module named pip.

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

RuntimeError: GIS4WRF: Error installing Python packages Log: Added C:\Users\Testing\AppData\Local\gis4wrf\python37 as module search pathAdded C:\Users\Testing\AppData\Local\gis4wrf\python37\lib\site-packages as module search pathPackage directory: C:\Users\Testing\AppData\Local\gis4wrf\python37C:\Program Files\QGIS 3.4\bin\python-qgis.bat -m pip install --prefix C:\Users\Testing\AppData\Local\gis4wrf\python37 f90nml==1.0.2 netCDF4==1.2.9C:\PROGRA~1\QGIS3~1.4\apps\Python37\python.exe: No module named pip 
Traceback (most recent call last):
  File "C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\__init__.py", line 39, in bootstrap_with_ui
    for msg_type, msg_val in bootstrap():
  File "C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\bootstrap.py", line 197, in bootstrap
    for line in run_subprocess(args, LOG_PATH):
  File "C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\bootstrap.py", line 226, in run_subprocess
    raise subprocess.CalledProcessError(process.returncode, args)
subprocess.CalledProcessError: Command '['C:\\Program Files\\QGIS 3.4\\bin\\python-qgis.bat', '-m', 'pip', 'install', '--prefix', 'C:\\Users\\Testing\\AppData\\Local\\gis4wrf\\python37', 'f90nml==1.0.2', 'netCDF4==1.2.9']' returned non-zero exit status 1.

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

Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\__init__.py", line 22, in classFactory
    bootstrap_with_ui(iface)
  File "C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\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\Testing\AppData\Local\gis4wrf\python37 as module search pathAdded C:\Users\Testing\AppData\Local\gis4wrf\python37\lib\site-packages as module search pathPackage directory: C:\Users\Testing\AppData\Local\gis4wrf\python37C:\Program Files\QGIS 3.4\bin\python-qgis.bat -m pip install --prefix C:\Users\Testing\AppData\Local\gis4wrf\python37 f90nml==1.0.2 netCDF4==1.2.9C:\PROGRA~1\QGIS3~1.4\apps\Python37\python.exe: No module named pip



Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS version: 3.4.0-Madeira Madeira, 4a4b62ed19 

Python Path:
C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python
C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS3~1.4/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.4\bin\python37.zip
C:\PROGRA~1\QGIS3~1.4\apps\Python37\DLLs
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib
C:\Program Files\QGIS 3.4\bin
C:\PROGRA~1\QGIS3~1.4\apps\Python37
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\win32
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\Pythonwin
C:/Users/Testing/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\Testing\AppData\Local\gis4wrf\python37
C:\Users\Testing\AppData\Local\gis4wrf\python37\lib\site-packages
@dmey dmey added the bug Something isn't working label Oct 28, 2018
@letmaik
Copy link
Contributor

letmaik commented Oct 28, 2018

Reported at https://issues.qgis.org/issues/20249.

dmey added a commit that referenced this issue Oct 30, 2018
This is a hot-fix to minimise #98. Momentarily fix the max QGIS version to 3.2.x so to avoid problem on Windows.
@dmey
Copy link
Contributor Author

dmey commented Oct 30, 2018

I have mitigated this with a hot-fix (#99) release for now until the QGIS team resolves this issue.

@dmey dmey added this to the 0.14.0 milestone Oct 30, 2018
@dmey dmey modified the milestones: 0.14.0, 0.13.2 Nov 8, 2018
@dmey
Copy link
Contributor Author

dmey commented Nov 8, 2018

Fixed in https://issues.qgis.org/issues/20249 and available in QGIS 3.4.1.

@dmey dmey closed this as completed Nov 8, 2018
@dmey dmey reopened this Nov 8, 2018
@dmey
Copy link
Contributor Author

dmey commented Nov 8, 2018

I will close this once we finish testing and make GIS4WRF available on QGIS 3.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants