Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]:subprocess-exited-with-error when trying to build on M1 mac #24168

Closed
Labels
Milestone
@kwsp

Description

@kwsp

Bug summary

Following thesetup guide, I cloned the repo, created a conda environment, and when I try to runpython -m pip install -ve ., it throws asubprocess-exited-with-error exception.

I have all thedevelopment dependencies installed, so I'm not sure what could be going wrong.

Code for reproduction

python-mpipinstall-ve .

Actual outcome

(mpl-dev) ~/code/py/matplotlib (main ✗) SETUPTOOLS_ENABLE_FEATURES="legacy-editable" python -m pip install -ve .Using pip 22.2.2 from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pip (python 3.10)Obtaining file:///Users/tnie/code/py/matplotlib  Running command pip subprocess to install build dependencies  Collecting certifi>=2020.06.20    Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)  Collecting numpy>=1.19    Using cached numpy-1.23.4-cp310-cp310-macosx_11_0_arm64.whl (13.3 MB)  Collecting setuptools_scm>=7    Using cached setuptools_scm-7.0.5-py3-none-any.whl (42 kB)  Collecting tomli>=1.0.0    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)  Collecting packaging>=20.0    Using cached packaging-21.3-py3-none-any.whl (40 kB)  Collecting setuptools    Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB)  Collecting typing-extensions    Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)  Collecting pyparsing!=3.0.5,>=2.0.2    Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)  Installing collected packages: typing-extensions, tomli, setuptools, pyparsing, numpy, certifi, packaging, setuptools_scm  Successfully installed certifi-2022.9.24 numpy-1.23.4 packaging-21.3 pyparsing-3.0.9 setuptools-65.5.0 setuptools_scm-7.0.5 tomli-2.0.1 typing-extensions-4.4.0  Installing build dependencies ... done  Running command Checking if build backend supports build_editable  Checking if build backend supports build_editable ... done  Running command Getting requirements to build wheel  /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).    warnings.warn(msg, SetuptoolsDeprecationWarning)  Edit mplsetup.cfg to change the build options; suppress output with --quiet.  BUILDING MATPLOTLIB        python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,                    20:41:22) [Clang 13.0.1 ]]      platform: yes [darwin]         tests: no  [skipping due to configuration]        macosx: yes [installing]  running egg_info  writing lib/matplotlib.egg-info/PKG-INFO  writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt  writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt  writing requirements to lib/matplotlib.egg-info/requires.txt  writing top-level names to lib/matplotlib.egg-info/top_level.txt  adding license file 'LICENSE/LICENSE'  adding license file 'LICENSE/LICENSE_AMSFONTS'  adding license file 'LICENSE/LICENSE_BAKOMA'  adding license file 'LICENSE/LICENSE_CARLOGO'  adding license file 'LICENSE/LICENSE_COLORBREWER'  adding license file 'LICENSE/LICENSE_COURIERTEN'  adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'  adding license file 'LICENSE/LICENSE_QT4_EDITOR'  adding license file 'LICENSE/LICENSE_SOLARIZED'  adding license file 'LICENSE/LICENSE_STIX'  adding license file 'LICENSE/LICENSE_YORICK'  writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'  Getting requirements to build wheel ... done  Running command pip subprocess to install backend dependencies  Collecting wheel    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)  Installing collected packages: wheel  Successfully installed wheel-0.37.1  Installing backend dependencies ... done  Running command Preparing metadata (pyproject.toml)  /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).    warnings.warn(msg, SetuptoolsDeprecationWarning)  Edit mplsetup.cfg to change the build options; suppress output with --quiet.  BUILDING MATPLOTLIB        python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,                    20:41:22) [Clang 13.0.1 ]]      platform: yes [darwin]         tests: no  [skipping due to configuration]        macosx: yes [installing]  running dist_info  creating /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info  writing /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/PKG-INFO  writing dependency_links to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/dependency_links.txt  writing namespace_packages to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/namespace_packages.txt  writing requirements to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/requires.txt  writing top-level names to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/top_level.txt  writing manifest file '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/SOURCES.txt'  adding license file 'LICENSE/LICENSE'  adding license file 'LICENSE/LICENSE_AMSFONTS'  adding license file 'LICENSE/LICENSE_BAKOMA'  adding license file 'LICENSE/LICENSE_CARLOGO'  adding license file 'LICENSE/LICENSE_COLORBREWER'  adding license file 'LICENSE/LICENSE_COURIERTEN'  adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'  adding license file 'LICENSE/LICENSE_QT4_EDITOR'  adding license file 'LICENSE/LICENSE_SOLARIZED'  adding license file 'LICENSE/LICENSE_STIX'  adding license file 'LICENSE/LICENSE_YORICK'  writing manifest file '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/SOURCES.txt'  creating '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib-0.1.0.dev44573+g1f9dc78.d20221014.dist-info'  adding license file "LICENSE/LICENSE_CARLOGO" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_SOLARIZED" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_AMSFONTS" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_BAKOMA" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_QT4_EDITOR" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_STIX" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_YORICK" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_COLORBREWER" (matched pattern "LICENSE/*")  adding license file "LICENSE/LICENSE_COURIERTEN" (matched pattern "LICENSE/*")  Preparing metadata (pyproject.toml) ... doneRequirement already satisfied: pillow>=6.2.0 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (9.2.0)Requirement already satisfied: fonttools>=4.22.0 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (4.37.4)Requirement already satisfied: setuptools-scm>=7 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (7.0.5)Requirement already satisfied: cycler>=0.10 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (0.11.0)Requirement already satisfied: python-dateutil>=2.7 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (2.8.2)Requirement already satisfied: kiwisolver>=1.0.1 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (1.4.4)Requirement already satisfied: contourpy>=1.0.1 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (1.0.5)Requirement already satisfied: pyparsing>=2.2.1 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (3.0.9)Requirement already satisfied: numpy>=1.19 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (1.23.3)Requirement already satisfied: packaging>=20.0 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (21.3)Requirement already satisfied: six>=1.5 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (1.16.0)Requirement already satisfied: setuptools in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm>=7->matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (65.5.0)Requirement already satisfied: tomli>=1.0.0 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm>=7->matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (2.0.1)Requirement already satisfied: typing-extensions in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm>=7->matplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (4.4.0)Installing collected packages: matplotlib  Attempting uninstall: matplotlib    Found existing installation: matplotlib 3.6.1    Uninstalling matplotlib-3.6.1:      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/__pycache__/pylab.cpython-310.pyc      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1-py3.10-nspkg.pth      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1.dist-info/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axes_grid1/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axisartist/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/mplot3d/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/tests/      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pylab.py      Successfully uninstalled matplotlib-3.6.1  Running setup.py develop for matplotlib    Running command python setup.py develop    /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).      warnings.warn(msg, SetuptoolsDeprecationWarning)    Edit mplsetup.cfg to change the build options; suppress output with --quiet.    BUILDING MATPLOTLIB          python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,                      20:41:22) [Clang 13.0.1 ]]        platform: yes [darwin]           tests: no  [skipping due to configuration]          macosx: yes [installing]    running develop    /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.      warnings.warn(    /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.      warnings.warn(    running egg_info    writing lib/matplotlib.egg-info/PKG-INFO    writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt    writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt    writing requirements to lib/matplotlib.egg-info/requires.txt    writing top-level names to lib/matplotlib.egg-info/top_level.txt    adding license file 'LICENSE/LICENSE'    adding license file 'LICENSE/LICENSE_AMSFONTS'    adding license file 'LICENSE/LICENSE_BAKOMA'    adding license file 'LICENSE/LICENSE_CARLOGO'    adding license file 'LICENSE/LICENSE_COLORBREWER'    adding license file 'LICENSE/LICENSE_COURIERTEN'    adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'    adding license file 'LICENSE/LICENSE_QT4_EDITOR'    adding license file 'LICENSE/LICENSE_SOLARIZED'    adding license file 'LICENSE/LICENSE_STIX'    adding license file 'LICENSE/LICENSE_YORICK'    writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'    running build_ext    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -I/opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include/python3.10 -c /var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmpw_eu7bd5.cpp -o var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmpw_eu7bd5.o -fvisibility=hidden    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -I/opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include/python3.10 -c /var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmpkkqo0md2.cpp -o var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmpkkqo0md2.o -fvisibility-inlines-hidden    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include -arch arm64 -I/opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/include/python3.10 -c /var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmp2rkel642.cpp -o var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/tmp2rkel642.o -flto    FreeType build system -- automatic system detection    The following settings are used:      platform                    unix      compiler                    clang      configuration directory     ./builds/unix      configuration rules         ./builds/unix/unix.mk    If this does not correspond to your system or settings please remove the file    `config.mk' from this directory then read the INSTALL file for help.    Otherwise, simply type `/Library/Developer/CommandLineTools/usr/bin/make' again to build the library,    or `/Library/Developer/CommandLineTools/usr/bin/make refdoc' to build the API reference (this needs python >= 2.6).    cd builds/unix; \                ./configure  '--with-zlib=no' '--with-bzip2=no' '--with-png=no' '--with-harfbuzz=no' '--enable-static' '--disable-shared' '--host=arm64-apple-darwin20.0.0'    checking build system type... arm-apple-darwin21.5.0    checking host system type... Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized    configure: error: /bin/sh ./config.sub arm64-apple-darwin20.0.0 failed    make: *** [setup] Error 1    Traceback (most recent call last):      File "<string>", line 2, in <module>      File "<pip-setuptools-caller>", line 34, in <module>      File "/Users/tnie/code/py/matplotlib/setup.py", line 270, in <module>        setup(  # Finally, pass this all along to setuptools to do the heavy lifting.      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup        return distutils.core.setup(**attrs)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup        return run_commands(dist)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands        dist.run_commands()      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands        self.run_command(cmd)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command        super().run_command(command)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command        cmd_obj.run()      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run        self.install_for_development()      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/command/develop.py", line 114, in install_for_development        self.run_command('build_ext')      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command        self.distribution.run_command(command)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command        super().run_command(command)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command        cmd_obj.run()      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run        _build_ext.run(self)      File "/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-build-env-yure_ojr/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run        self.build_extensions()      File "/Users/tnie/code/py/matplotlib/setup.py", line 183, in build_extensions        package.do_custom_build(env)      File "/Users/tnie/code/py/matplotlib/setupext.py", line 641, in do_custom_build        subprocess.check_call(configure, env=env, cwd=src_path)      File "/opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/subprocess.py", line 369, in check_call        raise CalledProcessError(retcode, cmd)    subprocess.CalledProcessError: Command '['./configure', '--with-zlib=no', '--with-bzip2=no', '--with-png=no', '--with-harfbuzz=no', '--enable-static', '--disable-shared', '--host=arm64-apple-darwin20.0.0']' returned non-zero exit status 2.    Building freetype in build/freetype-2.6.1    error: subprocess-exited-with-error    × python setup.py develop did not run successfully.    │ exit code: 1    ╰─> See above for output.    note: This error originates from a subprocess, and is likely not a problem with pip.    full command: /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/bin/python -c '    exec(compile('"'"''"'"''"'"'    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py    #    # - It imports setuptools before invoking setup.py, to enable projects that directly    #   import from `distutils.core` to work with newer packaging standards.    # - It provides a clear error message when setuptools is not installed.    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so    #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:    #     manifest_maker: standard file '"'"'-c'"'"' not found".    # - It generates a shim setup.py, for handling setup.cfg-only projects.    import os, sys, tokenize    try:        import setuptools    except ImportError as error:        print(            "ERROR: Can not execute `setup.py` since setuptools is not available in "            "the build environment.",            file=sys.stderr,        )        sys.exit(1)    __file__ = %r    sys.argv[0] = __file__    if os.path.exists(__file__):        filename = __file__        with tokenize.open(__file__) as f:            setup_py_code = f.read()    else:        filename = "<auto-generated setuptools caller>"        setup_py_code = "from setuptools import setup; setup()"    exec(compile(setup_py_code, filename, "exec"))    '"'"''"'"''"'"' % ('"'"'/Users/tnie/code/py/matplotlib/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps    cwd: /Users/tnie/code/py/matplotlib/  Rolling back uninstall of matplotlib  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/__pycache__/pylab.cpython-310.pyc   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-4nkxktri/pylab.cpython-310.pyc  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1-py3.10-nspkg.pth   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-wsgach0q/matplotlib-3.6.1-py3.10-nspkg.pth  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1.dist-info/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/~atplotlib-3.6.1.dist-info  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/~atplotlib  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axes_grid1/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~xes_grid1  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axisartist/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~xisartist  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/mplot3d/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~plot3d  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/tests/   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~ests  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pylab.py   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-wsgach0q/pylab.pyerror: subprocess-exited-with-error× python setup.py develop did not run successfully.│ exit code: 1╰─> See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.

Expected outcome

Matplotlib should build successfully.

Additional information

No response

Operating system

macOS 12.4

Matplotlib Version

trunk

Matplotlib Backend

No response

Python version

Python 3.10.6

Jupyter version

No response

Installation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp