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
application cannot start. from towhee import AutoPipes crashes
python towhee-test.py
Traceback (most recent call last):
File "/root/jupyter/instana-slack-app-dev/towhee-test.py", line 1, in <module>
from towhee import AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/towhee/__init__.py", line 20, in <module>
from towhee.runtime import register, pipe, ops, accelerate, AutoConfig, AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/towhee/runtime/__init__.py", line 17, in <module>
from .pipeline import Pipeline as pipe
File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/towhee/runtime/pipeline.py", line 18, in <module>
from towhee.runtime.check_utils import TupleForm
File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/towhee/runtime/check_utils.py", line 36, in <module>
class TupleForm(BaseModel):
File "/root/jupyter/virtualenv/slack-dev-3.10/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'
Expected Behavior
application runs
Steps To Reproduce
1. in Python 3.10 env
2.`pip install towhee pydantic_core`3. run a python script with `from towhee import AutoPipes`4. see error
pip list | grep pydantic
pydantic 1.10.13
pydantic_core 2.14.4
### Environment
```markdown
- Towhee version(e.g. v0.1.3 or 8b23a93): 1.1.2
- OS(Ubuntu or CentOS): RHEL 8
- CPU/Memory: 8 CPU 32G Memory
- GPU:
- Others: Python 3.10
Anything else?
And actually after install with pip install towhee towhee.models, it does not run.
Traceback (most recent call last):
File "/root/jupyter/instana-slack-app-dev/towhee-test.py", line 1, in <module>
from towhee import AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/__init__.py", line 20, in <module>
from towhee.runtime import register, pipe, ops, accelerate, AutoConfig, AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/__init__.py", line 17, in <module>
from .pipeline import Pipeline as pipe
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/pipeline.py", line 18, in <module>
from towhee.runtime.check_utils import TupleForm
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/check_utils.py", line 16, in <module>
from pydantic import BaseModel, constr, validator
File "/root/jupyter/pydantic/pydantic/__init__.py", line 370, in __getattr__
module = import_module(module_name, package=package)
File "/opt/python-3.10.12/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/root/jupyter/pydantic/pydantic/main.py", line 11, in <module>
import pydantic_core
Traceback (most recent call last):
File "/root/jupyter/instana-slack-app-dev/towhee-test.py", line 1, in <module>
from towhee import AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/__init__.py", line 20, in <module>
from towhee.runtime import register, pipe, ops, accelerate, AutoConfig, AutoPipes
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/__init__.py", line 17, in <module>
from .pipeline import Pipeline as pipe
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/pipeline.py", line 18, in <module>
from towhee.runtime.check_utils import TupleForm
File "/root/jupyter/virtualenv/slack-dev-3.10-bug/lib/python3.10/site-packages/towhee/runtime/check_utils.py", line 16, in <module>
from pydantic import BaseModel, constr, validator
File "/root/jupyter/pydantic/pydantic/__init__.py", line 370, in __getattr__
module = import_module(module_name, package=package)
File "/opt/python-3.10.12/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/root/jupyter/pydantic/pydantic/types.py", line 28, in <module>
import annotated_types
ModuleNotFoundError: No module named 'annotated_types'
after installed 'annotated_types', it failed at the TypeError: constr() got an unexpected keyword argument 'regex' error.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: