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
Failure building 2.7 docs on Windows #66727
Comments
I was able to build docs of all versions with the old system. When 3.4 was changed to the new system, 'pip install sphinx' installed everything needed so that 'sphinx-build -bhtml . build/html' in .../Doc (Devguide 7.5.2) works for 3.4 (and 3.5). "PYTHON=C:\programs\python27\python.exe" does not seem to matter. After the recent conversion for 2.7, that command and 'make html' (devguide 7.5.1) do not work for 2.7. The devguide instructions are version-independent, but the reality does not seem to be. Both commands give this. Running Sphinx v1.2.2 Configuration error: tools/patchlevel.py. line 71, is "print x'. When I added ()s, this error goes away and I get Running Sphinx v1.2.2 Exception occurred:
SyntaxError: invalid syntax I expect the problem is the 'ur' prefix, invalid in 3.4+. I tried to install a 2.7 version of sphinx, but pip refuses. C:\Programs\Python27>pip install sphinx So I don't know how to sensibly proceed without disabling 3.x builds. |
Your analysis is correct: you now do need to use a 2.7 sphinx to build 2.7 docs. It looks like you may be using a 3.4 version of pip. However you invoke python2.7, try "python -m pip install sphinx". |
You always did :) However, it should not be a problem to make the extensions 2.x and 3.x compatible in both branches. |
New changeset fd2530294d50 by Georg Brandl in branch '2.7': |
Works great. Thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: