python3-docker incompatible with python3-requests in 24.04

Bug #2075984 reported by Gnitset
This bug report is a duplicate of:  Bug #2069832: outdated. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-docker (Ubuntu)
New
Undecided
Unassigned

Bug Description

As can be found in this issue in upstream, the python3-docker package in 24.04 is incompatible with the version of python3-request.
https://github.com/docker/docker-py/issues/3113#issuecomment-1533505733

Running the example from that thread:
> from docker import APIClient
> from docker.utils import kwargs_from_env
>
> kwargs = kwargs_from_env()
> client = APIClient(**kwargs)
>
> def generate_data():
> yield b'123'
>
> container = client.create_container(image='debian:bullseye', command=['/bin/sh', '-c', 'ls -la /'], stdin_open=True, detach=True, name='test')
> client.put_archive(container['Id'], '/', generate_data())
Gives the error:
"docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'"

Gnitset (gnitset)
affects: docker-compose (Ubuntu) → python-docker (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.