question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running aim up

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
gorarakelyancommented, Nov 21, 2020

I just tried to reproduce the issue and came across a weird behavior, but it worked nonetheless.

Reproduction steps:

  • Created an empty conda env;
  • Installed docker-py with pip install docker-py;
  • Installed aim with pip install aim;
  • Tried to run aim up -> got AttributeError: 'function' object has no attribute 'list' error;
  • Removed docker-py with pip uninstall docker-py;
    • Also removed docker-pycred which came along with docker-py, not sure if it has any effect;
  • Tried to run aim up -> now aim says docker is not installed;
  • Removed package docker with pip uninstall docker;
  • Installed docker again pip install docker==4.3.1;
  • Run aim up and it worked!
0reactions
walbermrcommented, Nov 21, 2020

Earlier I tried to reinstall docker using pip as 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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should aim run in docker? · Issue #275 · aimhubio/aim - GitHub
I install docker-py and successfully import docker. ... Then, aim up didn't work. but next case I ping successfully: (ml) hy@B250M:/hy ...
Read more >
Aiming In Fortnite Chapter 4 Is BROKEN... Here's How To Fix It!
Aiming may seem off in Chapter 4 season 1 and it's possibly the result of a bug with some new settings. Try this...
Read more >
Error during software starting up - AIM Sportline
Answer: If the software crashes or displays “no answer” message when starting up, procedures described below will help solving the problem:.
Read more >
Aim Lab won't load. - Steam Community
Whenever I open up Aim Lab it loads then I am stuck at the screen that says (VERY) EARLY ACCESS and it stays...
Read more >
AIM error "APPAP002E Provider Prov_Hostname has failed to ...
App provider error while extracting password "APPAP002E Provider Prov_Hostname has failed to fetch password with query [Username=Usernamet;Folder=Root ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found