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

Installation issue #59

Open
kantonopoulos opened this issue Oct 14, 2024 · 1 comment
Open

Installation issue #59

kantonopoulos opened this issue Oct 14, 2024 · 1 comment

Comments

@kantonopoulos
Copy link

Hello! While I am trying to install both locally on a windows machine and in Google Colab, I am getting the following error:

Building wheels for collected packages: pygraphviz, lazy-import, docrep, pysftp, timeloop
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel 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.
  Building wheel for pygraphviz (setup.py) ... error
  ERROR: Failed building wheel for pygraphviz
  Running setup.py clean for pygraphviz
  Building wheel for lazy-import (setup.py) ... done
  Created wheel for lazy-import: filename=lazy_import-0.2.2-py2.py3-none-any.whl size=16493 sha256=910088147bef5484bc12f7f3763cf4a7f215d92874d9a4d64108c620ff999159
  Stored in directory: /root/.cache/pip/wheels/89/c9/fe/406995d79062aa583b3da5a6e53f1441c76415d7ee3c2fdaf9
  Building wheel for docrep (setup.py) ... done
  Created wheel for docrep: filename=docrep-0.3.2-py3-none-any.whl size=19876 sha256=5d83aeddeddb277129ff2ae06774f53de2e60e15c71d309dfefbe161427b34cd
  Stored in directory: /root/.cache/pip/wheels/c3/64/48/03c38d8d906159eaa210b3c548fdb590eb3e2a4a5745ae2172
  Building wheel for pysftp (setup.py) ... done
  Created wheel for pysftp: filename=pysftp-0.2.9-py3-none-any.whl size=15497 sha256=cae2eeeb3157597a2a02785fa60f4bbe924f7013c578fa7f8689240d23a7095d
  Stored in directory: /root/.cache/pip/wheels/64/52/87/2683826a06d053045a9bd11f05850e26bbdbfbf821ee6735f0
  Building wheel for timeloop (setup.py) ... done
  Created wheel for timeloop: filename=timeloop-1.0.2-py3-none-any.whl size=3703 sha256=f9ecd07bef1b5072db42839287036edf4cf35bee42eaaae31b359bf8a19521fd
  Stored in directory: /root/.cache/pip/wheels/8b/df/32/f72b9fd897c185cd70103331f70e4cb66e3df1de24bd476548
Successfully built lazy-import docrep pysftp timeloop
Failed to build pygraphviz
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pygraphviz)

Even though I can install properly the pygraphviz and graphviz through conda, I am still getting the same problem when I try to install the networkcommons package. Do you have any idea why this might happen?

Python 3.11.8
pygraphviz                1.13            py311hb597c0d_1    conda-forge
graphviz                  11.0.0               h09e431a_0    conda-forge
@deeenes
Copy link
Member

deeenes commented Oct 14, 2024

Hello, Compilation of that module requires the graphviz C headers, make sure those are installed and are in the include path. It means, in Ubuntu (I guess Google Colab is Ubuntu) you have to install the graphviz-dev package: https://networkcommons.readthedocs.io/en/main/installation.html

Conda uses the headers from its own graphviz package and either uses those to compile pygraphviz or it ships an already compiled version. In this case, if you install networkcommons with your conda environment being active, with its include paths set up, pygraphviz should be able to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants