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

support for python 3.10? #1301

Open
zhang-ivy opened this issue Apr 19, 2023 · 2 comments · May be fixed by #1286
Open

support for python 3.10? #1301

zhang-ivy opened this issue Apr 19, 2023 · 2 comments · May be fixed by #1286

Comments

@zhang-ivy
Copy link

zhang-ivy commented Apr 19, 2023

Will yank support python 3.10?

I'm running into errors when running the yank analysis notebook with the CLI using python 3.10.

The first error I get:

Traceback (most recent call last):
  File "/home/zhangi/miniconda3/envs/perses-paper7/bin/yank", line 6, in <module>
    from yank.cli import main
  File "/home/zhangi/miniconda3/envs/perses-paper7/lib/python3.10/site-packages/yank/__init__.py", line 12, in <module>
    from . import utils
  File "/home/zhangi/miniconda3/envs/perses-paper7/lib/python3.10/site-packages/yank/utils.py", line 279, in <module>
    class CombinatorialTree(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

When I run the yank analysis notebook with python 3.9, I see the following warning:

<stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working

So it seems like I just need to change collections.MutableMapping to collections.abc.MutableMapping.

When I fix this error in my local version of yank, I get the following error:

TypeError: load() missing 1 required positional argument: 'Loader'

I think this is happening because the yaml file is not being loaded properly here:

analysis = yaml.load(f)

These errors are simple enough to fix, but I'm just wondering whether we plan on updating yank to be compatible with python 3.10?

@zhang-ivy
Copy link
Author

CC: @jchodera @ijpulidos @mikemhenry

@ijpulidos
Copy link

Thanks for reporting this, we should definitely try to support newer python versions.

@ijpulidos ijpulidos linked a pull request Apr 19, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants