fatwang2 / sum4all

网页、视频、图片大模型总结
MIT License
292 stars 57 forks source link

插件安装时出错,安装后又出错:Failed to import plugin sum4all: No module named 'docx' #61

Open bingjiw opened 5 months ago

bingjiw commented 5 months ago

插件的宿主App 即 ChatGPT on Wechat的安装运行环境:DigitalOcean - App Platform 作为 App docker 运行于 容器内

安装插件时出错: Installing collected packages: XlsxWriter, python-docx, PyMuPDFb, markdown, et-xmlfile, python-pptx, PyMuPDF, openpyx1 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/bin/vba_extract.py' Consider using the '--user option or check the permissions.

Screenshot 2024-06-03 at 11 38 38

安装微信插件sum4all后,出错如下: qwen-wewegpt-component] [2024-06-03 03:29:46] [WARNING][2024-06-03 11:29:46][plugin_manager.py:113] - Failed to import plugin sum4all: No module named 'docx'

Screenshot 2024-06-03 at 11 35 44
fatwang2 commented 5 months ago

看上去是依赖没安装?

bingjiw @.***>于2024年6月3日 周一11:44写道:

插件的宿主App 即 ChatGPT on Wechat的安装运行环境:DigitalOcean - App Platform 作为 App docker 运行于 容器内

安装插件时出错: Installing collected packages: XlsxWriter, python-docx, PyMuPDFb, markdown, et-xmlfile, python-pptx, PyMuPDF, openpyx1 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/bin/vba_extract.py' Consider using the '--user option or check the permissions. Screenshot.2024-06-03.at.11.38.38.png (view on web) https://github.com/fatwang2/sum4all/assets/20619102/320e01ed-c9c8-48fa-9d01-7e3bedc237ba

安装微信插件sum4all后,出错如下: qwen-wewegpt-component] [2024-06-03 03:29:46] [WARNING][2024-06-03 11:29:46][plugin_manager.py:113] - Failed to import plugin sum4all: No module named 'docx' Screenshot.2024-06-03.at.11.35.44.png (view on web) https://github.com/fatwang2/sum4all/assets/20619102/51c4ac64-2384-42ce-85de-f6d759aec6ca

— Reply to this email directly, view it on GitHub https://github.com/fatwang2/sum4all/issues/61, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSV5SMR5RQS4BGRJERDZFPRDFAVCNFSM6AAAAABIVVSCSCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTAMJQGA2DSMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bingjiw commented 5 months ago

用的是 ChatGPT on WeChat 的官方docker镜像文件装的,没有改过。 竟然还缺少依赖。

老大,能否做个docker,我直接用你的镜像文件,省得缺少依赖

ChanLicher commented 2 months ago

我是一直卡在这个错误上,不知道哪里出问题了

`Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting python-docx (from -r ./plugins/sum4all/requirements.txt (line 1))
  Downloading python_docx-1.1.2-py3-none-any.whl.metadata (2.0 kB)
Collecting markdown (from -r ./plugins/sum4all/requirements.txt (line 2))
  Downloading Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting PyMuPDF (from -r ./plugins/sum4all/requirements.txt (line 3))
  Downloading PyMuPDF-1.24.9-cp310-none-manylinux2014_x86_64.whl.metadata (3.4 kB)
Collecting openpyxl (from -r ./plugins/sum4all/requirements.txt (line 4))
  Downloading openpyxl-3.1.5-py2.py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.10/site-packages (from -r ./plugins/sum4all/requirements.txt (line 5)) (4.12.3)
Collecting python-pptx (from -r ./plugins/sum4all/requirements.txt (line 6))
  Downloading python_pptx-1.0.2-py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: Pillow in /usr/local/lib/python3.10/site-packages (from -r ./plugins/sum4all/requirements.txt (line 7)) (10.4.0)
Requirement already satisfied: lxml>=3.1.0 in /usr/local/lib/python3.10/site-packages (from python-docx->-r ./plugins/sum4all/requirements.txt (line 1)) (5.3.0)
Requirement already satisfied: typing-extensions>=4.9.0 in /usr/local/lib/python3.10/site-packages (from python-docx->-r ./plugins/sum4all/requirements.txt (line 1)) (4.12.2)
Collecting PyMuPDFb==1.24.9 (from PyMuPDF->-r ./plugins/sum4all/requirements.txt (line 3))
  Downloading PyMuPDFb-1.24.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (1.4 kB)
Collecting et-xmlfile (from openpyxl->-r ./plugins/sum4all/requirements.txt (line 4))
  Downloading et_xmlfile-1.1.0-py3-none-any.whl.metadata (1.8 kB)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.10/site-packages (from beautifulsoup4->-r ./plugins/sum4all/requirements.txt (line 5)) (2.6)
Collecting XlsxWriter>=0.5.7 (from python-pptx->-r ./plugins/sum4all/requirements.txt (line 6))
  Downloading XlsxWriter-3.2.0-py3-none-any.whl.metadata (2.6 kB)
Downloading python_docx-1.1.2-py3-none-any.whl (244 kB)
Downloading Markdown-3.7-py3-none-any.whl (106 kB)
Downloading PyMuPDF-1.24.9-cp310-none-manylinux2014_x86_64.whl (3.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.5/3.5 MB 22.8 MB/s eta 0:00:00
Downloading PyMuPDFb-1.24.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.9/15.9 MB 35.4 MB/s eta 0:00:00
Downloading openpyxl-3.1.5-py2.py3-none-any.whl (250 kB)
Downloading python_pptx-1.0.2-py3-none-any.whl (472 kB)
Downloading XlsxWriter-3.2.0-py3-none-any.whl (159 kB)
Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Installing collected packages: XlsxWriter, python-docx, PyMuPDFb, markdown, et-xmlfile, python-pptx, PyMuPDF, openpyxl
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/bin/vba_extract.py'
Consider using the `--user` option or check the permissions.
[INFO][2024-09-01 06:57:08][wechat_channel.py:217] - [WX] sendMsg=Reply(type=INFO, content=[INFO]
安装插件成功,请使用 #scanp 命令扫描插件或重启程序,开启前请检查插件是否需要配置), receiver=@4eb05eb3ba5a0c9342ed6aa81f08650418418e5eb3cf02502c151666f855f74c`
Cp0204 commented 2 weeks ago

解决方案 https://github.com/fatwang2/sum4all/issues/73#issuecomment-2453553150