Hi
I use kivy.garden.graph in my Kivy 3.4 app, which I develop on Windows:
from kivy.garden.graph import Plot, Graph, MeshLinePlot, MeshStemPlot, LinePlot
kivy.garden is installed in my user directory and I see
"C:\Users\<username>\.kivy\garden\garden.graph\__init__.py"
The app runs fine, but I run into problems generating documentation for the app using Sphinx. In the Sphinx conf.py file I specify:
sys.path.insert(0, "c:\\users\<username>\\.kivy\\garden\\garden.graph")
but when I run 'make html' to generate the documentation I see:
File "C:\gui\main.py", line 56, in <module>
import mygraph
File "C:\gui\mygraph.py", line 23, in <module>
from kivy.garden.graph import Plot, Graph, MeshLinePlot, MeshStemPlot, LinePlot
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1163, in _load_backward_compatible
KeyError: 'kivy.garden.graph'
Shorter versions of the .kivy path give similar errors e.g.:
sys.path.insert(0, "c:\\users\<username>\\.kivy\\garden")
My knowledge of Python modules and search paths is basic. Is the problem something to do with the fact that garden.graph just contains __init__.py and has no file such as graph.py?
Any help for how to fix this would be appreciated as it is breaking my documentation generation process.
Best regards
David