Skip to content

ImportError: No module named 'breathe' #4680

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

Closed
qnzhou opened this issue Sep 29, 2018 · 4 comments
Closed

ImportError: No module named 'breathe' #4680

qnzhou opened this issue Sep 29, 2018 · 4 comments
Labels
Support Support question

Comments

@qnzhou
Copy link

qnzhou commented Sep 29, 2018

Details

Expected Result

Build without error.

Actual Result

There are several things that is likely wrong in the build:

  1. RTD is catting the wrong conf.py. The correct conf file is docs/conf.py, and it is also specified in the RTD settings of the project. However, for some reason, RTD is using the conf.py from a git submodule.
  2. RTD fails with the following error:
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymesh/envs/latest/lib/python3.5/site-packages/sphinx/registry.py", line 315, in load_extension
    mod = __import__(extname, None, None, ['setup'])
ImportError: No module named 'breathe'
  1. It would be good if I can disable RTD from checking out recursively the git submodules since the documentation of my project does not rely on them, and the submodule tree could be very deep. I have seen other issues mentioning it (Add submodule configuration #4464), but I am not sure it is part of the official release yet.
@stsewd stsewd added the Support Support question label Sep 29, 2018
@stsewd
Copy link
Member

stsewd commented Sep 29, 2018

Sorry, you are facing #4669. About submodules, I hope to get merged this PR #4493 soon and make it available to users soon.

Probably we can close this issue, and follow up on the others.

@stsewd
Copy link
Member

stsewd commented Sep 29, 2018

Also, a workaround is creating your .readthedocs.yml file in the root of your project https://docs.readthedocs.io/en/latest/yaml-config.html.

@qnzhou
Copy link
Author

qnzhou commented Sep 30, 2018

Thanks @stsewd , adding .readthedoc.yml does fix the problem, but it still feels like a mystery to me. No where in .readthedoc.yml specifies the location of conf.py, and yet the problem goes away.

@qnzhou qnzhou closed this as completed Sep 30, 2018
@stsewd
Copy link
Member

stsewd commented Sep 30, 2018

previously the conf.py value was only customizable from the web panel of a project, but we are changing some stuff to make a rtd configuration file v2, which can be used to specify the con.py path, isn't available to users right now. Anyway, all values are relative to this file, so that's the problem. With the last update we discovered this hidden bug (we were reading a configuration file that doesn't belong to the user)

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

No branches or pull requests

2 participants