camunda-external-task-client-python3 icon indicating copy to clipboard operation
camunda-external-task-client-python3 copied to clipboard

requests dependency confusion

Open Muyv opened this issue 2 years ago • 3 comments

Hi, maintainers:

i'm attempting to use this awesome package in my project to do some workflow integration. when i try to pip install -r requirements.txt, it says

The conflict is caused by:
    The user requested requests==2.27.1
    camunda-external-task-client-python3 4.3.0 depends on requests==2.24.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

here is the part of my requirements.txt:

camunda-external-task-client-python3==4.3.0
requests==2.27.1

but i have another package which uses requests package version >= 2.24.0 when i remove ==4.3.0, it works, got an old version 3.0.0,

maybe here are some clue to find out the reason: the 2.24.0 appears in setup.cfg, but in requirements.txt it is 2.26.0

https://github.com/camunda-community-hub/camunda-external-task-client-python3/blob/ed7a493942dea6c1b570298f67b09dc12ff7da11/setup.cfg#L26

https://github.com/camunda-community-hub/camunda-external-task-client-python3/blob/ed7a493942dea6c1b570298f67b09dc12ff7da11/requirements.txt#L1

i'm new to python, i don't know how pypi/pip works. but i guess it was just a mistyping of manifest .

thx.

Muyv avatar Mar 03 '22 06:03 Muyv

Hello @Muyv, Thank you for pointing this mistake out. I will try to make the dependencies consistent in next release. Meanwhile, can you update your requirements.txt to just following and see if things work for you?

camunda-external-task-client-python3==4.3.0

yogeshrnaik avatar Mar 03 '22 14:03 yogeshrnaik

Hello @Muyv, Thank you for pointing this mistake out. I will try to make the dependencies consistent in next release. Meanwhile, can you update your requirements.txt to just following and see if things work for you?

camunda-external-task-client-python3==4.3.0

thanks for your response, i can now install the package by pip install camunda-external-task-client-python3 and then pip install requests==2.27.1 indenpendently to avoid the errors. look forward to your upgrade.

Muyv avatar Mar 05 '22 01:03 Muyv

Please, allow new requests in install_requires (setup.cfg) You can use requests>=2.24.0

vQuadX avatar Jul 18 '22 05:07 vQuadX