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

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

Open
bingjiw opened this issue Jun 3, 2024 · 3 comments

Comments

@bingjiw
Copy link

bingjiw commented Jun 3, 2024

插件的宿主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
Copy link
Owner

fatwang2 commented Jun 3, 2024 via email

@bingjiw
Copy link
Author

bingjiw commented Jun 3, 2024

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

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

@ChanLicher
Copy link

ChanLicher commented Sep 1, 2024

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

`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`

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