Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis-CI: ModuleNotFoundError #39

Open
pancetta opened this issue May 22, 2018 · 2 comments
Open

Travis-CI: ModuleNotFoundError #39

pancetta opened this issue May 22, 2018 · 2 comments

Comments

@pancetta
Copy link

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
Copy link
Owner

Syntaf commented May 22, 2018

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 #34 , I'm hoping they didn't change their structure around again

@pancetta
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants