-
Notifications
You must be signed in to change notification settings - Fork 2k
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 1.6.1 introduces an TypeError error #3765
Comments
Since today, I also see a TypeError from Sphinx (a different one than @ralonsoh ):
I don't think anything changed on our side, so I presume that error appeared because the build switched to Sphinx 1.6.1. Let me know if you think this is not a Sphinx issue, or if it's a different issue and I should file a separate ticket. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Subject: sphinx 1.6.1 introduces an TypeError error
Problem
Sphinx is throwing the following error:
2017-05-18 08:20:23.749452 | File "/home/jenkins/workspace/gate-os-traits-docs-ubuntu-xenial/.tox/venv/local/lib/python2.7/site-packages/sphinx/themes/basic/../basic/layout.html", line 108, in template
2017-05-18 08:20:23.749476 | {%- for css in css_files %}
2017-05-18 08:20:23.749492 | TypeError: 'NoneType' object is not iterable
This error is not happening when using version 1.5.6
Procedure to reproduce the problem
Execute the tox testing in os-traits
$ tox -edocs
Error logs / results
Sphinx version: 1.6.1
Python version: 2.7.12 (CPython)
Docutils version: 0.13.1 release
Jinja2 version: 2.9.6
Last messages:
looking for now-outdated files...
none found
pickling environment...
done
checking consistency...
done
preparing documents...
done
writing output... [ 20%] contributing
Loaded extensions:
alabaster (0.7.10) from /opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/alabaster/init.pyc
oslosphinx (unknown version) from /opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/oslosphinx/init.pyc
sphinx.ext.autodoc (1.6.1) from /opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/ext/autodoc.pyc
Traceback (most recent call last):
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/setup_command.py", line 192, in run
app.build(force_all=self.all_files)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/application.py", line 332, in build
self.builder.build_all()
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/init.py", line 285, in build_all
self.build(None, summary='all source files', method='all')
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/init.py", line 394, in build
self.write(docnames, list(updated_docnames), method)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/init.py", line 431, in write
self._write_serial(sorted(docnames))
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/init.py", line 440, in _write_serial
self.write_doc(docname, doctree)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/html.py", line 556, in write_doc
self.handle_page(docname, ctx, event_arg=doctree)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/builders/html.py", line 940, in handle_page
output = self.templates.render(templatename, ctx)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/jinja2glue.py", line 176, in render
return self.environment.get_template(template).render(context)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/themes/basic/page.html", line 10, in top-level template code
{%- extends "layout.html" %}
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/oslosphinx/theme/openstack/layout.html", line 2, in top-level template code
{% set css_files = css_files + ['_static/tweaks.css'] %}
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/themes/basic/../basic/layout.html", line 128, in top-level template code
{%- block csss %}
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/themes/basic/../basic/layout.html", line 129, in block "csss"
{{ css() }}
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/jinja2/sandbox.py", line 427, in call
return __context.call(__obj, *args, **kwargs)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/jinja2/runtime.py", line 553, in _invoke
rv = self._func(*arguments)
File "/opt/stack/os-traits/.tox/docs/local/lib/python2.7/site-packages/sphinx/themes/basic/../basic/layout.html", line 108, in template
{%- for css in css_files %}
TypeError: 'NoneType' object is not iterable
Link: http://logs.openstack.org/61/465861/1/check/gate-os-traits-docs-ubuntu-xenial/71d6fc6/console.html
Expected results
Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: