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

Error when building MISP Core on Branch Noble #208

Closed
Diogo-Rego opened this issue Jan 10, 2025 · 2 comments
Closed

Error when building MISP Core on Branch Noble #208

Diogo-Rego opened this issue Jan 10, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Diogo-Rego
Copy link
Contributor

Diogo-Rego commented Jan 10, 2025

Error when building MISP Core on Branch Noble

  • MISP Core v2.5.4
#37 [stage-4 10/22] RUN cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py         /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py
#37 0.289 cp: cannot stat '/usr/lib/python3/dist-packages/setuptools/_distutils/version.py': No such file or directory
#37 ERROR: process "/bin/sh -c cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py         /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py" did not complete successfully: exit code: 1
------
 > [stage-4 10/22] RUN cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py         /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py:
0.289 cp: cannot stat '/usr/lib/python3/dist-packages/setuptools/_distutils/version.py': No such file or directory
------
Dockerfile:249
--------------------
 248 |         # 'setuptools' is needed at runtime by 'mixbox'
 249 | >>>     RUN cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py \
 250 | >>>         /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py
 251 |         RUN sed -i 's/from distutils\.version/from mixbox.distutils_version/' \
--------------------
ERROR: failed to solve: process "/bin/sh -c cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py         /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py" did not complete successfully: exit code: 1
@Diogo-Rego Diogo-Rego changed the title Error when building MISP Core Error when building MISP Core on Branch Noble Jan 10, 2025
@ostefano
Copy link
Collaborator

Looks like they started updating the base image. Will end up pinning it... in the meanwhile, I will look into it. Thanks for the bug!

@Diogo-Rego
Copy link
Contributor Author

Fix:

    # 'setuptools' is needed at runtime by 'mixbox'
-    RUN cp /usr/lib/python3/dist-packages/setuptools/_distutils/version.py \
+    RUN cp /usr/local/lib/python3.12/dist-packages/setuptools/_distutils/version.py \
        /usr/local/lib/python3.12/dist-packages/mixbox/distutils_version.py
    RUN sed -i 's/from distutils\.version/from mixbox.distutils_version/' \
        /usr/local/lib/python3.12/dist-packages/mixbox/parser.py
    RUN apt-get remove --purge python3-pip python3-wheel python3-setuptools -y

@ostefano ostefano self-assigned this Jan 12, 2025
@ostefano ostefano added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants