Technologicat / pyan

Static call graph generator. The official Python 3 version. Development repo.
GNU General Public License v2.0
329 stars 57 forks source link

Sphinx integration #81

Open FelixBiermann opened 2 years ago

FelixBiermann commented 2 years ago

Hello,

I am having problems integrating pyan in Sphinx. When I add the extension to conf.py as writen on this page:

extensions = [
  ...
  "sphinx.ext.graphviz"
  "pyan.sphinx",
]

I get:

Extension Error:
Could not import extension pyan.sphinx (exception: No module named 'pyan.sphinx')

I can use "pyan" in the extension list, but sphinx doesn't recognize the package as a sphinx extension (not surprisingly). I have installed Sphinx v4.4.0, graphviz and ofc pyan3 with conda.

I would really love to use this tool, as the graphs made with consol-commands look exactly like what I want.

Thanks in advance!

romain-dartigues commented 2 years ago

Unfortunately pyan.sphinx has been added in Pyan3 version 1.2 but the last working version (for me) is 1.1.1.