Closed dove-young closed 8 months ago
In latest version of pydantic
, the param regex
is removed.
grep -A 10 'def constr' /root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/pydantic/types.py
def constr(
*,
strip_whitespace: bool | None = None,
to_upper: bool | None = None,
to_lower: bool | None = None,
strict: bool | None = None,
min_length: int | None = None,
max_length: int | None = None,
pattern: str | None = None,
) -> type[str]:
"""
pydantic 2.5.1
pydantic_core 2.14.3
Here is a PR for this issue https://github.com/towhee-io/towhee/pull/2675
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Close the stale issues and pull requests after 7 days of inactivity. Reopen the issue with /reopen
.
Is there an existing issue for this?
Current Behavior
application cannot start.
from towhee import AutoPipes
crashesExpected Behavior
application runs
Steps To Reproduce
Anything else?
And actually after install with
pip install towhee towhee.models
, it does not run.after install
pydantic_core
it failed at
after installed 'annotated_types', it failed at the
TypeError: constr() got an unexpected keyword argument 'regex'
error.