Skip to content
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

partially initialized module 'docker' has no attribute 'from_env' on arch linux #3104

Closed
mftzk opened this issue Mar 23, 2023 · 0 comments
Closed

Comments

@mftzk
Copy link

mftzk commented Mar 23, 2023

Hello everyone!

I got error when run my python code, it looks like docker module not working on my system

Python Docker Run Environment

Linux

Linux linux 6.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Mar 2023 01:06:36 +0000 x86_64 GNU/Linux

Python

○ → python --version
Python 3.10.10

Python Docker

pip freeze | grep docker
docker==6.0.1
docker-py==1.10.6
docker-pycreds==0.4.0

The error

When I create object for client the error looks like this:

Traceback (most recent call last):
  File "/home/aji/async/docker.py", line 1, in <module>
    import docker
  File "/home/aji/async/docker.py", line 9, in <module>
    run_container()
  File "/home/aji/async/docker.py", line 5, in run_container
    client = docker.from_env()
AttributeError: partially initialized module 'docker' has no attribute 'from_env' (most likely due to a circular import)

if you got any vision just discus with me here :)
Thank you in advance!

@mftzk mftzk changed the title partially initialized module 'docker' has no attribute 'from_env' partially initialized module 'docker' has no attribute 'from_env' on arch linux Mar 23, 2023
@mftzk mftzk closed this as completed Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant