René's URL Explorer Experiment


Title: [Bug]: `subprocess-exited-with-error` when trying to build on M1 mac · Issue #24168 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: `subprocess-exited-with-error` when trying to build on M1 mac · Issue #24168 · matplotlib/matplotlib

X Title: [Bug]: `subprocess-exited-with-error` when trying to build on M1 mac · Issue #24168 · matplotlib/matplotlib

Description: Bug summary Following the setup guide, I cloned the repo, created a conda environment, and when I try to run python -m pip install -ve . , it throws a subprocess-exited-with-error exception. I have all the development dependencies instal...

Open Graph Description: Bug summary Following the setup guide, I cloned the repo, created a conda environment, and when I try to run python -m pip install -ve . , it throws a subprocess-exited-with-error exception. I have...

X Description: Bug summary Following the setup guide, I cloned the repo, created a conda environment, and when I try to run python -m pip install -ve . , it throws a subprocess-exited-with-error exception. I have...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24168

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: `subprocess-exited-with-error` when trying to build on M1 mac","articleBody":"### Bug summary\r\n\r\nFollowing the [setup guide](https://matplotlib.org/devdocs/devel/development_setup.html#install-matplotlib-in-editable-mode), I cloned the repo, created a conda environment, and when I try to run `python -m pip install -ve .\r\n`, it throws a `subprocess-exited-with-error` exception.\r\n\r\nI have all the [development dependencies](https://matplotlib.org/devdocs/devel/dependencies.html#development-dependencies) installed, so I'm not sure what could be going wrong. \r\n\r\n### Code for reproduction\r\n\r\n```python\r\npython -m pip install -ve .\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n```\r\n(mpl-dev) ~/code/py/matplotlib (main ✗) SETUPTOOLS_ENABLE_FEATURES=\"legacy-editable\" python -m pip install -ve .\r\nUsing pip 22.2.2 from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pip (python 3.10)\r\nObtaining file:///Users/tnie/code/py/matplotlib\r\n  Running command pip subprocess to install build dependencies\r\n  Collecting certifi\u003e=2020.06.20\r\n    Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)\r\n  Collecting numpy\u003e=1.19\r\n    Using cached numpy-1.23.4-cp310-cp310-macosx_11_0_arm64.whl (13.3 MB)\r\n  Collecting setuptools_scm\u003e=7\r\n    Using cached setuptools_scm-7.0.5-py3-none-any.whl (42 kB)\r\n  Collecting tomli\u003e=1.0.0\r\n    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)\r\n  Collecting packaging\u003e=20.0\r\n    Using cached packaging-21.3-py3-none-any.whl (40 kB)\r\n  Collecting setuptools\r\n    Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB)\r\n  Collecting typing-extensions\r\n    Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)\r\n  Collecting pyparsing!=3.0.5,\u003e=2.0.2\r\n    Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)\r\n  Installing collected packages: typing-extensions, tomli, setuptools, pyparsing, numpy, certifi, packaging, setuptools_scm\r\n  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\r\n  Installing build dependencies ... done\r\n  Running command Checking if build backend supports build_editable\r\n  Checking if build backend supports build_editable ... done\r\n  Running command Getting requirements to build wheel\r\n  /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).\r\n    warnings.warn(msg, SetuptoolsDeprecationWarning)\r\n\r\n  Edit mplsetup.cfg to change the build options; suppress output with --quiet.\r\n\r\n  BUILDING MATPLOTLIB\r\n        python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,\r\n                    20:41:22) [Clang 13.0.1 ]]\r\n      platform: yes [darwin]\r\n         tests: no  [skipping due to configuration]\r\n        macosx: yes [installing]\r\n\r\n  running egg_info\r\n  writing lib/matplotlib.egg-info/PKG-INFO\r\n  writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt\r\n  writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt\r\n  writing requirements to lib/matplotlib.egg-info/requires.txt\r\n  writing top-level names to lib/matplotlib.egg-info/top_level.txt\r\n  adding license file 'LICENSE/LICENSE'\r\n  adding license file 'LICENSE/LICENSE_AMSFONTS'\r\n  adding license file 'LICENSE/LICENSE_BAKOMA'\r\n  adding license file 'LICENSE/LICENSE_CARLOGO'\r\n  adding license file 'LICENSE/LICENSE_COLORBREWER'\r\n  adding license file 'LICENSE/LICENSE_COURIERTEN'\r\n  adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'\r\n  adding license file 'LICENSE/LICENSE_QT4_EDITOR'\r\n  adding license file 'LICENSE/LICENSE_SOLARIZED'\r\n  adding license file 'LICENSE/LICENSE_STIX'\r\n  adding license file 'LICENSE/LICENSE_YORICK'\r\n  writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'\r\n  Getting requirements to build wheel ... done\r\n  Running command pip subprocess to install backend dependencies\r\n  Collecting wheel\r\n    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)\r\n  Installing collected packages: wheel\r\n  Successfully installed wheel-0.37.1\r\n  Installing backend dependencies ... done\r\n  Running command Preparing metadata (pyproject.toml)\r\n  /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).\r\n    warnings.warn(msg, SetuptoolsDeprecationWarning)\r\n\r\n  Edit mplsetup.cfg to change the build options; suppress output with --quiet.\r\n\r\n  BUILDING MATPLOTLIB\r\n        python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,\r\n                    20:41:22) [Clang 13.0.1 ]]\r\n      platform: yes [darwin]\r\n         tests: no  [skipping due to configuration]\r\n        macosx: yes [installing]\r\n\r\n  running dist_info\r\n  creating /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info\r\n  writing /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/PKG-INFO\r\n  writing dependency_links to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/dependency_links.txt\r\n  writing namespace_packages to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/namespace_packages.txt\r\n  writing requirements to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/requires.txt\r\n  writing top-level names to /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/top_level.txt\r\n  writing manifest file '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/SOURCES.txt'\r\n  adding license file 'LICENSE/LICENSE'\r\n  adding license file 'LICENSE/LICENSE_AMSFONTS'\r\n  adding license file 'LICENSE/LICENSE_BAKOMA'\r\n  adding license file 'LICENSE/LICENSE_CARLOGO'\r\n  adding license file 'LICENSE/LICENSE_COLORBREWER'\r\n  adding license file 'LICENSE/LICENSE_COURIERTEN'\r\n  adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'\r\n  adding license file 'LICENSE/LICENSE_QT4_EDITOR'\r\n  adding license file 'LICENSE/LICENSE_SOLARIZED'\r\n  adding license file 'LICENSE/LICENSE_STIX'\r\n  adding license file 'LICENSE/LICENSE_YORICK'\r\n  writing manifest file '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib.egg-info/SOURCES.txt'\r\n  creating '/private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-modern-metadata-fj_hu2nd/matplotlib-0.1.0.dev44573+g1f9dc78.d20221014.dist-info'\r\n  adding license file \"LICENSE/LICENSE_CARLOGO\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_SOLARIZED\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_AMSFONTS\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_BAKOMA\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_QT4_EDITOR\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_STIX\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_YORICK\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_COLORBREWER\" (matched pattern \"LICENSE/*\")\r\n  adding license file \"LICENSE/LICENSE_COURIERTEN\" (matched pattern \"LICENSE/*\")\r\n  Preparing metadata (pyproject.toml) ... done\r\nRequirement already satisfied: pillow\u003e=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)\r\nRequirement already satisfied: fonttools\u003e=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)\r\nRequirement already satisfied: setuptools-scm\u003e=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)\r\nRequirement already satisfied: cycler\u003e=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)\r\nRequirement already satisfied: python-dateutil\u003e=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)\r\nRequirement already satisfied: kiwisolver\u003e=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)\r\nRequirement already satisfied: contourpy\u003e=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)\r\nRequirement already satisfied: pyparsing\u003e=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)\r\nRequirement already satisfied: numpy\u003e=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)\r\nRequirement already satisfied: packaging\u003e=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)\r\nRequirement already satisfied: six\u003e=1.5 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from python-dateutil\u003e=2.7-\u003ematplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (1.16.0)\r\nRequirement already satisfied: setuptools in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm\u003e=7-\u003ematplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (65.5.0)\r\nRequirement already satisfied: tomli\u003e=1.0.0 in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm\u003e=7-\u003ematplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (2.0.1)\r\nRequirement already satisfied: typing-extensions in /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages (from setuptools-scm\u003e=7-\u003ematplotlib==0.1.0.dev44573+g1f9dc78.d20221014) (4.4.0)\r\nInstalling collected packages: matplotlib\r\n  Attempting uninstall: matplotlib\r\n    Found existing installation: matplotlib 3.6.1\r\n    Uninstalling matplotlib-3.6.1:\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/__pycache__/pylab.cpython-310.pyc\r\n      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\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1.dist-info/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axes_grid1/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axisartist/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/mplot3d/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/tests/\r\n      Removing file or directory /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pylab.py\r\n      Successfully uninstalled matplotlib-3.6.1\r\n  Running setup.py develop for matplotlib\r\n    Running command python setup.py develop\r\n    /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).\r\n      warnings.warn(msg, SetuptoolsDeprecationWarning)\r\n\r\n    Edit mplsetup.cfg to change the build options; suppress output with --quiet.\r\n\r\n    BUILDING MATPLOTLIB\r\n          python: yes [3.10.6 | packaged by conda-forge | (main, Aug 22 2022,\r\n                      20:41:22) [Clang 13.0.1 ]]\r\n        platform: yes [darwin]\r\n           tests: no  [skipping due to configuration]\r\n          macosx: yes [installing]\r\n\r\n    running develop\r\n    /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.\r\n      warnings.warn(\r\n    /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.\r\n      warnings.warn(\r\n    running egg_info\r\n    writing lib/matplotlib.egg-info/PKG-INFO\r\n    writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt\r\n    writing namespace_packages to lib/matplotlib.egg-info/namespace_packages.txt\r\n    writing requirements to lib/matplotlib.egg-info/requires.txt\r\n    writing top-level names to lib/matplotlib.egg-info/top_level.txt\r\n    adding license file 'LICENSE/LICENSE'\r\n    adding license file 'LICENSE/LICENSE_AMSFONTS'\r\n    adding license file 'LICENSE/LICENSE_BAKOMA'\r\n    adding license file 'LICENSE/LICENSE_CARLOGO'\r\n    adding license file 'LICENSE/LICENSE_COLORBREWER'\r\n    adding license file 'LICENSE/LICENSE_COURIERTEN'\r\n    adding license file 'LICENSE/LICENSE_JSXTOOLS_RESIZE_OBSERVER'\r\n    adding license file 'LICENSE/LICENSE_QT4_EDITOR'\r\n    adding license file 'LICENSE/LICENSE_SOLARIZED'\r\n    adding license file 'LICENSE/LICENSE_STIX'\r\n    adding license file 'LICENSE/LICENSE_YORICK'\r\n    writing manifest file 'lib/matplotlib.egg-info/SOURCES.txt'\r\n    running build_ext\r\n    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\r\n    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\r\n    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\r\n\r\n    FreeType build system -- automatic system detection\r\n\r\n    The following settings are used:\r\n\r\n      platform                    unix\r\n      compiler                    clang\r\n      configuration directory     ./builds/unix\r\n      configuration rules         ./builds/unix/unix.mk\r\n\r\n    If this does not correspond to your system or settings please remove the file\r\n    `config.mk' from this directory then read the INSTALL file for help.\r\n\r\n    Otherwise, simply type `/Library/Developer/CommandLineTools/usr/bin/make' again to build the library,\r\n    or `/Library/Developer/CommandLineTools/usr/bin/make refdoc' to build the API reference (this needs python \u003e= 2.6).\r\n\r\n    cd builds/unix; \\\r\n                ./configure  '--with-zlib=no' '--with-bzip2=no' '--with-png=no' '--with-harfbuzz=no' '--enable-static' '--disable-shared' '--host=arm64-apple-darwin20.0.0'\r\n    checking build system type... arm-apple-darwin21.5.0\r\n    checking host system type... Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized\r\n    configure: error: /bin/sh ./config.sub arm64-apple-darwin20.0.0 failed\r\n    make: *** [setup] Error 1\r\n    Traceback (most recent call last):\r\n      File \"\u003cstring\u003e\", line 2, in \u003cmodule\u003e\r\n      File \"\u003cpip-setuptools-caller\u003e\", line 34, in \u003cmodule\u003e\r\n      File \"/Users/tnie/code/py/matplotlib/setup.py\", line 270, in \u003cmodule\u003e\r\n        setup(  # Finally, pass this all along to setuptools to do the heavy lifting.\r\n      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\r\n        return distutils.core.setup(**attrs)\r\n      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\r\n        return run_commands(dist)\r\n      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\r\n        dist.run_commands()\r\n      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\r\n        self.run_command(cmd)\r\n      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\r\n        super().run_command(command)\r\n      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\r\n        cmd_obj.run()\r\n      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\r\n        self.install_for_development()\r\n      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\r\n        self.run_command('build_ext')\r\n      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\r\n        self.distribution.run_command(command)\r\n      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\r\n        super().run_command(command)\r\n      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\r\n        cmd_obj.run()\r\n      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\r\n        _build_ext.run(self)\r\n      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\r\n        self.build_extensions()\r\n      File \"/Users/tnie/code/py/matplotlib/setup.py\", line 183, in build_extensions\r\n        package.do_custom_build(env)\r\n      File \"/Users/tnie/code/py/matplotlib/setupext.py\", line 641, in do_custom_build\r\n        subprocess.check_call(configure, env=env, cwd=src_path)\r\n      File \"/opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/subprocess.py\", line 369, in check_call\r\n        raise CalledProcessError(retcode, cmd)\r\n    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.\r\n    Building freetype in build/freetype-2.6.1\r\n    error: subprocess-exited-with-error\r\n\r\n    × python setup.py develop did not run successfully.\r\n    │ exit code: 1\r\n    ╰─\u003e See above for output.\r\n\r\n    note: This error originates from a subprocess, and is likely not a problem with pip.\r\n    full command: /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/bin/python -c '\r\n    exec(compile('\"'\"''\"'\"''\"'\"'\r\n    # This is \u003cpip-setuptools-caller\u003e -- a caller that pip uses to run setup.py\r\n    #\r\n    # - It imports setuptools before invoking setup.py, to enable projects that directly\r\n    #   import from `distutils.core` to work with newer packaging standards.\r\n    # - It provides a clear error message when setuptools is not installed.\r\n    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so\r\n    #   setuptools doesn'\"'\"'t think the script is `-c`. This avoids the following warning:\r\n    #     manifest_maker: standard file '\"'\"'-c'\"'\"' not found\".\r\n    # - It generates a shim setup.py, for handling setup.cfg-only projects.\r\n    import os, sys, tokenize\r\n\r\n    try:\r\n        import setuptools\r\n    except ImportError as error:\r\n        print(\r\n            \"ERROR: Can not execute `setup.py` since setuptools is not available in \"\r\n            \"the build environment.\",\r\n            file=sys.stderr,\r\n        )\r\n        sys.exit(1)\r\n\r\n    __file__ = %r\r\n    sys.argv[0] = __file__\r\n\r\n    if os.path.exists(__file__):\r\n        filename = __file__\r\n        with tokenize.open(__file__) as f:\r\n            setup_py_code = f.read()\r\n    else:\r\n        filename = \"\u003cauto-generated setuptools caller\u003e\"\r\n        setup_py_code = \"from setuptools import setup; setup()\"\r\n\r\n    exec(compile(setup_py_code, filename, \"exec\"))\r\n    '\"'\"''\"'\"''\"'\"' % ('\"'\"'/Users/tnie/code/py/matplotlib/setup.py'\"'\"',), \"\u003cpip-setuptools-caller\u003e\", \"exec\"))' develop --no-deps\r\n    cwd: /Users/tnie/code/py/matplotlib/\r\n  Rolling back uninstall of matplotlib\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/__pycache__/pylab.cpython-310.pyc\r\n   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-4nkxktri/pylab.cpython-310.pyc\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1-py3.10-nspkg.pth\r\n   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-wsgach0q/matplotlib-3.6.1-py3.10-nspkg.pth\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib-3.6.1.dist-info/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/~atplotlib-3.6.1.dist-info\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/matplotlib/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/~atplotlib\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axes_grid1/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~xes_grid1\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/axisartist/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~xisartist\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/mplot3d/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~plot3d\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/tests/\r\n   from /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/mpl_toolkits/~ests\r\n  Moving to /opt/homebrew/Caskroom/miniforge/base/envs/mpl-dev/lib/python3.10/site-packages/pylab.py\r\n   from /private/var/folders/xy/7rx63bwx6c9_0n5d50q5j5xh0000gn/T/pip-uninstall-wsgach0q/pylab.py\r\nerror: subprocess-exited-with-error\r\n\r\n× python setup.py develop did not run successfully.\r\n│ exit code: 1\r\n╰─\u003e See above for output.\r\n\r\nnote: This error originates from a subprocess, and is likely not a problem with pip.\r\n```\r\n\r\n### Expected outcome\r\n\r\nMatplotlib should build successfully.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nmacOS 12.4\r\n\r\n### Matplotlib Version\r\n\r\ntrunk\r\n\r\n### Matplotlib Backend\r\n\r\n_No response_\r\n\r\n### Python version\r\n\r\nPython 3.10.6\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\n_No response_","author":{"url":"https://github.com/kwsp","@type":"Person","name":"kwsp"},"datePublished":"2022-10-14T23:23:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":26},"url":"https://github.com/24168/matplotlib/issues/24168"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:faeaa1ca-c0cd-663b-1971-2ec4bcbe2f1e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6EA:2E1DA7:2846EA6:3850DB0:6A50CCDB
html-safe-noncebd8ddd23f62cc20009a4cbcf6e7cedea811212c74ece9171ca27ccd977a4cb5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkVBOjJFMURBNzoyODQ2RUE2OjM4NTBEQjA6NkE1MENDREIiLCJ2aXNpdG9yX2lkIjoiNjg0NjU3NDM0MDAzODc3Mzk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce935cd9abdbc19117f41331aacf873c088d7f1ea5d438051d15fb0cb461a50f
hovercard-subject-tagissue:1409961184
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24168/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ccc0593765d28cd6b12873c5532e29309d2e648deae9477d4d58dfd0e7dc0a1b/matplotlib/matplotlib/issues/24168
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ccc0593765d28cd6b12873c5532e29309d2e648deae9477d4d58dfd0e7dc0a1b/matplotlib/matplotlib/issues/24168
og:image:altBug summary Following the setup guide, I cloned the repo, created a conda environment, and when I try to run python -m pip install -ve . , it throws a subprocess-exited-with-error exception. I have...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekwsp
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release08e79d53fc070870d5b168356afebb1e286a2ffe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/24168#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F24168
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F24168
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/24168
Reloadhttps://github.com/matplotlib/matplotlib/issues/24168
Reloadhttps://github.com/matplotlib/matplotlib/issues/24168
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/24168
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/24168
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 411 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
[Bug]: subprocess-exited-with-error when trying to build on M1 machttps://github.com/matplotlib/matplotlib/issues/24168#top
OS: Applehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22OS%3A%20Apple%22
v3.9.0https://github.com/matplotlib/matplotlib/milestone/78
https://github.com/kwsp
kwsphttps://github.com/kwsp
on Oct 14, 2022https://github.com/matplotlib/matplotlib/issues/24168#issue-1409961184
setup guidehttps://matplotlib.org/devdocs/devel/development_setup.html#install-matplotlib-in-editable-mode
development dependencieshttps://matplotlib.org/devdocs/devel/dependencies.html#development-dependencies
OS: Applehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22OS%3A%20Apple%22
v3.9.0https://github.com/matplotlib/matplotlib/milestone/78
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.