question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pygraphiz appears to be deprecated?

See original GitHub issue

pygraphviz looks to be no longer maintained. Would it be worth migrating eralchemy to use graphviz?

#Rendering from dot file using graphviz
from graphviz import Source
Source.from_file(dotfilename)

The format parameter to Source defines the output format and the engine parameter the layout engine (dot, neato etc).

The only place pygraphviz appears to be used is in eralchemy/eralchemy/main.py in the function:

def intermediary_to_schema(tables, relationships, output):
    """ Transforms and save the intermediary representation to the file chosen. """
    dot_file = _intermediary_to_dot(tables, relationships)
    graph = AGraph()
    graph = graph.from_string(dot_file)
    extension = output.split('.')[-1]
    graph.draw(path=output, prog='dot', format=extension)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jarolicommented, Nov 6, 2020

Same problem here, cannot install eralchemy due to the pygraphviz package

apt install graphviz
pip install eralchemy
...
Building wheels for collected packages: pygraphviz
  Building wheel for pygraphviz (setup.py): started
  Building wheel for pygraphviz (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
0reactions
Alexis-benoistcommented, Feb 11, 2020

If someone is willing to migrate it, I’m not against 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is gvedit depreciated? - Help - Graphviz
gvedit is not deprecated, but it's not present in any modern Windows release, only in version 2.38 avaiable at https://www2.graphviz.org/Archive ...
Read more >
CHANGELOG.md · main · graphviz / graphviz - GitLab
This was a regression in Graphviz 7.0.2, that intentionally removed these but did not account ... svg output displays TITLE of %3 if...
Read more >
Graphviz's executables are not found (Python 3.4)
Fixed by running sudo apt-get install graphviz in addition to the pip install I ... because they all seem to be the same...
Read more >
2.8. Interpreting the Graphviz output - ClusterLabs
An example transition graph as represented by Graphviz. In the above example, it appears that a new node, pcmk-2 , has come online...
Read more >
media-gfx/graphviz-2.40.1-r1 depends on deprecated Qt4 (was
Hmm, indeed. It looks I was wrong, sorry. It seems to be downstream patch. Comment 3 Andreas Sturmlechner gentoo-dev ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found