Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed build on main branch (tests #206) #59

Closed
github-actions bot opened this issue Jun 19, 2022 · 2 comments
Closed

Failed build on main branch (tests #206) #59

github-actions bot opened this issue Jun 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@github-actions
Copy link
Contributor

Workflow failed: tests #206

@github-actions github-actions bot added the bug Something isn't working label Jun 19, 2022
@pjbull
Copy link
Member

pjbull commented Jul 5, 2022

Failure on pip installing pygraphviz:

   Running setup.py install for pygraphviz: started
  Running setup.py install for pygraphviz: finished with status 'error'
  error: subprocess-exited-with-error
  × Running setup.py install for pygraphviz did not run successfully.
  │ exit code: 1
  ╰─> [55 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.15-universal2-3.10
      creating build/lib.macosx-10.15-universal2-3.10/pygraphviz
      copying pygraphviz/scraper.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      copying pygraphviz/graphviz.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      copying pygraphviz/__init__.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      copying pygraphviz/agraph.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      copying pygraphviz/testing.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      creating build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_unicode.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_scraper.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_readwrite.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_string.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/__init__.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_html.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_node_attributes.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_drawing.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_repr_mimebundle.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_subgraph.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_close.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_edge_attributes.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_clear.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_layout.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_attribute_defaults.py -> build/lib.macosx-10.15-universal2-3.10/pygraphviz/tests
      copying pygraphviz/tests/test_graph.py -> build/lib.macosx-10.15-universal2-3.10/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.15-universal2-3.10/pygraphviz
      copying pygraphviz/graphviz_wrap.c -> build/lib.macosx-10.15-universal2-3.10/pygraphviz
      running build_ext
      building 'pygraphviz._graphviz' extension
      creating build/temp.macosx-10.15-universal2-3.10
      creating build/temp.macosx-10.15-universal2-3.10/pygraphviz
      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -I/Users/runner/hostedtoolcache/Python/3.10.5/x64/include/python3.10 -c pygraphviz/graphviz_wrap.c -o build/temp.macosx-10.15-universal2-3.10/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/gcc' failed with exit code 1
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pygraphviz

Two options:

(1) The brew install of graphviz seems to be a new (not sure how new) major version, so potentially that is the issue:

From the install logs of the test run:

...
==>Pouring graphviz--3.0.0.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/graphviz/3.0.0: 292 files, 6.9MB

(2) The fix listed in this thread is for M1 macs, but maybe can help pip find the brew installed version of graphviz

pygraphviz/pygraphviz#398 (comment)

@jayqi
Copy link
Member

jayqi commented Jul 30, 2022

Whatever this was seemed to have resolved itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants