towhee-io / towhee

Towhee is a framework that is dedicated to making neural data processing pipelines simple and fast.
https://towhee.io
Apache License 2.0
3.21k stars 247 forks source link

cannot import name 'pipe' from partially initialized module 'towhee' (most likely due to a circular import) #2695

Closed zyc1128 closed 4 months ago

zyc1128 commented 5 months ago

Is there an existing issue for this?

Current Behavior

tietle

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?

No response

jaelgu commented 5 months ago

@zyc1128 Can you share your code to help us reproduce and which towhee version do you use?

zyc1128 commented 5 months ago

@zyc1128 Can you share your code to help us reproduce and which towhee version do you use? I have tried a lot of versions from 0.5.0 to 1.1.3 .When I run "from towhee import pipe" this four-word-code,there is an importError: cannot import name 'pipe' from partially initialized module 'towhee' (most likely due to a circular import).Maybe I am weak in Python,but that is too weired.Only four words.

zyc1128 commented 5 months ago

@zyc1128 Can you share your code to help us reproduce and which towhee version do you use?

My python version is 3.9.8 and I want to use towhee to generate embeddings of images and search with Milvus.

junjiejiangjjj commented 5 months ago

Make sure there is no towhee.py in your workspace.

zhaoyuchen1128 commented 5 months ago

Make sure there is no towhee.py in your workspace.

Thanks,but where to set variables such as downloading path?The doc is not clear.

junjiejiangjjj commented 5 months ago

Make sure there is no towhee.py in your workspace.

Thanks,but where to set variables such as downloading path?The doc is not clear.

Use the environment variable TOWHEE_HOME to change the download path

zyc1128 commented 5 months ago

Make sure there is no towhee.py in your workspace.

Thanks,but where to set variables such as downloading path?The doc is not clear.

Use the environment variable TOWHEE_HOME to change the download path

Is there any doc that describes these variables?And I have reviewed the issues about how to config the local models,still confused.

zyc1128 commented 5 months ago

Make sure there is no towhee.py in your workspace.

Thanks,but where to set variables such as downloading path?The doc is not clear.

Use the environment variable TOWHEE_HOME to change the download path

I can not get access to huggingface and is there any way to run models from anything like Ollama or local models downloaded from modelscope?

junjiejiangjjj commented 5 months ago

Only supports models on huggingface

stale[bot] commented 4 months ago

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.