PeterDing/BaiduPCS-Py

交互运行后出现cookies的字典格式不正确

lin-qian123 opened this issue · 1 comments

Describe the bug / 描述 bug
交互运行后出现cookies的字典格式不正确:
(v0.7.6) System ERROR: dictionary update sequence element #0 has length 1; 2 is required

Screenshots / 问题截图
屏幕截图 2024-04-09 165539

Envrionment / 运行环境

  • OS: [e.g. Windows11]
  • Python [e.g. Python3.10]
  • BaiduPCS-Py Version [e.g. 0.7.6]

Runing log / 运行日志
Please follow steps to paste the content of file ~/.baidupcs-py/running.log.

  1. Remove the file ~/.baidupcs-py/running.log if it exists.
  2. Run the command where the bug occurs with envrionment variable LOG_LEVEL=DEBUG.
    e.g. LOG_LEVEL=DEBUG BaiduPCS-Py upload /abc /
  3. Paste the content of file ~/.baidupcs-py/running.log after the bug occurs.

Don't show BDUSS and cookies.

请按照下面的步骤贴出运行日志 ~/.baidupcs-py/running.log 中的内容。
BaiduPCS-Py useradd
Account Name []: xxx
BDUSS []:
Cookies []:
(v0.7.6) System ERROR: dictionary update sequence element #0 has length 1; 2 is required

把双引号改成单引号就行了