New submission from Julien Palard <julien+pyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to