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: setuptools when building Docker Image #520

Open
temple opened this issue Nov 14, 2024 · 0 comments
Open

ModuleNotFoundError: setuptools when building Docker Image #520

temple opened this issue Nov 14, 2024 · 0 comments

Comments

@temple
Copy link

temple commented Nov 14, 2024

Describe the bug
When building the norminette docker image at commit a88f7fb (master branch) an error is reported in the step [6/7]

Erroneous code
The error relates to the lack of a module named setuptools when calling python3 setup.py install in the image.

Additional infos
This is the output collected

 => ERROR [6/7] RUN python3 setup.py install                                 0.2s 
------                                                                            
 > [6/7] RUN python3 setup.py install:
0.188 Traceback (most recent call last):
0.188   File "/usr/src/norminette/setup.py", line 1, in <module>
0.188     __import__('setuptools').setup()
0.188     ^^^^^^^^^^^^^^^^^^^^^^^^
0.188 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 context
The build has been executed with:

docker build -t norminette .

The docker version is 27.3.1, build ce12230
OS is

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
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