travis-sphinx icon indicating copy to clipboard operation
travis-sphinx copied to clipboard

Travis-CI: ModuleNotFoundError

Open pancetta opened this issue 7 years ago • 2 comments

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?

pancetta avatar May 22 '18 08:05 pancetta

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

Syntaf avatar May 22 '18 21:05 Syntaf

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.

pancetta avatar May 23 '18 05:05 pancetta