I'm using pdoc
to generate documentation for one of my projects. This is my file structure-
my_project
|- files
|- logs
|- scripts
|- __init__.py
|- main_script.py
|- script_one.py
..where the main_script.py
imports script_one.py
and a few other libraries. And the __init__.py
is empty.
From inside my_project/
directory, I run pdoc3 --html scripts
and face the following error-
ValueError: File or module 'scripts.main_script' not found
. . .
I run pdoc3 --html scripts/main_script.py
and face the following error-
ImportError: Error importing 'scripts/script_one.py': No module named 'random_module'
. . .
From inside scripts/
directory, when I run pdoc3 --html main_script.py
, it throws me an import error like-
ImportError: Error importing 'main_script.py': No module named 'some_module'
But it generates the doc as soon as I remove the some_module
from my main_script.py
.
What's wrong here?