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

ModuleNotFoundError when building Docker Image #513

Open
Charystag opened this issue Sep 10, 2024 · 0 comments
Open

ModuleNotFoundError when building Docker Image #513

Charystag opened this issue Sep 10, 2024 · 0 comments

Comments

@Charystag
Copy link

Describe the bug
ModuleNotFoundError when building Docker image. The error occurs when trying to run the command RUN python3 setup.py install

Erroneous code
Here is the log from the python interpreter :

 => ERROR [6/7] RUN python3 setup.py install                                                       0.2s
------                                                                                                  
 > [6/7] RUN python3 setup.py install:                                                                  
0.142 Traceback (most recent call last):                                                                
0.142   File "/usr/src/norminette/setup.py", line 1, in <module>                                        
0.142     __import__('setuptools').setup()                                                              
0.142     ^^^^^^^^^^^^^^^^^^^^^^^^
0.142 ModuleNotFoundError: No module named 'setuptools'
------
Dockerfile:13
--------------------
  11 |     COPY . .
  12 |     
  13 | >>> RUN python3 setup.py install
  14 |     
  15 |     WORKDIR /code
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 setup.py install" did not complete successfully: exit code: 1

Additional infos

norminette 3.3.51

Additional context
I ran the command docker build -t norminette . and encountered the error

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