Error running aim up
See original GitHub issueHello, I am facing this issues trying to get aim up and running:
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 50, in image_exist images = cls._get_docker_client().images.list() AttributeError: ‘function’ object has no attribute ‘list’
I dug a little further, solving the issues below and found that docker_client.containers is an empty list. I am using a third-party code that uses aim, and I’m wondering if these issues are related to a different version used to create the logging files or if it is a docker issue.
Thanks in advance.
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 52, in image_exist for t in i.attrs[‘RepoTags’]: AttributeError: ‘dict’ object has no attribute ‘attrs’
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 100, in get_container containers = docker_client.containers.list(all=~running_only, AttributeError: ‘function’ object has no attribute ‘list’
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 112, in kill aim_containers = docker_client.containers.list(all=True, filters={ AttributeError: ‘function’ object has no attribute ‘list’
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 83, in up container = docker_client.containers.run(image_name, AttributeError: ‘function’ object has no attribute ‘run’
File “/conda/envs/torch/lib/python3.8/site-packages/aim/engine/container/container.py”, line 83, in up container = docker_client.containers(image_name, TypeError: containers() got an unexpected keyword argument ‘name’
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
I just tried to reproduce the issue and came across a weird behavior, but it worked nonetheless.
Reproduction steps:
docker-pywithpip install docker-py;pip install aim;aim up-> gotAttributeError: 'function' object has no attribute 'list'error;docker-pywithpip uninstall docker-py;docker-pycredwhich came along withdocker-py, not sure if it has any effect;aim up-> now aim says docker is not installed;dockerwithpip uninstall docker;dockeragainpip install docker==4.3.1;aim upand it worked!Earlier I tried to reinstall docker using
pipas you said, but didn’t worked. I had to remove docker from my system, redo the steps to add my user to docker group and install aim in a new env. Thank you for helping!