Skip to content

custom_templates FileNotFoundError with mkdocstrings-python 1.10 #18

@analog-cbarber

Description

@analog-cbarber

This failure started appearing with mkdocstrings-python 1.10.

tests/test_handler.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
src/mkdocstrings_handlers/python_xref/handler.py:59: in __init__
    super().__init__(
/usr/share/miniconda3/envs/mkxref-dev/lib/python3.10/site-packages/mkdocstrings_handlers/python/handler.py:218: in __init__
    for theme_dir in config_dir.joinpath(custom_templates, "python").iterdir():
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/tmp/pytest-of-runner/pytest-0/test_handler0/custom_templates/python')

    def iterdir(self):
        """Iterate over the files in this directory.  Does not yield any
        result for the special paths '.' and '..'.
        """
>       for name in self._accessor.listdir(self):
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-runner/pytest-0/test_handler0/custom_templates/python'

/usr/share/miniconda3/envs/mkxref-dev/lib/python3.10/pathlib.py:1017: FileNotFoundError

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions