Closed Adafede closed 2 years ago
Thanks for raising the issue. The issue is due to an update in rdflib which created a conflict with an older version within another dependency of rdflib. We are investigating the bug and we are working towards a fix. This issue is that the issue does not emerge in all python versions.
Thank you for your reply, looks like a nightmare to fix...
As you mentioned the issue is not emerging in all python versions, could you give a python version working fine as a temporary workaround?
So far it seems to work in python 3.8+. Running locally (3.9) I have no issues, nor does it when used in Wikimedia's paws (jupyterhub) https://hub.paws.wmcloud.org/
I just noticed that in your error dump it states that you are using 3.8. So my previous answer is not helping. Paws still works though. Maybe because it is using a cached version of the failing import. Anyway, investigation continues.
Just tried on PAWS (thanks, did not use it before):
still getting
Traceback (most recent call last):
File "/srv/paws/bin/wikidataintegrator-publication", line 5, in <module>
from wikidataintegrator.wdi_helpers.publication import main
File "/srv/paws/lib/python3.8/site-packages/wikidataintegrator/__init__.py", line 3, in <module>
import wikidataintegrator.wdi_core
File "/srv/paws/lib/python3.8/site-packages/wikidataintegrator/wdi_core.py", line 14, in <module>
from pyshex import ShExEvaluator
File "/srv/paws/lib/python3.8/site-packages/pyshex/__init__.py", line 1, in <module>
from pyshex.prefixlib import PrefixLibrary, standard_prefixes, known_prefixes
File "/srv/paws/lib/python3.8/site-packages/pyshex/prefixlib.py", line 4, in <module>
from pyshexc.parser_impl.generate_shexj import load_shex_file
File "/srv/paws/lib/python3.8/site-packages/pyshexc/parser_impl/generate_shexj.py", line 9, in <module>
import chardet
ModuleNotFoundError: No module named 'chardet'
Indeed I forget to mention this. This bug is probably related since it emerged about the same time as the one reported here.
However, a quick fix here is to add the line
!pip install chardet
in one of the first cells. I added in the first line where I also import the wikidata integrator.
I have added it to the requirements.txt file for now, but I will only release that once I found the reason for this issue. Fixing that might make that line redundant.
Hi, I had the same issue last week and this is how I approached it. I raised the issue with RDFlib last week.
So Maxime Lefrançois responded and referenced rdflib issue 1204. I have tested it out on Python 3.8.5
and so far it works for me. Just need to set the requirements pyparsing==2.4.7
.
So Maxime Lefrançois responded and referenced rdflib issue 1204. I have tested it out on
Python 3.8.5
and so far it works for me. Just need to set the requirementspyparsing==2.4.7
.
Confirm this fixes the issue
Package release of WDI 0.9.20 confirmed that adding pyparsing==2.4.7 to the requirements.txt did not solve this yet. Separately installing it with pip as mentioned above does.
Hi,
It was a while I didn't use the tool but when I tried using it again it failed. I tried re-installing from scratch without success:
Can't really see where the problem is. Tried re-installling many dependencies with pip instead of conda, again, unsuccessful...