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 touch: unexpected keyword argument 'group' #402

Closed
LudvigOlsen opened this issue May 3, 2023 · 2 comments
Closed

gwf touch: unexpected keyword argument 'group' #402

LudvigOlsen opened this issue May 3, 2023 · 2 comments

Comments

@LudvigOlsen
Copy link

I installed gwf 2.0.0 via conda in my python 3.7.12 environment.

$ gwf touch
Traceback (most recent call last):
  File "/home/ludvigolsen/anaconda3/envs/tfbs/bin/gwf", line 7, in <module>
    from gwf.cli import main
  File "/home/ludvigolsen/anaconda3/envs/tfbs/lib/python3.7/site-packages/gwf/cli.py", line 114, in <module>
    @with_plugins(entry_points(group="gwf.plugins"))
TypeError: entry_points() got an unexpected keyword argument 'group'

Seeing that you import entry_points from importlib_metadata, I tried updating that package via conda install -c main importlib_metadata==4.11.3 based on https://stackoverflow.com/a/73864286

This seems to have removed that error (leaving here for other users), but now I get:

AttributeError: module 'gwf.backends.local' has no attribute 'LocalBackend'

Now, I've already set gwf config set backend slurm (just tried it again but no difference). Not sure how to fix that.

I've downgraded to 1.8.5, which seems to work. So sticking with that for now. But perhaps the above info about my 2.0.0 adventure is useful for you :-)

@dansondergaard
Copy link
Collaborator

dansondergaard commented May 3, 2023 via email

@LudvigOlsen
Copy link
Author

New environment testing:

$ conda create --name test python=3.7.11
$ conda activate test
$ conda install -c gwforg gwf=2

The following NEW packages will be INSTALLED:

  attrs              conda-forge/noarch::attrs-23.1.0-pyh71513ae_0
  click              conda-forge/noarch::click-7.1.2-pyh9f0ad1d_0
  click-plugins      conda-forge/noarch::click-plugins-1.1.1-py_0
  gwf                gwforg/noarch::gwf-2.0.0-py_0
  importlib_metadata conda-forge/linux-64::importlib_metadata-1.5.0-py37_0
  zipp               conda-forge/noarch::zipp-3.15.0-pyhd8ed1ab_0

Notice that importlib_metadata v1.5.0 is installed automatically. Calling gwf status gives the entry_points error:

Traceback (most recent call last):
  File "/home/ludvigolsen/anaconda3/envs/test/bin/gwf", line 7, in <module>
    from gwf.cli import main
  File "/home/ludvigolsen/anaconda3/envs/test/lib/python3.7/site-packages/gwf/cli.py", line 114, in <module>
    @with_plugins(entry_points(group="gwf.plugins"))
TypeError: entry_points() got an unexpected keyword argument 'group'

So again, I ran conda install -c main importlib_metadata==4.11.3 (probably one of the later versions would work as well). Now it seems to work. Also in the old repo, where the error likely was that I had both the pypi version (1.7.2) installed and the anaconda version.

dansondergaard added a commit that referenced this issue May 8, 2023
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