MISP / docker-misp

Automated Docker MISP container - Malware Information Sharing Platform and Threat Sharing
BSD 3-Clause "New" or "Revised" License
105 stars 31 forks source link

Docker Build Error - UnicodeDecodeError #7

Closed JR-ship closed 4 years ago

JR-ship commented 5 years ago

When attempting to build on OSX I get this error at step 26, any recommendations?

Step 26/45 : RUN sudo pip3 install . ---> Running in 5c095762a0d6 Processing /var/www/MISP/app/files/scripts/python-maec ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-e8c6zs2/setup.py'"'"'; file='"'"'/tmp/pip-req-build-e8c6zs2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egginfo --egg-base pip-egg-info cwd: /tmp/pip-req-build-e8c6zs2/ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-req-build-e8c6zs2_/setup.py", line 54, in long_description=get_longdescription(), File "/tmp/pip-req-build-e8c6zs2/setup.py", line 27, in get_long_description return f.read() File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 141: ordinal not in range(128)

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. The command '/bin/sh -c sudo pip3 install .' returned a non-zero code: 1 bash-3.2$

cedric-ryo commented 5 years ago

When attempting to build on Ubuntu18.04 I get this error at step 26, any recommendations?

Step 26/45 : RUN sudo pip3 install . ---> Running in a5d5d4f82801 Processing /var/www/MISP/app/files/scripts/python-maec ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ibbft7ub/setup.py'"'"'; file='"'"'/tmp/pip-req-build-ibbft7ub/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 pip-egg-info cwd: /tmp/pip-req-build-ibbft7ub/ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-req-build-ibbft7ub/setup.py", line 54, in long_description=get_long_description(), File "/tmp/pip-req-build-ibbft7ub/setup.py", line 27, in get_long_description return f.read() File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 141: ordinal not in range(128)

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Removing intermediate container a5d5d4f82801 The command '/bin/sh -c sudo pip3 install .' returned a non-zero code: 1

ventz commented 5 years ago

@juanaldreagan @cedric311 Sorry for the delay - I wanted to replicate this.

It seems to be actually a problem with the MAEC Project (https://github.com/MAECProject/python-maec.git)

Could you please open an issue there -- you are welcome to link this issue.

For now, if you want we can temporarily remove the MAEC module. Just comment out in the Dockerfile:

WORKDIR /var/www/MISP/app/files/scripts/python-maec
RUN sudo pip3 install .
ventz commented 4 years ago

Fixed upstream.