I actually managed to resolve this by manually setting the PYTHONPATH
variable and writing it into the $GITHUB_ENV file.



*Jason-Paul Wells*

Systems Service Engineer | Dynamic Systems Inc.

323 NY HWY-355, Poestenkill NY, 12140

Email: jason-paul.we...@gleeble.com

On Mon, Aug 11, 2025, 6:04 PM Jason-Paul Wells <jason-paul.we...@gleeble.com>
wrote:

> Hello,
>
> I am having an issue getting the Sphinx-Build features working inside of
> Github Workflows. I am running 1.8.5 (although the issue persists on the
> most recent version), and receive a bizarre sphinx.builders.applehelp
> extension error when I run 'make html'
>
> ''Running Sphinx v1.8.5
> /__w/cgauge/cgauge/.github/workflows/cgauge/source
> Extension error:
> Could not import extension sphinx.builders.applehelp (exception: cannot
> import name get_lexer_by_name)''
>
> My pip2 list output is:
>
> alabaster (0.7.12)
> Babel (2.7.0)
> certifi (2019.9.11)
> chardet (3.0.4)
> cryptography (1.7.1)
> data (0.4)
> decorator (4.4.2)
> docutils (0.15.2)
> enum34 (1.1.6)
> funcsigs (1.0.2)
> future (1.0.0)
> idna (2.8)
> imagesize (1.1.0)
> ipaddress (1.0.17)
> Jinja2 (2.10.1)
> keyring (10.1)
> keyrings.alt (1.3)
> latex (0.7.0)
> MarkupSafe (1.1.1)
> packaging (19.2)
> pip (9.0.1)
> pyasn1 (0.1.9)
> pycrypto (2.6.1)
> Pygments (2.4.2)
> pyparsing (2.4.2)
> pytz (2019.2)
> pyxdg (0.25)
> requests (2.22.0)
> SecretStorage (2.3.1)
> setuptools (44.1.1)
> shutilwhich (1.1.0)
> six (1.12.0)
> snowballstemmer (1.9.1)
> Sphinx (1.8.5)
> sphinx-rtd-theme (0.4.3)
> sphinxcontrib-websupport (1.1.2)
> tempdir (0.7.1)
> typing (3.7.4.1)
> urllib3 (1.25.6)
> wheel (0.29.0)
>
> Now here's the annoying part. I can manually call
> 'python -c 'from pygments.lexers import get_lexer_by_name'' with no
> errors.
>
> Any help is appreciated.
>
> ------------------------------
> The contents of this e-mail and any attachments are confidential. They are
> intended for the named recipient(s) only.  If you are not the intended
> recipient of this message, please notify the sender immediately and delete
> the message and any attachments. Thank you.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sphinx-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sphinx-users/0Uz5PComOZA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/sphinx-users/615c8ca2-fee0-418c-af4f-558cfc5fddc8n%40googlegroups.com
> <https://groups.google.com/d/msgid/sphinx-users/615c8ca2-fee0-418c-af4f-558cfc5fddc8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The contents of this e-mail and any attachments are confidential. They are 
intended for the named recipient(s) only.  If you are not the intended 
recipient of this message, please notify the sender immediately and delete 
the message and any attachments. Thank you. 

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sphinx-users/CAO050aygW6BkRJ0Qzozf0%2BfOH1%2BDUX86MTKfMV7R6%2B%2B8X57ToQ%40mail.gmail.com.

Reply via email to