You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from towhee import ops, pipe
File "/usr/local/lib/python3.10/site-packages/towhee/__init__.py", line 20, in <module>
from towhee.runtime import register, pipe, ops, accelerate, AutoConfig, AutoPipes
File "/usr/local/lib/python3.10/site-packages/towhee/runtime/__init__.py", line 17, in <module>
from .pipeline import Pipeline as pipe
File "/usr/local/lib/python3.10/site-packages/towhee/runtime/pipeline.py", line 18, in <module>
from towhee.runtime.check_utils import TupleForm
File "/usr/local/lib/python3.10/site-packages/towhee/runtime/check_utils.py", line 36, in <module>
class TupleForm(BaseModel):
File "/usr/local/lib/python3.10/site-packages/towhee/runtime/check_utils.py", line 38, in TupleForm
schema_data: Optional[Tuple[constr(regex='^[a-z][a-z0-9_]*$'), ...]]
TypeError: constr() got an unexpected keyword argument 'regex'
When you installed the towhee1.1.1, the issue was solved, right? I think it was caused by the version of pydantic, and 1.1.1 is required pydantic<2. And can you submit a PR to update the version, and thanks for your exploration.
I figured out this exception,and maybe we should update towhee.
towhee-io/towhee#2612
towhee-io/towhee#2610
bootcamp/solutions/nlp/question_answering_system/server/requirements.txt
Lines 5 to 6 in ac94803
The text was updated successfully, but these errors were encountered: