-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
RDT build suddenly starts failing without any changes in conf.py #9037
Comments
I'm guessing this is because of a new release of jinja2 (https://github.com/pallets/jinja/releases). You'll need to pin your jinja2 requirement in your build to ensure it continues to work to We are also deploying a fix to Sphinx 1.8 to work around this, but we generally do recommend upgrading: https://docs.readthedocs.io/en/latest/guides/reproducible-builds.html#using-a-configuration-file |
Hi @ericholscher now the build starts working correctly without any changes! Anyway thanks for the suggestions, I will try to update Sphinx! |
Also having this issue https://readthedocs.org/projects/cyclecloud-cmaq/ |
The error is also described here: pallets/jinja#1631
and
It doesn't resolve the error. |
@lizadams it looks like your requirements file is commented out. You need to remove the |
@ericholscher - Thanks!
|
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ```
A recent update of Jinja2 breaks builds using the old version of Sphinx we are using. We still use Sphinx < 2 to build the overall documentation containing both markdown and rst files. Newer versions seem to have problems with this. Once all files have been converted to rst, we can uplift Sphinx (see individual builds which already today use much newer versions of Sphinx). See also readthedocs/readthedocs.org#9037 As a temporary solution, I suggest to limit jinja2 to < 3.2.0 until we can remove the version restriction in the overall build. Fixes anuket-project#2891 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Some deprecated features were removed in jinja2==3.1.0. For details see e.g. pallets/jinja#1626 and readthedocs/readthedocs.org#9037 We should probably update sphinx instead, but that breaks other things...
See readthedocs/readthedocs.org#9037 We could also upgrade sphinx.
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
fix jinja2 due to readthedocs/readthedocs.org#9037 (comment)
### Description Recent builds of the typedoc autogenerated docs have been failing because of some dependency upgrades. This PR specifies the packages for the read the docs site to use so the build will work. Related issue, readthedocs/readthedocs.org#9037
Jinja2 3.1.0 removed deprecated code that is still used by sphinx 1.8.x, and it looks like our custom sphinx extensions are not working with more recent versions of sphinx.. See: - pallets/jinja#1631 - readthedocs/readthedocs.org#9037 and - PowerDNS#7712 The exact error is: ``` Extension error: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py)) ``` (cherry picked from commit 92ad297)
Got this failure in CI: readthedocs/readthedocs.org#9037
Details
Actual Result
Everything worked fine till few hours ago then the build started failing. We don't have modified any configuration in the conf.py file and just added text and images to a page of the manual.
We get the same errors in another manual:
The text was updated successfully, but these errors were encountered: