wechat-chatgpt Error on Platform Arm64 AArch64 Processor : Cortex-A53 * 4

nzkunb0c  于 2023-02-16  发布在  其他
关注(0)|答案(4)|浏览(331)

OSError: /root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/tls_client/dependencies/tls-client-amd64.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/src/generate_session.py", line 47, in
raise RuntimeError("Could import revChatGPT. Please install it first. You can run poetry install to install it.")
RuntimeError: Could import revChatGPT. Please install it first. You can run poetry install to install it.
at makeError (file:///app/node_modules/execa/lib/error.js:59:11)
at handlePromise (file:///app/node_modules/execa/index.js:119:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ChatGPTPoole.getSessionToken (file:///app/src/chatgpt.ts:58:42)
at async file:///app/src/chatgpt.ts:140:33
at async Promise.all (index 2)
at async ChatGPTPoole.startPools (file:///app/src/chatgpt.ts:136:26)
at async ChatGPTBot.startGPTBot (file:///app/src/chatgpt.ts:233:5)
at async WechatyImpl. (file:///app/src/main.ts:23:7) {
shortMessage: 'Command failed with exit code 1: sh -c poetry run python3 src/generate_session.py xxmask@qq.com maskpassword',
command: 'sh -c poetry run python3 src/generate_session.py maskaccoun@qq.com maskpassword',
escapedCommand: 'sh -c "poetry run python3 src/generate_session.py maskaccoun@qq.com maskpassword"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'Traceback (most recent call last):\n' +
' File "/app/src/generate_session.py", line 45, in \n' +
' from revChatGPT.revChatGPT import Chatbot\n' +
' File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 9, in \n' +
' from OpenAIAuth.OpenAIAuth import OpenAIAuth, Debugger\n' +
' File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/OpenAIAuth/OpenAIAuth.py", line 5, in \n' +
' import tls_client\n' +
' File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/tls_client/init.py", line 15, in \n' +
' from .sessions import Session\n' +
' File "/root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/tls_client/sessions.py",

q35jwt9p

q35jwt9p1#

Are you using Docker for deployment?

nsc4cvqm

nsc4cvqm2#

'OSError: /root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/tls_client/dependencies/tls-client-amd64.so: cannot open shared object file: No such file or directory\n' +

cd /root/.cache/pypoetry/virtualenvs/chatbot-twitter-9TtSrW0h-py3.11/lib/python3.11/site-packages/tls_client/dependencies/
ls
init.py tls-client-amd64.so tls-client-x86.dylib tls-client.dll
pycache tls-client-arm64.dylib tls-client-x86.so

same problem

check it from https://pypi.org/project/tls-client/0.1.4/

maybe you can compatible arm64 @fuergaosi233

ej83mcc0

ej83mcc03#

@fuergaosi233 yes, have used docker to deploy this image on Openwrt.

架构 AArch64 Processor : Cortex-A53 * 4
固件版本 OpenWrt R22.11.18 (2022-11-18 21:03:24 by flippy) / LuCI Master (git-22.316.26068-65f106a)
内核版本 5.15.79-flippy-78+o
本地时间 Sat Dec 10 18:43:06 2022

相关问题