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
166 stars 37 forks source link

Cannot open WRF namelist or run WRF: 'nml_path' is not defined #68

Closed dmey closed 6 years ago

dmey commented 6 years ago

Describe the bug When clicking on Open Configuration in Simulation > Run the following exception is raised. The same applies when clicking on Prepare Only, Run Real, or Run WRF.

An error has occurred while executing Python code: 

NameError: name 'nml_path' is not defined 
Traceback (most recent call last):
  File "/Users/User/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/widget_run.py", line 116, in on_open_namelist_wrf_clicked
    self.project.update_wrf_namelist()
  File "/Users/User/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/core/project.py", line 380, in update_wrf_namelist
    logger.debug(f'{nml_path}: size of {group_name}/{var_name} as expected, skipping patch')
NameError: name 'nml_path' is not defined

Python version: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] 
QGIS version: 3.2.2-Bonn Bonn, exported 

Python Path:
/Applications/QGIS3.app/Contents/MacOS/../Resources/python
/Users/User/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/User/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins
/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
/Users/User/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/User/Library/Application Support/gis4wrf/python/lib/python3.6/site-packages
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/extensions