[Matplotlib-devel] build fails on MacOsX 10.15.3
Lars Prehn
lprehn at mpi-inf.mpg.de
Sun Apr 5 14:26:54 EDT 2020
Hi everyone,
I'd like to build matplotlib from the gitlab source. I'm stuck at the
point where I need to run:
python -mpip install .
the output looks as follows (shortened a bit):
(matplotlib_dev) Tests-MacBook-Pro-2:matplotlib tadmin$ python -mpip
install .
Processing /Users/tadmin/projects_2020/matplotlib
Requirement already satisfied: cycler>=0.10 in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (1.2.0)
Requirement already satisfied: numpy>=1.15 in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (1.18.2)
Requirement already satisfied: pillow>=6.2.0 in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (7.1.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
in /Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (2.4.6)
Requirement already satisfied: python-dateutil>=2.1 in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
matplotlib==3.2.1+1866.gd1f07d344.dirty) (2.8.1)
Requirement already satisfied: six in
/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages (from
cycler>=0.10->matplotlib==3.2.1+1866.gd1f07d344.dirty) (1.14.0)
Installing collected packages: matplotlib
Running setup.py install for matplotlib ... error
ERROR: Command errored out with exit status 1:
command: /Users/tadmin/matplotlib_dev/bin/python -u -c 'import
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-req-build-x2e7fmv6/setup.py'"'"';
__file__='"'"'/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-req-build-x2e7fmv6/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-record-qxw7pttp/install-record.txt
--single-version-externally-managed --compile --install-headers
/Users/tadmin/matplotlib_dev/include/site/python3.7/matplotlib
cwd:
/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-req-build-x2e7fmv6/
Complete output (569 lines):
Edit setup.cfg to change the build options; suppress output with
--quiet.
BUILDING MATPLOTLIB
matplotlib: yes [3.2.1+1866.gd1f07d344.dirty]
python: yes [3.7.1 (default, Dec 14 2018, 13:28:58) [Clang 4.0.1
(tags/RELEASE_401/final)]]
platform: yes [darwin]
sample_data: yes [installing]
tests: no [skipping due to configuration]
macosx: yes [installing]
/Users/tadmin/anaconda3/lib/python3.7/distutils/dist.py:274:
UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_py
creating build/lib.macosx-10.7-x86_64-3.7
copying lib/pylab.py -> build/lib.macosx-10.7-x86_64-3.7
creating build/lib.macosx-10.7-x86_64-3.7/mpl_toolkits
copying lib/mpl_toolkits/__init__.py ->
build/lib.macosx-10.7-x86_64-3.7/mpl_toolkits
creating build/lib.macosx-10.7-x86_64-3.7/matplotlib
copying lib/matplotlib/hatch.py ->
build/lib.macosx-10.7-x86_64-3.7/matplotlib
.....
copying lib/matplotlib/mpl-data/stylelib/seaborn-deep.mplstyle ->
build/lib.macosx-10.7-x86_64-3.7/matplotlib/mpl-data/stylelib
copying lib/matplotlib/mpl-data/images/back.pdf ->
build/lib.macosx-10.7-x86_64-3.7/matplotlib/mpl-data/images
UPDATING build/lib.macosx-10.7-x86_64-3.7/matplotlib/_version.py
set build/lib.macosx-10.7-x86_64-3.7/matplotlib/_version.py to
'3.2.1+1866.gd1f07d344.dirty'
running build_ext
building 'matplotlib.backends._backend_agg' extension
/usr/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -I/Users/tadmin/anaconda3/include -arch
x86_64 -I/Users/tadmin/anaconda3/include -arch x86_64
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__backend_agg_ARRAY_API
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1
-DFREETYPE_BUILD_TYPE=local -Ibuild/freetype-2.6.1/include
-Iextern/agg24-svn/include
-I/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages/numpy/core/include
-I/Users/tadmin/matplotlib_dev/include
-I/Users/tadmin/anaconda3/include/python3.7m -c src/checkdep_freetype2.c
-o build/temp.macosx-10.7-x86_64-3.7/src/checkdep_freetype2.o
src/checkdep_freetype2.c:14:9: warning: Compiling with FreeType
version 2.6.1. [-W#pragma-messages]
#pragma message("Compiling with FreeType version " \
^
1 warning generated.
/usr/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -I/Users/tadmin/anaconda3/include -arch
x86_64 -I/Users/tadmin/anaconda3/include -arch x86_64
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__backend_agg_ARRAY_API
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1
-DFREETYPE_BUILD_TYPE=local -Ibuild/freetype-2.6.1/include
-Iextern/agg24-svn/include
-I/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages/numpy/core/include
-I/Users/tadmin/matplotlib_dev/include
-I/Users/tadmin/anaconda3/include/python3.7m -c src/mplutils.cpp -o
build/temp.macosx-10.7-x86_64-3.7/src/mplutils.o
warning: include path for stdlibc++ headers not found; pass
'-std=libc++' on the command line to use the libc++ standard library
instead [-Wstdlibcxx-not-found]
1 warning generated.
/usr/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -I/Users/tadmin/anaconda3/include -arch
x86_64 -I/Users/tadmin/anaconda3/include -arch x86_64
-DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__backend_agg_ARRAY_API
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1
-DFREETYPE_BUILD_TYPE=local -Ibuild/freetype-2.6.1/include
-Iextern/agg24-svn/include
-I/Users/tadmin/matplotlib_dev/lib/python3.7/site-packages/numpy/core/include
-I/Users/tadmin/matplotlib_dev/include
-I/Users/tadmin/anaconda3/include/python3.7m -c src/py_converters.cpp -o
build/temp.macosx-10.7-x86_64-3.7/src/py_converters.o
warning: include path for stdlibc++ headers not found; pass
'-std=libc++' on the command line to use the libc++ standard library
instead [-Wstdlibcxx-not-found]
In file included from src/py_converters.cpp:3:
In file included from src/py_converters.h:17:
src/_backend_agg_basic_types.h:7:10: fatal error: 'vector' file not
found
#include <vector>
^~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1:
/Users/tadmin/matplotlib_dev/bin/python -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-req-build-x2e7fmv6/setup.py'"'"';
__file__='"'"'/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-req-build-x2e7fmv6/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install --record
/private/var/folders/km/pk_8hct1101_18g4znr_wdm00000gq/T/pip-record-qxw7pttp/install-record.txt
--single-version-externally-managed --compile --install-headers
/Users/tadmin/matplotlib_dev/include/site/python3.7/matplotlib Check the
logs for full command output.
How can I approach to solve this?
Best regards,
Lars
More information about the Matplotlib-devel
mailing list