Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14172

beam_PreCommit_PythonDocs failing (jinja2)

Details

    • Bug
    • Status: Open
    • P2
    • Resolution: Unresolved
    • None
    • None
    • test-failures

    Description

      I'm guessing a new jinja2 release broke us (https://pypi.org/project/Jinja2/#history)

      12:16:08 Traceback (most recent call last):
      12:16:08 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/bin/sphinx-apidoc", line 7, in <module>
      12:16:08 from sphinx.ext.apidoc import main
      12:16:08 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/lib/python3.8/site-packages/sphinx/ext/apidoc.py", line 32, in <module>
      12:16:08 from sphinx.cmd.quickstart import EXTENSIONS
      12:16:08 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/lib/python3.8/site-packages/sphinx/cmd/quickstart.py", line 49, in <module>
      12:16:08 from sphinx.util.template import SphinxRenderer
      12:16:08 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/lib/python3.8/site-packages/sphinx/util/template.py", line 17, in <module>
      12:16:08 from sphinx.jinja2glue import SphinxFileSystemLoader
      12:16:08 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/lib/python3.8/site-packages/sphinx/jinja2glue.py", line 16, in <module>
      12:16:08 from jinja2 import FileSystemLoader, BaseLoader, TemplateNotFound, \
      12:16:08 ImportError: cannot import name 'contextfunction' from 'jinja2' (/home/jenkins/jenkins-slave/workspace/beam_PreCommit_PythonDocs_Commit/src/sdks/python/test-suites/tox/pycommon/build/srcs/sdks/python/target/.tox-py38-docs/py38-docs/lib/python3.8/site-packages/jinja2/_init_.py)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ibzib Kyle Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m