milvus-io / bootcamp

Dealing with all unstructured data, such as reverse image search, audio search, molecular search, video analysis, question and answer systems, NLP, etc.
https://milvus.io
Apache License 2.0
1.81k stars 555 forks source link

[BUG]: argument of type 'WindowsPath' is not iterable #1166

Open huan415 opened 1 year ago

huan415 commented 1 year ago

Is there an existing issue for this?

Current Behavior

下载 solutions/image/reverse_image_search/server 版本2.2.11,pycharm启动 启动时本地没有.towhe会请求towhee下载,此时报错:argument of type 'WindowsPath' is not iterable, 步骤如下:

Expected Behavior

No response

Steps To Reproduce

第一次启动:报错argument of type 'WindowsPath' is not iterable,看.towhee有image-decode
第二次启动:报错argument of type 'WindowsPath' is not iterable,看.towhee有image-decode、image-embedding
第三次启动:启动成功,看.towhee有image-decode、image-embedding、towhee

debug: 发现,文件是有下载成功,在执行代码 subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', fs.requirements]) 时报错

即: install 远程下载下来的 requirements.txt 报错,我在终端执行是可以的

Software version

Milvus: [e.g. v2.2.12]
Server: [e.g. 2.2.11]

Anything else?

No response

junjiejiangjjj commented 1 year ago

Are there any other error logs available?

junjiejiangjjj commented 1 year ago

https://stackoverflow.com/questions/67061803/how-to-pass-arguments-from-subprocess-popen-to-powershell-script
It may be similar to this problem, try this: subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', fs.requirements])-> subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-r', str(fs.requirements)])

huan415 commented 1 year ago

是的,在想提个pr

liyunfei0302 commented 7 months ago

@huan415 请问解决了吗,怎么按照官方文档操作还报错呢