'org.varlink.service.InvalidParameter' error while using Push function
Description: Push image function throws below error
Traceback (most recent call last):
File "push.py", line 9, in <module>
result= img.push("docker://docker.io/dhanisha/fedora")
File "/root/.local/lib/python3.7/site-packages/podman/libs/images.py", line 88, in push
sign_by)
File "/root/.local/lib/python3.7/site-packages/podman/client.py", line 109, in __exit__
raise error_factory(e)
File "/root/.local/lib/python3.7/site-packages/podman/libs/images.py", line 88, in push
sign_by)
File "/root/.local/lib/python3.7/site-packages/varlink/client.py", line 86, in _wrapped
return self._call(method.name, *args, **kwargs)
File "/root/.local/lib/python3.7/site-packages/varlink/client.py", line 127, in _call
parameters = self._interface.filter_params("client.call", method.in_type, False, args, kwargs)
File "/root/.local/lib/python3.7/site-packages/varlink/scanner.py", line 382, in filter_params
None)
File "/root/.local/lib/python3.7/site-packages/varlink/scanner.py", line 359, in filter_params
raise InvalidParameter(parent_name)
varlink.error.InvalidParameter: {'error': 'org.varlink.service.InvalidParameter', 'parameters': {'parameter': 'client.call.creds'}}
Use below code to reproduce the error:
img = client.images.get('fedora')
res= img.push("docker://docker.io/dhanisha/fedora")
print(res)
Can anyone please tell me whether my usage of the functionality is wrong.
Hello @Phadated
Which version of python-podman, varlink and libpod are in use there?
Varlink:- 17 version podman:- podman version 1.3.1 python-podman: -I pulled the latest changes from the python-podman repository and built egg as per the instructions.
@Phadated thanks for your reply.
Please, can you execute and give us the output of:
pip freeze
I'm not sure but your error look like to an incompatibility issue between python-podman and libpod, where some varlink interfaces are not compatible with something expected.