I have following problem with sphinx. My project structure is
|--project
|--api
|--__init__.py
|--rpc.py
|--v1
|--__init__.py
|--model.py
|--build
|--source
|--conf.py
|--Makefile
In conf.py I Have
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
If I run
pipenv run sphinx-build ./source ./build
I got following errors:
WARNING: autodoc: failed to import module 'api.rpc'; the following exception was raised:
No module named 'api'
WARNING: autodoc: failed to import module 'api'; the following exception was raised:
No module named 'api'
WARNING: autodoc: failed to import module 'api.v1.model'; the following exception was raised:
No module named 'api'
WARNING: autodoc: failed to import module 'api.v1'; the following exception was raised:
No module named 'api'
Where can be problem? Thank's