[GH-ISSUE #594] Docker build failing because of requests package version conflict #434

Closed
opened 2026-02-25 23:42:26 +03:00 by kerem · 1 comment
Owner

Originally created by @renesas-brandon-hussey on GitHub (Jan 5, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/594

I was trying out a self-hosted version of healthchecks. I am not able to build the Docker Image. I get the following error:

ERROR: Cannot install requests 2.26.0 (from /wheels/requests-2.26.0-py2.py3-none-any.whl) and requests 2.27.0 (from /wheels/requests-2.27.0-py2.py3-none-any.whl) because these package 
versions have conflicting dependencies.                                                                                                                                                 
                                                                                                                                                                                        
The conflict is caused by:                                                                                                                                                              
    The user requested requests 2.26.0 (from /wheels/requests-2.26.0-py2.py3-none-any.whl)                                                                                              
    The user requested requests 2.27.0 (from /wheels/requests-2.27.0-py2.py3-none-any.whl)

I did a little digging. The requirement for requests v2.26.0 is coming from this project's requirements.txt.

https://github.com/healthchecks/healthchecks/blob/master/requirements.txt

The requirement for requests v2.27.0 seems to be coming from apprise.

RUN pip wheel --wheel-dir /wheels apprise uwsgi

For my testing, I just changed the version in this project to v2.27.0. Maybe consider specifying a version range?

Originally created by @renesas-brandon-hussey on GitHub (Jan 5, 2022). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/594 I was trying out a self-hosted version of healthchecks. I am not able to build the Docker Image. I get the following error: ``` ERROR: Cannot install requests 2.26.0 (from /wheels/requests-2.26.0-py2.py3-none-any.whl) and requests 2.27.0 (from /wheels/requests-2.27.0-py2.py3-none-any.whl) because these package versions have conflicting dependencies. The conflict is caused by: The user requested requests 2.26.0 (from /wheels/requests-2.26.0-py2.py3-none-any.whl) The user requested requests 2.27.0 (from /wheels/requests-2.27.0-py2.py3-none-any.whl) ``` I did a little digging. The requirement for requests v2.26.0 is coming from this project's requirements.txt. https://github.com/healthchecks/healthchecks/blob/master/requirements.txt The requirement for requests v2.27.0 seems to be coming from apprise. ``` RUN pip wheel --wheel-dir /wheels apprise uwsgi ``` For my testing, I just changed the version in this project to v2.27.0. Maybe consider specifying a version range?
kerem closed this issue 2026-02-25 23:42:26 +03:00
Author
Owner

@cuu508 commented on GitHub (Jan 5, 2022):

Hey @renesas-brandon-hussey – thank you for the report!
I think I found an OK solution for this: fix the Dockerfile to download all wheels in one go. In that case, pip is clever enough to pick a single requests version, and not to collect (and later try install) two different versions.

I'll bump the requests version too to be on the latest version, but this change should prevent the same issue from happening when requests releases their next version.

<!-- gh-comment-id:1006022166 --> @cuu508 commented on GitHub (Jan 5, 2022): Hey @renesas-brandon-hussey – thank you for the report! I think I found an OK solution for this: fix the Dockerfile to download all wheels in one go. In that case, pip is clever enough to pick a single requests version, and not to collect (and later try install) two different versions. I'll bump the requests version too to be on the latest version, but this change should prevent the same issue from happening when requests releases their next version.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#434
No description provided.