Syntaf / travis-sphinx

A standalone script for automated building and deploying of sphinx docs via travis-ci
GNU General Public License v3.0
113 stars 20 forks source link

Travis-CI: ModuleNotFoundError #39

Open pancetta opened 6 years ago

pancetta commented 6 years ago

For some reason I get a ModuleNotFoundError here, which is not caught by the try/except-block. This happens when my Sphinx version is below 1.7.

More precisely, I get:

Traceback (most recent call last): File "/home/travis/miniconda3/bin/travis-sphinx", line 7, in from travis_sphinx.main import main File "/home/travis/miniconda3/lib/python3.6/site-packages/travis_sphinx/init.py", line 3, in from . import build File "/home/travis/miniconda3/lib/python3.6/site-packages/travis_sphinx/build.py", line 7, in from sphinx.cmd.build import build_main ModuleNotFoundError: No module named 'sphinx.cmd'

Could you add ModuleNotFoundError to the except rule or is there something else going on here?

Syntaf commented 6 years ago

Thanks for the issue report! Unfortunately sphinx has been switching around their internal interface which leaves us playing catch up.

What minor version of 1.7 are you using? We added support for 1.7 in https://github.com/Syntaf/travis-sphinx/issues/34 , I'm hoping they didn't change their structure around again

pancetta commented 6 years ago

Sorry, this happens with Sphinx 1.6.3, but all is good with Sphinx 1.7.x. Anyway, I was expecting that the error with Sphinx 1.6.3 gets caught by the try-except-block, but it looks like it doesn't.