RDFLib / pySHACL

A Python validator for SHACL
Apache License 2.0
241 stars 63 forks source link

pySHACL uses deprecated API `pkg_resources` #212

Closed jakebeal closed 8 months ago

jakebeal commented 8 months ago

pySHACL uses a deprecated API, pkg_resources, which is no longer supported in some environments: https://setuptools.pypa.io/en/latest/pkg_resources.html

We use pySHACL in a number of projects, and it is creating failures for us with Python 3.12.

Example of pySHACL causing failures due to its import of pkg_resources: https://github.com/SynBioDex/pySBOL3/actions/runs/6538548950/job/17754712923

ashleysommer commented 8 months ago

This is a duplicate of #188 There are a couple of different attempts at a fix, but it is not an easy task. Hopefully we'll get an updated version out by next week.

ashleysommer commented 8 months ago

Fixed by https://github.com/RDFLib/pySHACL/commit/2de29c09b1bdf801fe5b39bdb4d29e3c871266c4

jakebeal commented 8 months ago

Thank you! I will keep my eyes out for the new version.

ashleysommer commented 8 months ago

@jakebeal Now you don't need to wait until next week, the new version with this fix is out now. Note, PySHACL still does not officially support python 3.12, and the application is not tested on python 3.12, so you may run into other problems.