Open sky-2002 opened 12 months ago
Hi @sky-2002, thank you very much for your feedback! :-)
It's not the first time I've seen some users encounter problems with the cached fetch
method. I know that back in the day they didn't specify a hash key for it, but that it was problematic at some point.
Thanks for the suggestion as well.
hmm @rememberYou,
you already solved that issue right?:
The commit d039a702c9b072983b5f60ba7892b8d7a2cf1993 on the develop
branch has fixed the issue with cachetool
.
I can't find any reference to @cachedmethod(operator.attrgetter("cache"), key=partial(hashkey, "fetch"))
@bsteenwi Oh yes indeed, I can see that the use of key=partial(hashkey, "fetch"))
has already been removed from the develop branch since quite a while.
@sky-2002 In principle, this error should no longer be present. Did you clone the repository?
First of all, thanks a lot for this repo, @bsteenwi @GillesVandewiele @rememberYou .
🐛 Bug
TypeError: unhashable type: 'SPARQLConnector'
when running example code given in readme. The error arises out of the following code:responses = [self.connector.fetch(query) for query in queries]
present here.I also tried installing from the
develop
branch as was mentioned in this issue. But I am still getting the error.Expected Behavior
No errors.
Current Behavior
The line
embeddings, literals = transformer.fit_transform(knowledge_graph, entities)
results into the error -TypeError: unhashable type: 'SPARQLConnector'
.Steps to Reproduce
I tried the code given in the readme file on the repo.
Environment
Ubuntu 22.04.2
0.2.3
3.11.3
Possible Solution
For me, changing this line in
connectors.py
:to this:
solved the issue. But I think a solution for error free installation is needed, without needing to change this line, happy to contribute if guided.