dataiku / dataiku-api-client-python

Python client for the DSS public API
https://doc.dataiku.com/dss/latest/api/public/
Other
41 stars 25 forks source link

Pinned requests dependency #272

Open chrisk314 opened 2 years ago

chrisk314 commented 2 years ago

Please resolve whatever issues are preventing you from using the most recent version of requests and unpin this dependency. Pinned dependencies in library packages introduce issues for users downstream, as shown in the output from pip included below.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
dataiku-api-client 11.0.0 requires requests<2.22,>=2, but you have requests 2.28.1 which is incompatible.
Successfully installed adlfs-2022.11.2 aiohttp-3.8.3 art-5.8 azure-storage-blob-12.14.1 backoff-2.2.1 contourpy-1.0.6 cycler-0.11.0 exceptiongroup-1.0.4 fonttools-4.38.0 importlib-metadata-5.1.0 ipywidgets-8.0.2 jsonschema-4.17.3 jupyter-1.0.0 jupyter-console-6.4.4 jupyterlab-widgets-3.0.3 kiwisolver-1.4.4 llvmlite-0.39.1 markdown-3.4.1 matplotlib-3.6.2 mlflow-2.0.1 nest_asyncio-1.5.6 networkx-2.8.8 numba-0.56.4 numpy-1.22.4 pandas-1.5.2 papermill-2.4.0 pika-1.3.1 pyarrow-10.0.1 pydantic-1.10.2 pytest-7.2.0 pytest-asyncio-0.20.2 qtconsole-5.4.0 qtpy-2.3.0 redis-4.3.5 requests-2.28.1 scikit-learn-1.1.3 shap-0.41.0 slicer-0.0.7 treelite-3.0.1 treelite_runtime-3.0.1 widgetsnbextension-4.0.3
shicholas commented 1 year ago

We'd love for requests to be unpinned because it conflicts with a lot of standard PyPi packages like common AWS libraries (e.g. redshift). This means that we isolate Dataiku work in its own virtual environments to work with it, where as we wish it was better integrated with the rest of our Python code.

janhurst commented 1 year ago

I have the same issue here. I've cloned this repo and unpinned the dependency and built a private pip package to work around this. It has worked across a number of projects.