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

gwf does not work with python 3.12 #408

Closed
micknudsen opened this issue Oct 24, 2023 · 1 comment
Closed

gwf does not work with python 3.12 #408

micknudsen opened this issue Oct 24, 2023 · 1 comment

Comments

@micknudsen
Copy link
Contributor

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
Copy link
Collaborator

Fixed in 2.0.5 :)

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

2 participants