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

Build docs failed in CI; Reason: UndefinedError("'logo' is undefined") #5514

Closed
anmyachev opened this issue Jan 2, 2023 · 0 comments · Fixed by #5513
Closed

Build docs failed in CI; Reason: UndefinedError("'logo' is undefined") #5514

anmyachev opened this issue Jan 2, 2023 · 0 comments · Fixed by #5513
Labels
bug 🦗 Something isn't working CI dependencies 🔗 Issues related to dependencies

Comments

@anmyachev
Copy link
Collaborator

Looks like a problem in new release of sphinx==6.0.0. Perhaps part of the sphinx interface that Modin or libraries use has been removed. sphinx-doc/sphinx#11062

CI job: https://github.com/modin-project/modin/actions/runs/3823576158/jobs/6504890815

Traceback:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/html/__init__.py", line 1095, in handle_page
    output = self.templates.render(templatename, ctx)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/jinja2glue.py", line 194, in render
    return self.environment.get_template(template).render(context)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/themes/basic/page.html", line 10, in top-level template code
    {%- extends "layout.html" %}
  File "/home/runner/work/modin/modin/docs/_templates/layout.html", line 1, in top-level template code
    {% extends "!layout.html" %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 25, in top-level template code
    {% set remove_sidebar_secondary = (meta is defined and meta is not none
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/themes/basic/../basic/layout.html", line [170](https://github.com/modin-project/modin/actions/runs/3823576158/jobs/6504890815#step:5:171), in top-level template code
    {%- block content %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 83, in block 'content'
    {% block docs_navbar %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 85, in block 'docs_navbar'
    {%- include "sections/header.html" %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html", line 7, in top-level template code
    {% include navbar_item %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-logo.html", line 15, in top-level template code
    {% set image_light = image_light if image_light.startswith("http") else pathto('_static/' + image_light, 1) %}
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/jinja2/sandbox.py", line 326, in getattr
    value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'logo' is undefined

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/cmd/build.py", line 281, in build_main
    app.build(args.force_all, args.filenames)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/application.py", line 344, in build
    self.builder.build_update()
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 310, in build_update
    self.build(to_build,
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 376, in build
    self.write(docnames, list(updated_docnames), method)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 576, in write
    self._write_serial(sorted(docnames))
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 586, in _write_serial
    self.write_doc(docname, doctree)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/html/__init__.py", line 669, in write_doc
    self.handle_page(docname, ctx, event_arg=doctree)
  File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/sphinx/builders/html/__init__.py", line 1102, in handle_page
    raise ThemeError(__("An error happened in rendering the page %s.\nReason: %r") %
sphinx.errors.ThemeError: An error happened in rendering the page contact.
Reason: UndefinedError("'logo' is undefined")
@anmyachev anmyachev added bug 🦗 Something isn't working dependencies 🔗 Issues related to dependencies CI labels Jan 2, 2023
vnlitvinov pushed a commit that referenced this issue Jan 3, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
vnlitvinov pushed a commit that referenced this issue Jan 24, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working CI dependencies 🔗 Issues related to dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant