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
podman run not working #201
Comments
Same thing with lib version 4.2.0, Python 3.9.7, podman 4.2.0. I tried debugging this for a few hours and found that container.wait() is returning from requests and is valid json, which is a single integer. That line attempts to then treat it as a dictionary and pull the key StatusCode out, which fails in a TypeError. I was never able to get past this either.
|
this is not new for 4.2 or the previous version, unless something changes with the container wait method in podman. I will look at this. |
It seems the wait on libpod returns a single integer rather than json with StatusCode. This may be all because I am using http://127.0.0.1:8090. Example:
Inside api/client.py you can see the compatible_prefix, but if you specify that in the kwargs, it blows up if you use HTTPAdapter, because it doesn't allow the compatible_version kwarg. It then uses self.path_prefix and that's where it gets libpod from. I thought that might be a way to get this to work, but it did not.
Below are some of the requests coming from podman-py.
|
This remains broken on master as of today. |
Hello,
I use the lib version 4.2.0, Python 3.10.4, podman 3.4.4.
If I try to use client.containers.run I get the following error:
Are I'm doing something wrong or is there a bug?
Thanks for the help
Kai
The text was updated successfully, but these errors were encountered: