scriptotek / mc2skos

Command line script for converting Marc21 Classification and Authority records to SKOS/RDF
The Unlicense
21 stars 4 forks source link

rdflib-jsonld package has been deprecated #72

Open CaptSolo opened 2 years ago

CaptSolo commented 2 years ago

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:

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

DavidBRohrer commented 1 year ago

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.pybefore 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).