rdflib icon indicating copy to clipboard operation
rdflib copied to clipboard

Unable to embed rdflib in a python extension

Open prrvchr opened this issue 1 year ago • 1 comments

Hi all,

I need to embed rdflib in a LibreOffice extension written in python.

Libreoffice allows me to add packages to a directory which is added to the python path in order to make them available.

Not being installed by pip, the rdflib package cannot work like this because of the management of the __version__ attribute which requires pip installation (ie: importlib.metadata.metadata("rdflib")["Version"])

This makes it impossible to use the rdflib package without it being installed in the system python (ie: pip install), just because of the handling of the __version__ attribute. it's really a shame.

prrvchr avatar Dec 17 '23 22:12 prrvchr