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.17k stars 246 forks source link

[Bug]: "Error Code 1314" when trying to download a model from the hub #2620

Closed ssuwelack closed 1 year ago

ssuwelack commented 1 year ago

Is there an existing issue for this?

Current Behavior

I used the following pipeline to compute an image embedding (from the tutorial): p = ( pipe.input('path') .map('path', 'img', ops.image_decode()) .map('img', 'vec', ops.image_embedding.timm(model_name='resnet50')) .output('img', 'vec') )

On my windows machine, I get the following error when executing the pipeline: "Error Code 1314 - A required privilege is not held by the client"

This seems to be caused when towhee is trying to set a symlink: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\pathlib.py", line 1255, in symlink_to self._accessor.symlink(target, self, target_is_directory)

Expected Behavior

The pipeline should be executed without errors. It works on my Ubuntu machine.

Steps To Reproduce

1. In Windows 10
2. Execute tutorial for image embeddings

Environment

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

Anything else?

No response

junjiejiangjjj commented 1 year ago

Can the ~/.towhee directory write files normally?

junjiejiangjjj commented 1 year ago

You can adjust the cache directory of towhee by setting the TOWHEE_HOME environment variable.

ssuwelack commented 1 year ago

Thanks for the fast reply. Yes, I can write to the towhee directory. The bug still happens if I choose a different TOWHEE_HOME

junjiejiangjjj commented 1 year ago

It may be that the Window has disabled the symlink: https://stackoverflow.com/questions/32877260/privlege-error-trying-to-create-symlink-using-python-on-windows-10

stale[bot] commented 1 year 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.

stale[bot] commented 1 year 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.