Skip to content

Can not install Redis-Py v4.1.0 in Alpine Linux 3.15 #1869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rashley-iqt opened this issue Jan 6, 2022 · 1 comment · Fixed by #1870
Closed

Can not install Redis-Py v4.1.0 in Alpine Linux 3.15 #1869

rashley-iqt opened this issue Jan 6, 2022 · 1 comment · Fixed by #1870

Comments

@rashley-iqt
Copy link

Thanks for wanting to report an issue you've found in redis-py. Please delete this text and fill in the template below.
It is of course not always possible to reduce your code to a small test case, but it's highly appreciated to have as much data as possible. Thank you!

Version: What redis-py and what redis version is the issue happening on?
Redis-Py v4.1.0 and Redis 6.2.6

Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Python 3.9.7-r4 on Alpine Linux 3.15 in Docker

Description: Description of your issue, stack traces from errors and code that reproduces the issue
Error Message:

Attempting uninstall: packaging
    Found existing installation: packaging 20.9
ERROR: Cannot uninstall 'packaging'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

The requirements.txt file does not specify a version for the dependency on packaging and is implicitly defaulting to latest. this prevents installation in environments where packaging has been installed as part of the OS

To reproduce:

  1. clone this repo
  2. git checkout renovate/redis-4.x
  3. cd into the web directory
  4. docker build .
@chayim
Copy link
Contributor

chayim commented Jan 10, 2022

This change: 1fc1233 should solve part of the issue.

However I've added a PR to close this off from the requirements.txt side as well.

return42 added a commit to return42/searxng that referenced this issue Jan 17, 2022
This reverts interim fix from commit 50c4b58 and adds requirement
`redis==4.1.1`.

The interim fix was needed by Alpine images (Docker) [1] and has been fixed in
commit [2] merged with the patch series from [3]

[1] redis/redis-py#1869
[2] redis/redis-py@1fc1233f
[3] redis/redis-py#1854

Signed-off-by: Markus Heiser <[email protected]>
return42 added a commit to return42/searxng that referenced this issue Jan 17, 2022
This reverts interim fix from commit 50c4b58 and adds requirement
`redis==4.1.1`.

The interim fix was needed by Alpine images (Docker) [1] and has been fixed in
commit [2] merged with the patch series from [3].  In redis-py version 4.1.1
this pach has been released on PyPi [4].

[1] redis/redis-py#1869
[2] redis/redis-py@1fc1233f
[3] redis/redis-py#1854
[4] redis/redis-py#1880

Signed-off-by: Markus Heiser <[email protected]>
not-my-profile pushed a commit to not-my-profile/searxng that referenced this issue Jan 23, 2022
This reverts interim fix from commit 50c4b58 and adds requirement
`redis==4.1.1`.

The interim fix was needed by Alpine images (Docker) [1] and has been fixed in
commit [2] merged with the patch series from [3].  In redis-py version 4.1.1
this pach has been released on PyPi [4].

[1] redis/redis-py#1869
[2] redis/redis-py@1fc1233f
[3] redis/redis-py#1854
[4] redis/redis-py#1880

Signed-off-by: Markus Heiser <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants