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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:faeaa1ca-c0cd-663b-1971-2ec4bcbe2f1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6EA:2E1DA7:2846EA6:3850DB0:6A50CCDB |
| html-safe-nonce | bd8ddd23f62cc20009a4cbcf6e7cedea811212c74ece9171ca27ccd977a4cb5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkVBOjJFMURBNzoyODQ2RUE2OjM4NTBEQjA6NkE1MENDREIiLCJ2aXNpdG9yX2lkIjoiNjg0NjU3NDM0MDAzODc3Mzk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ce935cd9abdbc19117f41331aacf873c088d7f1ea5d438051d15fb0cb461a50f |
| hovercard-subject-tag | issue:1409961184 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24168/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccc0593765d28cd6b12873c5532e29309d2e648deae9477d4d58dfd0e7dc0a1b/matplotlib/matplotlib/issues/24168 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccc0593765d28cd6b12873c5532e29309d2e648deae9477d4d58dfd0e7dc0a1b/matplotlib/matplotlib/issues/24168 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwsp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width