-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Pinning sphinx version sometimes fails #5810
Comments
This looks related to #5107. The builds have the same characteristics, the successful build don't use the cache https://readthedocs.org/projects/catalyst-cooperative-pudl/builds/9226025/ and the failed build use the cache https://readthedocs.org/projects/catalyst-cooperative-pudl/builds/9228210/ Till we have a solution, you can wipe the version before each build https://docs.readthedocs.io/en/stable/guides/wipe-environment.html |
I can confirm this is because of |
Using the method used to fix the similar problem doesn't work :/ this needs more research |
I have also been affected by this problem. |
I can confirm that this happens with setuptools as well.
However, when I use both methods, it works fine: .readthedocs.yml
requirements.txt
pip install log
setup.py install
|
I can confirm that this is still an active issue. I am constantly running into this with |
This maybe has been fixed by #6598. Let us know if you don't see this problem anymore. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. Thanks! |
@stsewd I'm still getting a old version of sphinx in the rtd. I have tried wipe and build my latest version multiple times, but I always get sphinx-1.8.5. I haven't define a specific sphinx version in the requirements.txt file, so I should get a latest version. |
If you don't specify a version, you get the default (1.8.5). |
Yes that was the problem. Now my sphinx's version has changed in the rtd! Thanks! |
Details
I am attempting to set up RTD to build documentation for a project using a bunch of the pydata tools. I ran into resource constraints early on, and the RTD docs recommended using the system versions of numpy, scipy, pandas, etc. rather than putting them all in the requirements.txt for the doc environment.
Thus, in my
.readthedocs.yml
I have:and in
docs/requirements.txt
I have:However, my pinned sphinx version only gets used sometimes. Other times the system sphinx v1.8.5 ends up being used (and not finding my index.rst... causing an error). If I change something trivial and re-commit, triggering a new build, sometimes it works. Maybe this is another manifestation of #5350, but the fact that it only happens sometimes seems really strange.
Also, in the failed build below, the log indicates that the correct version of sphinx is being found in the build environment, but then it's not being used:
Expected Result
Expected that the pinned version of sphinx in my
docs/requirements.txt
file would set the version of sphinx used to build my documentation.Actual Result
The pre-installed system sphinx version 1.8.5 takes precedence... but only sometimes for reasons that I don't understand.
The text was updated successfully, but these errors were encountered: