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
Using BioMASS without Graphviz #161
Comments
I agree with the changes! |
Hi @formersbach, thanks for your reply. I am sorry but I was wrong. When you run |
Hey @himoto, So it already fails during the installation... import subprocess
import sys
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package]) We could replace try:
import pygraphviz as pgv with try:
install("pygraphviz") #install being the function defined above
import pygraphviz Note that |
@formersbach |
Aah I see, I did notice the attached pull request. Changes look good! P.S.: Why are you working at 3 in the mornign? 😄 |
Because coding is above sleeping 😆 |
Discussed in #158
Originally posted by himoto July 23, 2022
BioMass requires users to manually install Graphviz for graph visualization but some packages derived from biomass, e.g., pasmpy, do not need it. Currently if we run
import biomass
without Graphviz, it will raise an ImportError.I would like to make this optional so that biomass-derived packages can be run without error even if Graphviz is not installed.
Ideas:
pygraphviz
andpyvis
from requirements.txt to extras_require in setup.pygraph.py
as follows:@formersbach
I would be grateful if you could give me comments on this. I have a branch working on this and if it's ok, I will send a PR.
The text was updated successfully, but these errors were encountered: