Skip to content

シミュレータDockerビルド時のエラー #5

@apparettedare

Description

@apparettedare
OS Ubuntu 24.04
Docker 29.2.1
Docker Compose 5.0.2

シミュレータのDockerをビルドする際に以下のエラーが発生しました.

 => CANCELED [qt-builder 4/6] RUN cd /opt/Qt &&    wget https://download.qt.io/archive/qt/5.12/5.12.3/qt-opensource  7.2s
 => ERROR [stage-1  9/41] RUN pip3 install psutil                                                                    6.6s
------                                                                                                                    
 > [stage-1  9/41] RUN pip3 install psutil:                                                                               
3.615 Collecting psutil                                                                                                   
5.020   Downloading https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz (493kB)                                                                                          
6.244     Complete output from command python setup.py egg_info:
6.244     Traceback (most recent call last):
6.244       File "<string>", line 1, in <module>
6.244       File "/tmp/pip-build-h3e4hrbe/psutil/setup.py", line 558, in <module>
6.244         main()
6.244       File "/tmp/pip-build-h3e4hrbe/psutil/setup.py", line 468, in main
6.244         long_description=get_long_description(),
6.244       File "/tmp/pip-build-h3e4hrbe/psutil/setup.py", line 185, in get_long_description
6.244         raise RuntimeError(stderr)
6.244     RuntimeError: Traceback (most recent call last):
6.244       File "/tmp/pip-build-h3e4hrbe/psutil/scripts/internal/convert_readme.py", line 60, in <module>
6.244         main()
6.244       File "/tmp/pip-build-h3e4hrbe/psutil/scripts/internal/convert_readme.py", line 34, in main
6.244         text = f.read()
6.244       File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
6.244         return codecs.ascii_decode(input, self.errors)[0]
6.244     UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 21305: ordinal not in range(128)
6.244     
6.244     
6.244     ----------------------------------------
6.269 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-h3e4hrbe/psutil/
------

Dockerfileの129行目付近でpipをアップグレードすることで解決しました.

# Install Python3 packages
RUN apt-get install -y python3 python3-pip
+ RUN pip3 install --upgrade pip
RUN pip3 install rospkg 
RUN pip3 install empy==3.3.4
RUN pip3 install psutil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions