-
Notifications
You must be signed in to change notification settings - Fork 393
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
ImportError: cannot import name 'Sequence' from 'collections' #895
Comments
Hmm, this works for me:
Same for
Any idea what the issue could be? Officially, we don't have 3.10 support yet because for a long time, there was an issue with underlying libraries, but now everything should work. We'll add 3.10 to our CI soon and then check if this issue or similar issues appear. |
@weissmanuel any updates? |
I'm encountering the exact same issue as @weissmanuel, but I checked:
And I'm confused, because I see that it's correct in the repo: https://github.com/skorch-dev/skorch/blob/master/skorch/helper.py#L6 and yet, for some reason my virtual environment is using a much older version of skorch, somehow. |
Ohhhh this was only merged into a release recently on the @weissmanuel We seem to have the same anticipation as the person here: #872 Try using 0.12.0 and the bug should be resolved. |
Thanks for @dliu-fn for figuring this out, sorry that I forgot about it. I think we can close the issue now :) |
Got the following error when using
skorch.helper.predefined_split
with Python 3.10ImportError: cannot import name 'Sequence' from 'collections'
Using Python 3.9 worked as workaround but would nice if skorch would also work for Python 3.10.
The text was updated successfully, but these errors were encountered: