This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients BTaskaya, mdk
Date 2020-07-18.08:26:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595060795.82.0.837754146284.issue41331@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-07-18 08:26:35mdksetrecipients: + mdk, BTaskaya
2020-07-18 08:26:35mdksetmessageid: <1595060795.82.0.837754146284.issue41331@roundup.psfhosted.org>
2020-07-18 08:26:35mdklinkissue41331 messages
2020-07-18 08:26:35mdkcreate