From fe96941a2eea3f883d8c2e7db80c8d52a5c35181 Mon Sep 17 00:00:00 2001 From: harry Date: Fri, 29 Mar 2024 09:10:54 +0800 Subject: [PATCH] update readme --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 495f2f3..03db6f4 100644 --- a/README.md +++ b/README.md @@ -190,11 +190,11 @@ python main.py ## 常见问题 🤔 ### ❓AttributeError: 'str' object has no attribute 'choices'` + 这个问题是由于 OpenAI 或者其他 LLM,没有返回正确的回复导致的。 大概率是网络原因, 使用 **VPN**,或者设置 `openai_base_url` 为你的代理 ,应该就可以解决了。 - ### ❓RuntimeError: No ffmpeg exe could be found 通常情况下,ffmpeg 会被自动下载,并且会被自动检测到。 @@ -255,6 +255,44 @@ if you are in China, please use a VPN. 感谢 [@chenhengzh](https://github.com/chenhengzh)的研究探索 +### ❓OSError: [Errno 24] Too many open files + +[issue 100](https://github.com/harry0703/MoneyPrinterTurbo/issues/100) + +这个问题是由于系统打开文件数限制导致的,可以通过修改系统的文件打开数限制来解决。 + +查看当前限制 + +```shell +ulimit -n +``` + +如果过低,可以调高一些,比如 + +```shell +ulimit -n 10240 +``` + +### ❓AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' + +[issue 101](https://github.com/harry0703/MoneyPrinterTurbo/issues/101), +[issue 83](https://github.com/harry0703/MoneyPrinterTurbo/issues/83), +[issue 70](https://github.com/harry0703/MoneyPrinterTurbo/issues/70) + +先看下当前的 Pillow 版本是多少 + +```shell +pip list |grep Pillow +``` + +如果是 10.x 的版本,可以尝试下降级看看,有用户反馈降级后正常 + +```shell +pip uninstall Pillow +pip install Pillow==9.5.0 +# 或者降级到 8.4.0 +pip install Pillow==8.4.0 +``` ## 反馈建议 📢