AttributeError: 'dict' object has no attribute 'startswith'

Bug #1505311 reported by Davanum Srinivas (DIMS)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslosphinx
Fix Released
High
Doug Hellmann

Bug Description

Looks like 3.3.0 release was bad:
http://lists.openstack.org/pipermail/openstack-announce/2015-October/000707.html

Example from:
http://logs.openstack.org/56/233256/1/gate/gate-releases-docs/3d531fb/console.html#_2015-10-12_16_12_31_290

2015-10-12 16:12:31.228 | File "setup.py", line 22, in <module>
2015-10-12 16:12:31.228 | pbr=True)
2015-10-12 16:12:31.237 | File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
2015-10-12 16:12:31.237 | dist.run_commands()
2015-10-12 16:12:31.237 | File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2015-10-12 16:12:31.238 | self.run_command(cmd)
2015-10-12 16:12:31.238 | File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2015-10-12 16:12:31.238 | cmd_obj.run()
2015-10-12 16:12:31.238 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/pbr/builddoc.py", line 188, in run
2015-10-12 16:12:31.238 | setup_command.BuildDoc.run(self)
2015-10-12 16:12:31.238 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/setup_command.py", line 164, in run
2015-10-12 16:12:31.239 | app.build(force_all=self.all_files)
2015-10-12 16:12:31.239 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/application.py", line 258, in build
2015-10-12 16:12:31.239 | self.builder.build_all()
2015-10-12 16:12:31.239 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 205, in build_all
2015-10-12 16:12:31.240 | self.build(None, summary='all source files', method='all')
2015-10-12 16:12:31.240 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 316, in build
2015-10-12 16:12:31.240 | self.write(docnames, list(updated_docnames), method)
2015-10-12 16:12:31.240 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 354, in write
2015-10-12 16:12:31.240 | self._write_serial(sorted(docnames), warnings)
2015-10-12 16:12:31.241 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 362, in _write_serial
2015-10-12 16:12:31.241 | self.write_doc(docname, doctree)
2015-10-12 16:12:31.241 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/html.py", line 445, in write_doc
2015-10-12 16:12:31.241 | self.handle_page(docname, ctx, event_arg=doctree)
2015-10-12 16:12:31.241 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/builders/html.py", line 786, in handle_page
2015-10-12 16:12:31.242 | output = self.templates.render(templatename, ctx)
2015-10-12 16:12:31.242 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/jinja2glue.py", line 138, in render
2015-10-12 16:12:31.242 | return self.environment.get_template(template).render(context)
2015-10-12 16:12:31.242 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 812, in get_template
2015-10-12 16:12:31.242 | return self._load_template(name, self.make_globals(globals))
2015-10-12 16:12:31.243 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 774, in _load_template
2015-10-12 16:12:31.243 | cache_key = self.loader.get_source(self, name)[1]
2015-10-12 16:12:31.243 | File "/home/jenkins/workspace/gate-releases-docs/.tox/venv/local/lib/python2.7/site-packages/sphinx/jinja2glue.py", line 151, in get_source
2015-10-12 16:12:31.243 | if template.startswith('!'):
2015-10-12 16:12:31.244 | AttributeError: 'dict' object has no attribute 'startswith'
2015-10-12 16:12:31.290 | ERROR: InvocationError: '/home/jenkins/workspace/gate-releases-docs/.tox/venv/bin/python setup.py build_sphinx'
2015-10-12 16:12:31.290 | ___________________________________ summary ____________________________________

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslosphinx (master)

Fix proposed to branch: master
Review: https://review.openstack.org/233789

Changed in oslosphinx:
assignee: nobody → Doug Hellmann (doug-hellmann)
status: New → In Progress
Changed in oslosphinx:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslosphinx (master)

Reviewed: https://review.openstack.org/233789
Committed: https://git.openstack.org/cgit/openstack/oslosphinx/commit/?id=cd2674bb9501b0216dc81ede635e84c379b6309d
Submitter: Jenkins
Branch: master

commit cd2674bb9501b0216dc81ede635e84c379b6309d
Author: Doug Hellmann <email address hidden>
Date: Mon Oct 12 19:50:40 2015 +0000

    fix html-page-context event handler

    The event handler should return a string if it wants to replace the
    template, but should otherwise return None and update the context in
    place.

    Change-Id: Ic4b19c7d19eda866ba139913cf817c99a65c8c08
    Closes-Bug: #1505311

Changed in oslosphinx:
status: In Progress → Fix Committed
Changed in oslosphinx:
milestone: none → 3.3.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.