Skip to content

maybe use griffelib instead of griffe as dependency, and update to 2+ #2783

@DeoLeung

Description

@DeoLeung

my ci and service occasionally crash with

/usr/local/lib/python3.13/site-packages/agents/tool.py:53: in <module>
    from .function_schema import DocstringStyle, function_schema
/usr/local/lib/python3.13/site-packages/agents/function_schema.py:10: in <module>
    from griffe import Docstring, DocstringSectionKind
/usr/local/lib/python3.13/site-packages/griffe/__init__.py:277: in <module>
    from griffe._internal.expressions import (
E   ImportError: cannot import name 'ExprInterpolation' from 'griffe._internal.expressions' (/usr/local/lib/python3.13/site-packages/griffe/_internal/expressions.py)

it may cause by

uv pip list | grep griffe
Using Python 3.13.12 environment at: /usr/local
griffe                                       1.15.0
griffelib                                    2.0.0

i think they sometimes overwrite each other by installation order?

if using griffelib it may be resolved by uv

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions