Public bug reported:

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'"

** Affects: python-docker (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: docker-compose (Ubuntu) => python-docker (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075984

Title:
  python3-docker incompatible with python3-requests in 24.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2075984/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to