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

Expected end or semicolon (after name and no valid version specifier) netCDF4>=None #249

Closed bakamotokatas closed 1 year ago

bakamotokatas commented 1 year ago

Describe the bug

RuntimeError: GIS4WRF: Error installing Python packages Log: Added /home/bakamotokatas/.local/share/gis4wrf/python310/lib/python3.10/site-packages as module search path 
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 35, in __init__
    parsed = parse_requirement(requirement_string)
  File "/usr/lib/python3.10/site-packages/packaging/_parser.py", line 64, in parse_requirement
    return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
  File "/usr/lib/python3.10/site-packages/packaging/_parser.py", line 82, in _parse_requirement
    url, specifier, marker = _parse_requirement_details(tokenizer)
  File "/usr/lib/python3.10/site-packages/packaging/_parser.py", line 126, in _parse_requirement_details
    marker = _parse_requirement_marker(
  File "/usr/lib/python3.10/site-packages/packaging/_parser.py", line 147, in _parse_requirement_marker
    tokenizer.raise_syntax_error(
  File "/usr/lib/python3.10/site-packages/packaging/_tokenizer.py", line 163, in raise_syntax_error
    raise ParserSyntaxError(
packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier)
    netCDF4>=None
           ^

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

Traceback (most recent call last):
  File "/home/bakamotokatas/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/__init__.py", line 39, in bootstrap_with_ui
    for msg_type, msg_val in bootstrap():
  File "/home/bakamotokatas/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/bootstrap.py", line 164, in bootstrap
    pkg_resources.get_distribution('{}>={}'.format(dep.name, dep.min))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 512, in get_distribution
    dist = Requirement.parse(dist)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3136, in parse
    (req,) = parse_requirements(s)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3095, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 37, in __init__
    raise InvalidRequirement(str(e)) from e
packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
    netCDF4>=None
           ^

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

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/bakamotokatas/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/__init__.py", line 22, in classFactory
    bootstrap_with_ui(iface)
  File "/home/bakamotokatas/.local/share/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:

To Reproduce Steps to reproduce the behavior: It started after update QGIS 3.28.2 -> 3.28.3 or other update.

Expected behavior it needs to be loaded as it should

Screenshots image

System Information (please complete the following information):