Closed jtp2112 closed 3 years ago
Confirm issue based on scheduled Actions flow #7
The issue is identified during MISP modules installing process where misp-modules
setup its dependencies. The same issue has also been reported to the upstream as MISP/misp-modules#453.
I will follow any change made to resolve MISP/misp-modules#453 and merge to the project. In case you really need to spin up the platform, I suggest comment out the Install MISP modules section on Dockerfile
and rebuilding it.
Added workaround by forcing misp-modules
to be installed from stable version.
Workaround confirmed with Actions flow #8.
During docker-compose up -d:
Collecting importlib==1.0.4 Downloading importlib-1.0.4.zip (7.1 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qy0u37e9/importlib_c166265216f74de7b3fade999d0b8c1f/setup.py'"'"'; file='"'"'/tmp/pip-install-qy0u37e9/importlib_c166265216f74de7b3fade999d0b8c1f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-z_sy139j cwd: /tmp/pip-install-qy0u37e9/importlib_c166265216f74de7b3fade999d0b8c1f/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in
File "/usr/local/lib/python3.6/dist-packages/setuptools/init.py", line 10, in
import distutils.core
File "/usr/lib/python3.6/distutils/core.py", line 16, in
from distutils.dist import Distribution
File "/usr/lib/python3.6/distutils/dist.py", line 19, in
from distutils.util import check_environ, strtobool, rfc822_escape
File "/usr/lib/python3.6/distutils/util.py", line 9, in
import importlib.util
ModuleNotFoundError: No module named 'importlib.util'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Service 'misp-web' failed to build: The command '/bin/sh -c cd misp-modules && pip3 install -I -r REQUIREMENTS && pip3 install -I . && echo "sudo -u www-data misp-modules -s -l 127.0.0.1 &" >>/etc/rc.local' returned a non-zero code: 1