ammaraskar / sphinx-action

Github action that builds docs using sphinx and places errors inline
Apache License 2.0
195 stars 117 forks source link

Build fails with Sphinx 4.1.0 #31

Closed atisman89 closed 3 years ago

atisman89 commented 3 years ago

Hi, my GitHub Action Sphinx doc generation started failing with Sphinx 4.1.0 (It has been working with previous Sphinx 4.0.2). The errors I got are:

...
Running Sphinx v4.1.0

Extension error:
Could not import extension sphinx.builders.epub3 (exception: cannot import name 'RemovedInSphinx40Warning' from 'sphinx.deprecation' (/usr/local/lib/python3.8/site-packages/sphinx/deprecation.py))
make: *** [Makefile:20: html] Error 2
...
robb-romans commented 3 years ago

Same error here

robb-romans commented 3 years ago

Please note that builds fail even if you're not trying to build ePub format in your local Makefile.

atisman89 commented 3 years ago

Adding sphinx with version 4.0.2 in my requirements.txt solves the issue. Looks like it has nothing to do with this action.

astrojuanlu commented 3 years ago

Sphinx 4.1.1 should have fixed the issue as well.

robb-romans commented 3 years ago

Thank you.