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

Pygraphviz for python 3.9? #358

Closed
brando90 opened this issue Jun 25, 2021 · 6 comments
Closed

Pygraphviz for python 3.9? #358

brando90 opened this issue Jun 25, 2021 · 6 comments

Comments

@brando90
Copy link

I tried to install but got this error:

(base) miranda9@Brandos-MBP envs % conda install -y pygraphviz
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.                                                                                                                                                                                                                                                                                                             failed                                                                                                                                                                                                                                                                                                                                                                 

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pygraphviz -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.9

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

is it due to me using python 3.9? Can we get support for it?

@brando90
Copy link
Author

is this issue solved by doing conda install -y pygraphviz -c conda-forge?

@dschult
Copy link
Contributor

dschult commented Jun 25, 2021

You should use the conda-forge collection of conda packages.

conda install -c conda-forge pygraphviz

@rossbar
Copy link
Contributor

rossbar commented Jun 26, 2021

FWIW #333 adds an explanation to the docs about which conda channels to use, and adds a CI cronjob + badges to guarantee that the conda builds for supported Python versions are working. This improvement in the install docs may help users avoid issues like these.

@brando90
Copy link
Author

brando90 commented Sep 9, 2021

@dschult why does conda with coda-forge work but not when I try to install my project with pip install -e .? this proj: https://github.com/brando90/ultimate-utils

Due to a depedency on pygraphviz you will likely need to install graphviz first. Next, install graphviz. On mac, brew install graphviz. On Ubuntu, sudo apt install graphviz. After graphviz is install, install uutils in edibable mode and all it's depedencies with pip:

pip install -e ~/ultimate-utils/ultimate-utils-proj-src

@dschult
Copy link
Contributor

dschult commented Sep 9, 2021

conda installs both graphviz and pygraphviz while pip tries to find graphviz on your computer and install pygraphviz to link to it. At least that is my probably poor attempt to describe what happens. Anyway, conda with conda-forge is able to find graphviz when installing pygraphviz. pip may or may not be able to find graphviz when installing pygraphviz.

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

4 participants