-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
sphinx-build fails with DistributionNotFound exception #2086
Comments
In my environment, it does not be reproduced.
It looks the Sphinx you use depends on |
It happens at least with the
As a workaround I update |
I understand. I'll think about #2087 later. |
That's fine, I'm using unreleased version anyway. For now the workaround will do. |
For me having this error the issue was that sphinx-quickstart failed to write a proper working default path to the sphinx-build executable in the variable SPHINXBUILD in the makefile. It assumes that the local sphinx-build is already in the current path. In my case the make command used a wrong sphinx-build command from another path (here: system Python). Steps to reproduceI created a virtualenv but did not activate it. I usually explicitly pass the path to the Python executable during install of the venv I use. Then I used the explicit pip of the venv to install Sphinx::
Thats seems not enough for the install using pip to set things up and for a proper build of the sphinx-quickstart command. The initial default in the makefile was::
The default path during shell execution was going to the system Python, not the venv. This usually may have no module sphinx-rtd-theme in a proper version. Note: When you check the modules of the venv you may also find the modulename sphinx_rtd_theme using underscores! Not sure if this matters in other situations. WorkaroundA workaround solution for me was to give the explicit path to the executable in the makefile without fiddling with the $PATH::
noteI usually do not check in the makefiles into repos, so this does not hurt me. Even if I failed to follow all best practise, maybe it is helpful if someone needs to drill deeper to make the quickstart more reliable for newbies in this case. |
Running
sphinx-build --version
fails with the following output:I'm using version
git+git://github.com/sphinx-doc/sphinx.git@4d2c17e043d9e8197fa5cd0db34212af3bb17069
.BTW I'm not using
sphinx-rtd-theme
. Why is it required by Sphinx?The text was updated successfully, but these errors were encountered: