gsi-upm / sematch

semantic similarity framework for knowledge graph
http://gsi-upm.github.io/sematch/
Other
432 stars 111 forks source link

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

Open krmchal opened 1 year ago

krmchal commented 1 year ago

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 commented 9 months ago

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