gwforg / gwf

A flexible, pragmatic workflow tool.
https://gwf.app/
GNU General Public License v3.0
31 stars 12 forks source link

gwf does not work with python 3.12 #408

Closed micknudsen closed 8 months ago

micknudsen commented 8 months ago

Create a simple environment with gwf and newest python version:

$ conda create -n gwf-test gwf==2.0.4 python=3.12
$ conda activate gwf-test

Now gwf fails with an obscure error message:

$ gwf
Traceback (most recent call last):
  File "/home/michaelk/miniconda3/envs/gwf-test/lib/python3.12/importlib/metadata/__init__.py", line 285, in __getitem__
    return next(iter(self.select(name=name)))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/michaelk/miniconda3/envs/gwf-test/bin/gwf", line 5, in <module>
    from gwf.cli import main
  File "/home/michaelk/miniconda3/envs/gwf-test/lib/python3.12/site-packages/gwf/cli.py", line 114, in <module>
    @with_plugins(entry_points(group="gwf.plugins"))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michaelk/miniconda3/envs/gwf-test/lib/python3.12/site-packages/gwf/utils.py", line 29, in entry_points
    return eps[group]
           ~~~^^^^^^^
  File "/home/michaelk/miniconda3/envs/gwf-test/lib/python3.12/importlib/metadata/__init__.py", line 287, in __getitem__
    raise KeyError(name)
KeyError: 'gwf.plugins'
dansondergaard commented 8 months ago

Fixed in 2.0.5 :)