RDFLib / sparqlwrapper

A wrapper for a remote SPARQL endpoint
https://sparqlwrapper.readthedocs.io/
Other
513 stars 121 forks source link

Cannot install with conda for Python >=3.10 #223

Closed rfm-targa closed 1 year ago

rfm-targa commented 1 year ago

Greetings!

I've created a PR in Bioconda to update the dependency versions of a tool. I want the tool to work with Python >=3.10. SPARQLWrapper is one of the dependencies. The build is failing because SPARQLWrapper v2.0.0 is not available through conda. I could try to use SPARQLWrapper v1.8.5, but it seems like that version is not available for Python >=3.10. When I attempt to install it in an environment that has Python 3.11, it finds conflicts and outputs the following:

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - sparqlwrapper -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.5,<3.6.0a0|3.4.*']

Your python: python=3.11

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The same happens with Python 3.10 and when trying to install with Mamba. It works fine with Python 3.9. I found SPARQLWrapper v2.0.0 on PyPI, which will enable users to install my tool through pip, but installing through conda is preferred because it installs other dependencies that are not available on PyPI. There are several PRs in conda-forge to update SPARQLWrapper, including one PR to update to v2.0.0 that has passed the tests. Are there plans to have SPARQLWrapper v2.0.0 on conda soon or is there any problem with the recipe that passed the tests? Thanks in advance!

Rafael

rfm-targa commented 1 year ago

I've opened a PR in Conda-forge https://github.com/conda-forge/sparqlwrapper-feedstock/pull/26 that will update the recipe and make SPARQLWrapper v2.0.0 available through Conda for Python >=3.10.

rfm-targa commented 1 year ago

The PR in Conda-forge https://github.com/conda-forge/sparqlwrapper-feedstock/pull/26 has been merged and SPARQLWrapper 2.0.0 is available to install through conda, including for Python >=3.10. Closing this issue.