| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
btw jinja2 gives ImportError when using sphinx-build docs/source docs/build/html command. Downgrading jinja2 from 3.1.2 to 3.0.3 fixed this issue. So should I update requirements-docs.txt too? Traceback (most recent call last):
File "C:\Users\Javad\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Javad\Anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\python-projects\ptb\venv\Scripts\sphinx-build.exe\__main__.py", line 4, in <module>
File "D:\python-projects\ptb\venv\lib\site-packages\sphinx\cmd\build.py", line 25, in <module>
from sphinx.application import Sphinx
File "D:\python-projects\ptb\venv\lib\site-packages\sphinx\application.py", line 43, in <module>
from sphinx.registry import SphinxComponentRegistry
File "D:\python-projects\ptb\venv\lib\site-packages\sphinx\registry.py", line 24, in <module>
from sphinx.builders import Builder
File "D:\python-projects\ptb\venv\lib\site-packages\sphinx\builders\__init__.py", line 26, in <module>
from sphinx.util import import_object, logging, progress_message, rst, status_iterator
File "D:\python-projects\ptb\venv\lib\site-packages\sphinx\util\rst.py", line 21, in <module>
from jinja2 import Environment, environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' (D:\python-projects\ptb\venv\lib\site-packages\jinja2\__init__.py)
|
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the fix. Is your sphinx version the one specified in requirements-docs.txt? The error probably happens since the versions aren't exactly matching the ones we specified.
Sorry, something went wrong.
|
Sorry, something went wrong.
|
okay since I see you're on a venv you probably have the right versions I'd say to go ahead and add that in (Jinja2 < 3.1). Makes sense you're getting this since I see this in the sphinx source code. |
Sorry, something went wrong.
Of course, done. |
Sorry, something went wrong.
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
|
@harshil21 Anything else needed to merge this PR? |
Sorry, something went wrong.
|
Thanks for the contribution! |
Sorry, something went wrong.
You're very welcome. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist for PRs