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

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

Closed
1 task done
zyc1128 opened this issue May 22, 2024 · 10 comments
Assignees
Labels
kind/bug Issues or changes related a bug needs-triage Issues needs triage stale

Comments

@zyc1128
Copy link

zyc1128 commented May 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

@zyc1128 zyc1128 added kind/bug Issues or changes related a bug needs-triage Issues needs triage labels May 22, 2024
@jaelgu
Copy link
Contributor

jaelgu commented May 22, 2024

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

@zyc1128
Copy link
Author

zyc1128 commented May 22, 2024

@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
Copy link
Author

zyc1128 commented May 22, 2024

@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
Copy link
Contributor

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

@zhaoyuchen1128
Copy link

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
Copy link
Contributor

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
Copy link
Author

zyc1128 commented May 23, 2024

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
Copy link
Author

zyc1128 commented May 23, 2024

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
Copy link
Contributor

Only supports models on huggingface

Copy link

stale bot commented Jun 22, 2024

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.

@stale stale bot added the stale label Jun 22, 2024
@stale stale bot closed this as completed Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug needs-triage Issues needs triage stale
Projects
None yet
Development

No branches or pull requests

5 participants