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

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

Open
1 task done
huan415 opened this issue Aug 9, 2023 · 4 comments
Open
1 task done

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

huan415 opened this issue Aug 9, 2023 · 4 comments

Comments

@huan415
Copy link

huan415 commented Aug 9, 2023

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

@junjiejiangjjj
Copy link

Are there any other error logs available?

@junjiejiangjjj
Copy link

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

huan415 commented Aug 10, 2023

是的,在想提个pr

@liyunfei0302
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants