docker-py: Getting TypeError while calling docker.from_env() in v3.1.2
There is a problem with the just-released version 3.1.2:
$ pip list docker | grep docker
docker (3.1.2)
$ python -c 'import docker; docker.from_env()'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/.../env/lib/python2.7/site-packages/docker/client.py", line 81, in from_env
**kwargs_from_env(**kwargs))
File "/Users/.../env/lib/python2.7/site-packages/docker/client.py", line 38, in __init__
self.api = APIClient(*args, **kwargs)
File "/Users/.../env/lib/python2.7/site-packages/docker/api/client.py", line 110, in __init__
config_dict=self._general_configs
TypeError: load_config() got an unexpected keyword argument 'config_dict'
exit code 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 19 (6 by maintainers)
Commits related to this issue
- Bump docker -> 3.1.3 Refs https://github.com/docker/docker-py/issues/1968 — committed to readthedocs/readthedocs.org by agjohnson 6 years ago
- Bump docker -> 3.1.3 (#3828) Refs https://github.com/docker/docker-py/issues/1968 — committed to readthedocs/readthedocs.org by agjohnson 6 years ago
Alright, I somehow fixed it by doing
This bug is shown again in 3.1.4? Docker version 17.12.0-ce, build c97c6d6
@wjhill Ansible may be installing the deprecated
docker-py
package which conflicts with thedocker
package. Make sure you only have one or the other installed.Works now. Thanks for the quick response!
works for me at least, thanks