Extension Error in Github Workflows | Sphinx 1.8.5

8 views
Skip to first unread message

Jason-Paul Wells

unread,
Aug 11, 2025, 6:02:52 PMAug 11
to sphinx-users
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. 

Jason-Paul Wells

unread,
Aug 11, 2025, 11:12:53 PMAug 11
to sphinx...@googlegroups.com
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-pa...@Gleeble.com


--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sphinx-users/615c8ca2-fee0-418c-af4f-558cfc5fddc8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages