wechat-chatgpt icon indicating copy to clipboard operation
wechat-chatgpt copied to clipboard

启动的时候报错 Permission denied: '/root/.config/pypoetry/config.toml'

Open slovx2 opened this issue 2 years ago • 0 comments

我在最新的镜像里面运行main分支的代码,报以下错误。(账号已脱敏)

详细信息如下:

[Errno 13] Permission denied: '/root/.config/pypoetry/config.toml'
    at makeError (file:///data/dev/node_modules/execa/lib/error.js:59:11)
    at handlePromise (file:///data/dev/node_modules/execa/index.js:119:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ChatGPTPoole.getSessionToken (file:///data/dev/src/chatgpt.ts:63:42)
    at async file:///data/dev/src/chatgpt.ts:154:33
    at async Promise.all (index 1)
    at async ChatGPTPoole.startPools (file:///data/dev/src/chatgpt.ts:150:26)
    at async ChatGPTBot.startGPTBot (file:///data/dev/src/chatgpt.ts:265:5)
    at async WechatyImpl.<anonymous> (file:///data/dev/src/main.ts:23:7) {
  shortMessage: 'Command failed with exit code 1: sh -c poetry run python3 src/generate_session.py xxxx xxxx',
  command: 'sh -c poetry run python3 src/generate_session.py xxxxxx  xxxx',
  escapedCommand: 'sh -c "poetry run python3 src/generate_session.py xxxx xxxx"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: "\n[Errno 13] Permission denied: '/root/.config/pypoetry/config.toml'",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

更新:

切回镜像里自带的代码,正常了

slovx2 avatar Dec 11 '22 10:12 slovx2