[issue41331] Sphinx can't find asdl.py when not started from the Doc/ directory
Julien Palard
report at bugs.python.org
Sat Jul 18 04:26:35 EDT 2020
New submission from Julien Palard <julien+python at palard.fr>:
When running the following command from the Doc/ directory:
./venv/bin/sphinx-build -Q -b gettext -D gettext_compact=0 . ../pot/
everything goes right, but when running the following from cpython direcory:
./Doc/venv/bin/sphinx-build -Q -b gettext -D gettext_compact=0 Doc pot
we get:
Extension error:
Could not import extension asdl_highlight (exception: No module named 'asdl')
This is because sys.path.append(os.path.abspath("../Parser/")) starts from the current directory, cpython/../Parser don't exists while Doc/../Parser exists.
It could be fixed by starting with a Path(__file__).resolve(), will PR it.
----------
assignee: mdk
components: Documentation
messages: 373888
nosy: BTaskaya, mdk
priority: normal
severity: normal
status: open
title: Sphinx can't find asdl.py when not started from the Doc/ directory
versions: Python 3.10, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41331>
_______________________________________
More information about the Python-bugs-list
mailing list