-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Trying to build on Jetson Nano, encountering a build error with 0.17.1
Installation using pip3 install scikit-image==0.17.1
Collecting scikit-image==0.17.1 Downloading scikit-image-0.17.1.tar.gz (29.8 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lj9nm9y7/scikit-image/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lj9nm9y7/scikit-image/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-0kn8yhc5 cwd: /tmp/pip-install-lj9nm9y7/scikit-image/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-lj9nm9y7/scikit-image/setup.py", line 30, in LONG_DESCRIPTION = 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 0xc3 in position 4029: 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.
Way to reproduce
Generated a small Dockerfile
for this purpose to demonstrate the error (because of the base container being nano specific, might need one to run it):
FROM nvcr.io/nvidia/l4t-base:r32.3.1 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y \ && apt-get install -y --no-install-recommends apt-utils \ && apt-get install -y \ build-essential python3-dev libpython3-dev python-pil python3-tk python-imaging-tk RUN wget -q -O /tmp/get-pip.py --no-check-certificate https://bootstrap.pypa.io/get-pip.py \ && python3 /tmp/get-pip.py \ && pip3 install -U pip RUN pip3 install -U testresources setuptools RUN apt install -y RUN pip3 install -U numpy RUN pip3 install scikit-image==0.17.1
Version information
Using the temporary container built right before the build log (next section)
docker run --rm -it de732dc209a4 root@a8b1e7122edb:/# python3 Python 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import print_function >>> import sys; print(sys.version) 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0] >>> import platform; print(platform.platform()) Linux-4.9.140-tegra-aarch64-with-Ubuntu-18.04-bionic >>> import skimage; print("scikit-image version: {}".format(skimage.__version__)) Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'skimage' >>> import numpy; print("numpy version: {}".format(numpy.__version__))
Build log
docker build --tag ski171:builderror -f scikit-image-0.17.1-Dockerfile . Sending build context to Docker daemon 2.56kB Step 1/8 : FROM nvcr.io/nvidia/l4t-base:r32.3.1 ---> aaaa63e7b12d Step 2/8 : ENV DEBIAN_FRONTEND noninteractive ---> Using cache ---> b35780f1b3af Step 3/8 : RUN apt-get update -y && apt-get install -y --no-install-recommends apt-utils && apt-get install -y python3-dev libpython3-dev python-pil python3-tk python-imaging-tk ---> Using cache ---> a96cbdbb8f3e Step 4/8 : RUN wget -q -O /tmp/get-pip.py --no-check-certificate https://bootstrap.pypa.io/get-pip.py && python3 /tmp/get-pip.py && pip3 install -U pip ---> Using cache ---> b6852764a3b4 Step 5/8 : RUN pip3 install -U testresources setuptools ---> Using cache ---> d895bea13fb3 Step 6/8 : RUN apt install -y build-essential ---> Using cache ---> 4c25ca5a497d Step 7/8 : RUN pip3 install -U numpy ---> Using cache ---> de732dc209a4 Step 8/8 : RUN pip3 install scikit-image==0.17.1 ---> Running in 5b135c7e3b0d Collecting scikit-image==0.17.1 Downloading scikit-image-0.17.1.tar.gz (29.8 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lj9nm9y7/scikit-image/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lj9nm9y7/scikit-image/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-0kn8yhc5 cwd: /tmp/pip-install-lj9nm9y7/scikit-image/ Complete output (7 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-lj9nm9y7/scikit-image/setup.py", line 30, in LONG_DESCRIPTION = 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 0xc3 in position 4029: 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 pip3 install scikit-image==0.17.1' returned a non-zero code: 1
I will try to see if another arm64 base image can be used to reproduce the error.
Metadata
Metadata
Assignees
Labels
No labels