gen-quickstart icon indicating copy to clipboard operation
gen-quickstart copied to clipboard

Docker build errors on Mac (w/ARM chip)

Open derifatives opened this issue 4 years ago • 0 comments

I installed docker and tried running docker build -t gen:v0 . It boils for awhile and then fails with a ton of errors while trying to build matplotlib. There's too much to cut and paste the whole thing but the first error seems to be:

#10 3.414     ERROR: Command errored out with exit status 1:
#10 3.414      command: /venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z8ufu011/matplotlib_3e73c3534f474c909594c0630ecd2a2d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z8ufu011/matplotlib_3e73c3534f474c909594c0630ecd2a2d/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-qikd13gd
#10 3.414          cwd: /tmp/pip-install-z8ufu011/matplotlib_3e73c3534f474c909594c0630ecd2a2d/
#10 3.414     Complete output (50 lines):
#10 3.414     IMPORTANT WARNING:
#10 3.414         pkg-config is not installed.
#10 3.414         matplotlib may not be able to find some of its dependencies
#10 3.414     ============================================================================
#10 3.414     Edit setup.cfg to change the build options
#10 3.414     
#10 3.414     BUILDING MATPLOTLIB
#10 3.414                 matplotlib: yes [3.0.3]
#10 3.414                     python: yes [3.5.2 (default, Jan 26 2021, 13:30:48)  [GCC
#10 3.414                             5.4.0 20160609]]
#10 3.414                   platform: yes [linux]
#10 3.414     
#10 3.414     REQUIRED DEPENDENCIES AND EXTENSIONS
#10 3.414                      numpy: yes [not found. pip may install it below.]
#10 3.414           install_requires: yes [handled by setuptools]
#10 3.414                     libagg: yes [pkg-config information for 'libagg' could not
#10 3.414                             be found. Using local copy.]
#10 3.414                   freetype: no  [The C/C++ header for freetype2 (ft2build.h)
#10 3.414                             could not be found.  You may need to install the
#10 3.414                             development package.]
#10 3.414                        png: no  [pkg-config information for 'libpng' could not
#10 3.414                             be found.]
#10 3.414                      qhull: yes [pkg-config information for 'libqhull' could not
#10 3.414                             be found. Using local copy.]
#10 3.414     
#10 3.414     OPTIONAL SUBPACKAGES
#10 3.414                sample_data: yes [installing]
#10 3.414                   toolkits: yes [installing]
#10 3.414                      tests: no  [skipping due to configuration]
#10 3.414             toolkits_tests: no  [skipping due to configuration]
#10 3.414     
#10 3.414     OPTIONAL BACKEND EXTENSIONS
#10 3.414                        agg: yes [installing]
#10 3.414                      tkagg: yes [installing; run-time loading from Python Tcl /
#10 3.414                             Tk]
#10 3.414                     macosx: no  [Mac OS-X only]
#10 3.414                  windowing: no  [Microsoft Windows only]
#10 3.414     
#10 3.414     OPTIONAL PACKAGE DATA
#10 3.414                       dlls: no  [skipping due to configuration]
#10 3.414     
#10 3.414     ============================================================================
#10 3.414                             * The following required packages can not be built:
#10 3.414                             * freetype, png
#10 3.414                             * Try installing freetype with `apt-get install
#10 3.414                             * libfreetype6-dev` and pkg-config with `apt-get
#10 3.414                             * install pkg-config`
#10 3.414                             * Try installing png with `apt-get install
#10 3.414                             * libpng12-dev` and pkg-config with `apt-get install
#10 3.414                             * pkg-config`
#10 3.414     ----------------------------------------

derifatives avatar Dec 20 '21 05:12 derifatives