Hi Since updating Prefect from 3.6.16 to 3.6.17, I...
# ask-community
f
Hi Since updating Prefect from 3.6.16 to 3.6.17, I've been having problems with griffe package. Is anyone else experiencing these issues? For example my log during pytest :
Copy code
from prefect.blocks.core import Block
../../../Library/Caches/pypoetry/virtualenvs/iguazu-zSPJHTsc-py3.14/lib/python3.14/site-packages/prefect/blocks/__init__.py:3: in <module>
    import prefect.blocks.notifications as notifications
../../../Library/Caches/pypoetry/virtualenvs/iguazu-zSPJHTsc-py3.14/lib/python3.14/site-packages/prefect/blocks/notifications.py:12: in <module>
    from prefect.blocks.abstract import NotificationBlock, NotificationError
../../../Library/Caches/pypoetry/virtualenvs/iguazu-zSPJHTsc-py3.14/lib/python3.14/site-packages/prefect/blocks/abstract.py:20: in <module>
    from prefect.blocks.core import Block
../../../Library/Caches/pypoetry/virtualenvs/iguazu-zSPJHTsc-py3.14/lib/python3.14/site-packages/prefect/blocks/core.py:27: in <module>
    from griffe import Docstring, DocstringSection, DocstringSectionKind, Parser, parse
E   ModuleNotFoundError: No module named 'griffe'
------------------------------------------------------------------------------------------------------------------------------- Captured stderr --------------------------------------------------------------------------------------------------------------------------------
Failed to initialize plugins: No module named 'griffe'
āž• 1
m
Yep also seeing this:
Copy code
ImportError: cannot import name 'Docstring' from 'griffe' (unknown location)
Griffe implemented some breaking changes in a recent release. • https://mkdocstrings.github.io/griffe/changelog/https://mkdocstrings.github.io/griffe/changelog/ Prefect sets the dependency as any value less that 3.0.0 so has picked up the changes but not refactored accordingly: • https://github.com/PrefectHQ/prefect/blob/main/pyproject.toml#L54C20-L54C29
You can set you griffe version to a value that precedes the release in your container until a fix goes in šŸ‘
f
Thank you, you can follow discussion about this bug on Github ( https://github.com/PrefectHQ/prefect/pull/20612 ). Hope they'll fix it in a future release šŸ¤ž
šŸ™ 1
166 Views