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

AttributeError: module 'collections' has no attribute 'Hashable' #40

Open
krmchal opened this issue Jun 21, 2023 · 1 comment
Open

AttributeError: module 'collections' has no attribute 'Hashable' #40

krmchal opened this issue Jun 21, 2023 · 1 comment

Comments

@krmchal
Copy link

krmchal commented Jun 21, 2023

After attempting to use just your basic examples I was presented with the following Attribute Error:
AttributeError: module 'collections' has no attribute 'Hashable'

I am using Python 3.11.0. After taking a look at the source code it appears collections has updated their implementations and structure and the Hashable attribute is now located in "collections.abc.Hashable"

The error can be fixed by updating the following line

if not isinstance(args, collections.Hashable):

with -
if not isinstance(args, collections.abc.Hashable):

@jiit912
Copy link

jiit912 commented Feb 19, 2024

i am facing the same issue have you got any solution yet?

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