image_compression_comparison icon indicating copy to clipboard operation
image_compression_comparison copied to clipboard

Build error

Open derduher opened this issue 2 years ago • 1 comments

Hello, I'm running into a build error when following the instructions I ran docker build -t image_compression_comparison . after cloning the repo. And the below error occurred.

I'm not familiar with python or I would attempt the fix myself. Any suggestions are appreciated.

#7 28.19 update-alternatives: warning: skip creation of /usr/share/man/man1/mogrify-im6.1.gz because associated file /usr/share/man/man1/mogrify-im6.q16.1.gz (of link group mogrify-im6) doesn't exist
#7 28.20 Setting up imagemagick (8:6.9.7.4+dfsg-16ubuntu6.13) ...
#7 28.20 Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
#7 28.91 Collecting matplotlib
#7 29.42   Downloading https://files.pythonhosted.org/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl (11.5MB)
#7 32.21 Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 (from matplotlib)
#7 32.37   Downloading https://files.pythonhosted.org/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98kB)
#7 32.41 Collecting pillow>=6.2.0 (from matplotlib)
#7 33.00   Downloading https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)
#7 47.16     Complete output from command python setup.py egg_info:
#7 47.16     Traceback (most recent call last):
#7 47.16       File "<string>", line 1, in <module>
#7 47.16     ModuleNotFoundError: No module named 'setuptools'
#7 47.16
#7 47.16     ----------------------------------------
#7 47.23 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_p7bppkw/pillow/
------
executor failed running [/bin/sh -c buildDeps="autoconf                     automake                     bzip2                     cmake                     curl                     exuberant-ctags                     g++                     gcc                     git                     gperf                     imagemagick                     libexpat1-dev                     libpng-dev                     libjpeg-dev                     libssl-dev                     libtool                     make                     ninja-build                     patchelf                     perl                     pkg-config                     python3                     python3-pip                     re2c                     subversion                     unzip                     wget                     yasm                     zlib1g-dev" &&         apt-get -yqq update &&         apt-get install -yq --no-install-recommends ${buildDeps} &&         pip3 install matplotlib]: exit code: 1

derduher avatar Jul 06 '22 05:07 derduher

try replace 'pip3 install matplotlib' with 'apt-get install -y python3-matplotlib'

seplek avatar Jun 01 '23 07:06 seplek