While installing dependencies using the pip install -r requirements.txt command, I encountered this error:
Building wheels for collected packages: pygraphviz, hsds-schema-tools
Building wheel for pygraphviz (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygraphviz (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/scraper.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/graphviz.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/agraph.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/testing.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
creating build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_unicode.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_scraper.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_readwrite.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_string.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_html.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_node_attributes.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_drawing.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_repr_mimebundle.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_subgraph.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_close.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_edge_attributes.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_clear.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_layout.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_attribute_defaults.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
copying pygraphviz/tests/test_graph.py -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz/tests
running egg_info
writing pygraphviz.egg-info/PKG-INFO
writing dependency_links to pygraphviz.egg-info/dependency_links.txt
writing top-level names to pygraphviz.egg-info/top_level.txt
reading manifest file 'pygraphviz.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.png' under directory 'doc'
warning: no files found matching '*.txt' under directory 'doc'
warning: no files found matching '*.css' under directory 'doc'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
no previously-included directories found matching 'doc/build'
adding license file 'LICENSE'
writing manifest file 'pygraphviz.egg-info/SOURCES.txt'
copying pygraphviz/graphviz.i -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
copying pygraphviz/graphviz_wrap.c -> build/lib.macosx-10.9-universal2-cpython-311/pygraphviz
running build_ext
building 'pygraphviz._graphviz' extension
creating build/temp.macosx-10.9-universal2-cpython-311
creating build/temp.macosx-10.9-universal2-cpython-311/pygraphviz
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -DSWIG_PYTHON_STRICT_BYTE_CHAR -I/Users/skyleryoung/Developer/hsds_profile_connect211/.ve/include -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c pygraphviz/graphviz_wrap.c -o build/temp.macosx-10.9-universal2-cpython-311/pygraphviz/graphviz_wrap.o
pygraphviz/graphviz_wrap.c:2711:10: fatal error: 'graphviz/cgraph.h' file not found
#include "graphviz/cgraph.h"
^~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygraphviz
Building wheel for hsds-schema-tools (pyproject.toml) ... done
Created wheel for hsds-schema-tools: filename=hsds_schema_tools-0.0.14-py3-none-any.whl size=16402 sha256=658ef1851258f57bfc4e4f585dd1e25a08714952241abc1970551a1b4d6afcf2
Stored in directory: /private/var/folders/qg/tfl8zpys4rn2fd_gn8s6ygdr0000gn/T/pip-ephem-wheel-cache-6tp9vvy3/wheels/6e/04/1d/6653a912e37717e4c95b70b2fe8c5fc40f5eecef26b4f48d76
Successfully built hsds-schema-tools
Failed to build pygraphviz
ERROR: Could not build wheels for pygraphviz, which is required to install pyproject.toml-based projects
I'm using MacOS version 13.5.1, and running the example profile code in a virtual python environment as suggested. Python version 3.11.6.
While installing dependencies using the
pip install -r requirements.txtcommand, I encountered this error:I'm using MacOS version 13.5.1, and running the example profile code in a virtual python environment as suggested. Python version 3.11.6.