cnbeining / onedrivecmd

A command line client for Onedrive.
https://www.cnbeining.com/
GNU Affero General Public License v3.0
378 stars 78 forks source link

安装报错 #81

Open root0day opened 3 years ago

root0day commented 3 years ago

环境 root@HKG-BLBL:~# cat /etc/issue Debian GNU/Linux 10 \n \l

root@HKG-BLBL:~# python --version Python 2.7.16 root@HKG-BLBL:~# python3 --version Python 3.7.3 root@HKG-BLBL:~#

报错信息 root@HKG-BLBL:~# pip install onedrivecmd Collecting onedrivecmd Using cached https://files.pythonhosted.org/packages/2a/bd/162f2536876076a075a2c1dd117a48cdd7a3cf07df0338bc0f2cf5d13ffb/OnedriveCMD-0.1.8.1.tar.gz Collecting onedrivesdk (from onedrivecmd) Using cached https://files.pythonhosted.org/packages/b3/76/9a3fe5b36079f5c40b33c89ad6f7737e3b8609010a80c9ed24d762ddb93e/onedrivesdk-2.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-H3Sjfv/onedrivesdk/setup.py", line 9, in with open(NOTICE, 'r', encoding='utf-8') as f: TypeError: 'encoding' is an invalid keyword argument for this function

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-H3Sjfv/onedrivesdk/ root@HKG-BLBL:~#

截图 image

arisliang commented 2 years ago

不止init,直接运行onedrivecmd 也是这个错误。

OnedriveCMD 0.1.8.1 onedrivesdk 2.0.1

python 3.9.10 windows 10