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

Can run coursera_autograder. docker error: cannot import name "Client" from 'docker' #43

Open
lucasrct opened this issue Sep 5, 2024 · 0 comments

Comments

@lucasrct
Copy link

lucasrct commented Sep 5, 2024

When I run:

coursera_autograder --timeout 1800 upload --grader-memory-limit 4096 --grading-timeout 1800 gen-ai-for-sdc2w2-graderV1.zip

I get the following error:

Traceback (most recent call last):
  File "/home/lucas/miniconda3/bin/coursera_autograder", line 5, in <module>
    from coursera_autograder.main import main
  File "/home/lucas/miniconda3/lib/python3.12/site-packages/coursera_autograder/main.py", line 24, in <module>
    from coursera_autograder import commands
  File "/home/lucas/miniconda3/lib/python3.12/site-packages/coursera_autograder/commands/__init__.py", line 13, in <module>
    from . import *  # noqa
    ^^^^^^^^^^^^^^^
  File "/home/lucas/miniconda3/lib/python3.12/site-packages/coursera_autograder/commands/upload.py", line 25, in <module>
    from coursera_autograder import utils
  File "/home/lucas/miniconda3/lib/python3.12/site-packages/coursera_autograder/utils.py", line 24, in <module>
    from docker import Client
ImportError: cannot import name 'Client' from 'docker' (/home/lucas/miniconda3/lib/python3.12/site-packages/docker/__init__.py). Did you mean: 'client'?

pip list | grep docker output:

docker                    7.1.0
docker-py                 1.10.6
docker-pycreds            0.4.0
dockerfile-parse          2.0.1

docker --version output:

Docker version 27.2.0, build 3ab4256

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