foyoux / aligo

🔥简单、易用、可扩展的阿里云盘 API 接口库🚀
GNU General Public License v3.0
849 stars 156 forks source link

usedforsecurity不兼容python3.8 #28

Closed xiangfeidexiaohuo closed 2 years ago

xiangfeidexiaohuo commented 2 years ago

操作系统信息

ubuntu 20.04 LTS python v3.8

错误描述

    up_file = ali.upload_file(filePath, folder.file_id, fileName)
27
  File "/home/runner/.local/lib/python3.8/site-packages/aligo/core/Create.py", line 229, in upload_file
28
    part_info = self._pre_hash(file_path=file_path, file_size=file_size, name=name,
29
  File "/home/runner/.local/lib/python3.8/site-packages/aligo/core/Create.py", line 69, in _pre_hash
30
    pre_hash = hashlib.sha1(f.read(1024), usedforsecurity=False).hexdigest()
31
TypeError: openssl_sha1() takes at most 1 argument (2 given)
32
Error: Process completed with exit code 1.

试过把aligo 降级到v4.6.5是没问题的,v4.6.6更新了, 不兼容python3.8

xiangfeidexiaohuo commented 2 years ago

v 4.6.7 已解决