Sphinx is broken on Travis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
Travis debug builds are broken due to an error raised by Sphinx:
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
+[[ linux == \o\s\x ]]
+pushd ../doc/sphinx
~/build/
+mkdir source/_static
+./extract_rst.py
+sphinx-build -W -b json -d build/doctrees source build/json
Running Sphinx v1.8.0
Exception occurred:
File "/usr/local/
from sphinx.ext import doctest
SyntaxError: unqualified exec is not allowed in function 'run' it contains a nested function with free variables (doctest.py, line 97)
The full traceback has been saved in /tmp/sphinx-
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https:/
The command "bash -e .travis.sh" exited with 2.
Done. Your build exited with 1.
I tried reproducing the issue, but I am unable to get the corresponding version of sphinx to run:
widelands/
<snip>
snowballstemmer (1.2.1)
Sphinx (1.8.0)
sphinxcontrib-
<snip>
widelands/
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.7.4
loading pickled environment... done
So, I have just upgraded to Sphinx 1.8.0 but it's running Sphinx v1.7.4 anyway...
I'll remove the sphinx build from Travis until we can figure this out.
Related branches
- hessenfarmer: Approve
-
Diff: 33 lines (+12/-11)1 file modified.travis.sh (+12/-11)
- hessenfarmer: Approve
-
Diff: 33 lines (+11/-12)1 file modified.travis.sh (+11/-12)
Changed in widelands: | |
importance: | Critical → High |
status: | New → Confirmed |
Changed in widelands: | |
status: | Confirmed → In Progress |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
See: https:/ /github. com/sphinx- doc/sphinx/ issues/ 5417
But after upgrading sphinx to version 1.8.0 in my website environment it works for me:
$:> ~/wlwebsite/ bin/sphinx- build -W -b json -d build/doctrees source build/json /Quellcode/ widelands- repo/trunk/ doc/sphinx/ source/ autogen_ market_ lua_tribes_ buildings_ init.rst: document isn't included in any toctree
Sphinx v1.8.0 in Verwendung
building [mo]: targets for 0 po files that are out of date
building [json]: targets for 79 source files that are out of date
updating environment: 79 added, 0 changed, 0 removed
reading sources... [100%] wlrichtext
looking for now-outdated files... none found
pickling environment... erledigt
checking consistency...
Warning, treated as error:
/home/kaputtnik
The -W flag of sphinx-build turns warnings into errors, so when omitting the -W flag i get all json files:
$:> ~/wlwebsite/ bin/sphinx- build -b json -d build/doctrees source build/json /Quellcode/ widelands- repo/trunk/ doc/sphinx/ source/ autogen_ market_ lua_tribes_ buildings_ init.rst: WARNING: document isn't included in any toctree geometry/ point-in- one-of- 4-triangles. png
Sphinx v1.8.0 in Verwendung
building [mo]: targets for 0 po files that are out of date
building [json]: targets for 79 source files that are out of date
updating environment: 79 added, 0 changed, 0 removed
reading sources... [100%] wlrichtext
looking for now-outdated files... none found
pickling environment... erledigt
checking consistency... /home/kaputtnik
erledigt
preparing documents... erledigt
writing output... [100%] wlrichtext
generating indices... genindex py-modindex
writing additional pages... search
copying images... [100%] images/
copying static files... done
copying extra files... erledigt
dumping search index in English (code: en) ... erledigt
dumping object inventory... erledigt
build abgeschlossen, 1 warning.