Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question_answering_system/server connect milvus timeout #1163

Open
yuhaowin opened this issue Jul 18, 2023 · 1 comment
Open

question_answering_system/server connect milvus timeout #1163

yuhaowin opened this issue Jul 18, 2023 · 1 comment

Comments

@yuhaowin
Copy link
Contributor

yuhaowin commented Jul 18, 2023

    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'

I figured out this exception,and maybe we should update towhee.
towhee-io/towhee#2612
towhee-io/towhee#2610

towhee==1.1.0
towhee.models==1.1.0

 towhee==1.1.1 
 towhee.models==1.1.1 
@shiyu22
Copy link
Contributor

shiyu22 commented Jul 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants