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.

Home Page:https://milvus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

huan415 opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

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

Are there any other error logs available?

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)])

是的,在想提个pr