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

Anaconda version of pygraphviz is broken #326

Open
jarrodmillman opened this issue Jan 24, 2021 · 8 comments
Open

Anaconda version of pygraphviz is broken #326

jarrodmillman opened this issue Jan 24, 2021 · 8 comments

Comments

@jarrodmillman
Copy link
Contributor

jarrodmillman commented Jan 24, 2021

Anaconda hasn't updated PyGraphviz since version 1.3 (Released: Sep 5, 2015) and the version of Graphviz they support (2.40.1) does not work with PyGraphviz.

Conda-forge is current (and instructions for using it will be added to our install instructions soon)!!

If you want to use PyGraphviz, please see our install instructions:

If you are able to update Anaconda, please let us know so we can update this issue.

@jayqi
Copy link

jayqi commented Feb 13, 2021

Noting here that I had problems with conda-forge on macOS, reported on the feedstock here: conda-forge/pygraphviz-feedstock#17 (comment)

When installing both graphviz and pygraphviz through conda-forge on macOS and Python 3.8.6, it looks like I am successfully installing compatible versions, but I get a runtime error when trying import pygraphviz. See linked issue above for more details.

When using graphviz installed separately through homebrew instead, and only installing pygraphviz via conda-forge, everything works without any problems.

Update: this seemed to be a transient problem that resolved itself. I'm not sure what the root cause was or how to avoid running into it again.

@nehaljwani
Copy link
Contributor

I've submitted a merge request at conda-forge/graphviz-feedstock#59 to update conda-forge graphviz to 2.46.1 and add support for Windows.

@nehaljwani
Copy link
Contributor

Graphviz 2.46.1 is now available on conda-forge for osx-64, linux-64, linux-ppc64le, linux-aarch64 and win-64.
I've opened another MR to update the pin for all platforms at conda-forge/conda-forge-pinning-feedstock#1220

@dschult dschult changed the title Anaconda version of pygraphviz is broken (Don't use Anaconda) Anaconda version of pygraphviz is broken Feb 16, 2021
@rossbar
Copy link
Contributor

rossbar commented Feb 16, 2021

Thanks for reporting @jayqi and @nehaljwani for the PR to update graphviz on conda forge!

@jarrodmillman
Copy link
Contributor Author

@nehaljwani This is excellent news! Thanks so much for updating this.

I don't use Anaconda/Conda and am not familiar how to get things updated. I believe that Anaconda may be updating based on conda-forge, but I am not sure how to get packages updated. It would be great if you (or someone else) could figure out how to get these packages updated as well:

Once they update both packages, we can close this issue!

@nehaljwani
Copy link
Contributor

PyGraphViz v1.6 and v1.7 builds for Windows are now available on Conda Forge:

❯❯❯ CONDA_SUBDIR=win-64 conda search -c conda-forge pygraphviz
Loading channels: done
# Name                       Version           Build  Channel             
pygraphviz                       1.6  py36h2f0202a_1  conda-forge         
pygraphviz                       1.6  py37h32dab02_1  conda-forge         
pygraphviz                       1.6  py38ha451c30_1  conda-forge         
pygraphviz                       1.6  py39he8c86ab_1  conda-forge         
pygraphviz                       1.7  py37h32dab02_0  conda-forge         
pygraphviz                       1.7  py38ha451c30_0  conda-forge         
pygraphviz                       1.7  py39he8c86ab_0  conda-forge

@nehaljwani
Copy link
Contributor

I've raised an issue at AnacondaRecipes/pygraphviz-feedstock#1 for the Anaconda devs.

@MridulS
Copy link
Contributor

MridulS commented Oct 3, 2023

Just in case some one runs into this again, the default channel is still pretty behind:

https://anaconda.org/anaconda/graphviz -> 2.5.0
https://anaconda.org/conda-forge/graphviz -> 8.1.0

https://anaconda.org/anaconda/pygraphviz -> 1.9
https://anaconda.org/conda-forge/pygraphviz -> 1.11

Please make sure to use the conda-forge channel with the right channel priority:

$ conda config --set channel_priority disabled

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

No branches or pull requests

5 participants