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

rtd uses sphinx 1.8.5 even if it previously installed 2.2.0 #6292

Closed
ssbarnea opened this issue Oct 15, 2019 · 3 comments
Closed

rtd uses sphinx 1.8.5 even if it previously installed 2.2.0 #6292

ssbarnea opened this issue Oct 15, 2019 · 3 comments
Labels
Needed: more information A reply from issue author is required Support Support question

Comments

@ssbarnea
Copy link

Details

Expected Result

Successful build of docs using the requires sphinx 2.2.0.

Actual Result

Based on the logs sphinx 2.2.0 is installed (docs extra) but after that I see:

python /home/docs/checkouts/readthedocs.org/user_builds/jira/envs/latest/bin/sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en . _build/html

 Running Sphinx v1.8.5
loading translations [en]... done

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/jira/envs/latest/lib/python3.7/site-packages/sphinx/cmd/build.py", line 303, in build_main
    args.tags, args.verbosity, args.jobs, args.keep_going)
  File "/home/docs/checkouts/readthedocs.org/user_builds/jira/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 215, in __init__
    'be built with this version.') % self.config.needs_sphinx)
sphinx.errors.VersionRequirementError: This project needs at least Sphinx v2.2.0 and therefore cannot be built with this version.

Sphinx version error:
This project needs at least Sphinx v2.2.0 and therefore cannot be built with this version.

Apparently the sphinx-build is called without activating the virtual environment, so failing

@humitos
Copy link
Member

humitos commented Oct 15, 2019

You probably need to wipe the environment. Can you try that first? Thanks.

@stsewd stsewd added the Support Support question label Oct 15, 2019
@stsewd
Copy link
Member

stsewd commented Oct 15, 2019

This looks like a cache problem, please try wiping the env before triggering a new build https://docs.readthedocs.io/en/stable/guides/wipe-environment.html

@matfax
Copy link

matfax commented Oct 20, 2019

This is probably a duplicate of #5810

@stsewd stsewd added the Needed: more information A reply from issue author is required label Nov 7, 2019
@humitos humitos closed this as completed Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: more information A reply from issue author is required Support Support question
Projects
None yet
Development

No branches or pull requests

4 participants