From 8f241c559a8d1f787f79810a565fa49a8da82750 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sat, 8 May 2021 23:50:56 +0200 Subject: [PATCH] docs: Don't need the suggestion to upgrade Jinja if we ensure it (as a project dependency) --- docs/troubleshooting.md | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 20e88195..7bfa2163 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -135,29 +135,6 @@ Make sure the referenced object was both collected and rendered: verify your sel For false-positives, you can wrap the text in backticks (\`) to prevent `mkdocstrings` from trying to process it. -## WindowsPath object is not iterable - -If you get a traceback like this one: - -``` -... -File "c:\users\me\appdata\local\continuum\anaconda3\lib\site-packages\mkdocstrings\handlers\python.py", line 244, in get_handler - return PythonHandler(collector=PythonCollector(), renderer=PythonRenderer("python", theme)) -File "c:\users\me\appdata\local\continuum\anaconda3\lib\site-packages\mkdocstrings\handlers\__init__.py", line 124, in __init__ - self.env = Environment(autoescape=True, loader=FileSystemLoader(theme_dir)) -File "c:\users\me\appdata\local\continuum\anaconda3\lib\site-packages\jinja2\loaders.py", line 163, in __init__ - self.searchpath = list(searchpath) -TypeError: 'WindowsPath' object is not iterable -``` - -Try upgrading your installed version of Jinja2: - -``` -pip install -U jinja2 -``` - -Version 2.11.1 seems to be working fine. - --- ## Python specifics