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

rdflib-jsonld package has been deprecated #72

Open
CaptSolo opened this issue Jan 4, 2022 · 1 comment
Open

rdflib-jsonld package has been deprecated #72

CaptSolo opened this issue Jan 4, 2022 · 1 comment

Comments

@CaptSolo
Copy link
Contributor

CaptSolo commented Jan 4, 2022

The rdflib-jsonld package has been deprecated / merged into rdflib.

When trying to launch a newly installed mc2skos application an error message is displayed:

.../python3.7/site-packages/rdflib_jsonld/__init__.py:12: DeprecationWarning: 
The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.1.  
Please remove rdflib-jsonld from your project's dependencies.

[...]

  File ".../mc2skos/mc2skos.py", line 19, in <module>
    import rdflib_jsonld.serializer as json_ld
ModuleNotFoundError: No module named 'rdflib_jsonld.serializer'

Version numbers:

  • rdflib==6.1.1
  • rdflib-jsonld==0.6.2

See also: https://github.com/RDFLib/rdflib-jsonld

@DavidBRohrer
Copy link

My workaround: replace rdflib_jsonld.serializer with rdflib.plugins.serializers.jsonld in mc2skos.py.

To avoid warnings during the installation, I deleted two lines in setup.py before installation from source: rdflib[sparql] and rdflib-jsonld.

With that changes I used mc2skos successfully with Python 3.10, rdflib 6.2.0 on Ubuntu 22.04 (LTS).

nichtich added a commit to gbv/mc2skos that referenced this issue Feb 26, 2024
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