GithubHelp home page GithubHelp logo

Comments (10)

PeterDing avatar PeterDing commented on August 15, 2024

请务必确保你的描述依从 bug issus 模板,不然无法找到问题。

from baidupcs-py.

Frozen5293 avatar Frozen5293 commented on August 15, 2024

003.png
002.png
001.png

  • BaiduPCS-Py Version: v0.6.16
  • Python Version: 3.7.7
  • OS:Windows10 2004

复现方式:

​ 1.添加用户

​ 2.下载

​ 3.问题出现

找不到这个

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

from baidupcs-py.

PeterDing avatar PeterDing commented on August 15, 2024

运行日志:

  1. 删除 ~/.baidupcs-py/running.log,如果存在。
  2. 在问题发生的命令前加入环境变量 LOG_LEVEL=DEBUG
    例如:LOG_LEVEL=DEBUG BaiduPCS-Py upload /abc /
    Windows 上,设置环境变量如下:
set LOG_LEVEL=DEBUG

然后再运行出现问题的命令。
3. 在问题出现后,贴出 ~/.baidupcs-py/running.log 中的内容。

from baidupcs-py.

Frozen5293 avatar Frozen5293 commented on August 15, 2024

2021-04-15 13:44:53,533 | DEBUG | download: download: sifters: [], recursive: False, from_index: 0, downloader: Downloader.me, downloadparams: DownloadParams(chunk_size='1048576', concurrency=5, quiet=False), out_cmd: False, has encrypt_password: False
2021-04-15 13:44:53,533 | DEBUG | download: download: remotepaths should be uniq 1 == 1
2021-04-15 13:44:56,136 | DEBUG | app: app: _exit_progress_bar: stop progress bar
2021-04-15 13:44:56,157 | DEBUG | app: app: System Error: Traceback (most recent call last):
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\app\app.py", line 117, in wrap
return func(*args, **kwargs)
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\app\app.py", line 175, in wrap
return func(*args, **kwargs)
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\app\app.py", line 984, in download
encrypt_password=encrypt_password,
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\commands\download.py", line 405, in download
encrypt_password=encrypt_password,
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\commands\download.py", line 311, in download_file
encrypt_password=encrypt_password,
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\commands\download.py", line 84, in download
encrypt_password=encrypt_password,
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\commands\download.py", line 175, in _me_download
length = len(meDownloader)
File "c:\users\USR\appdata\local\programs\python\python37-32\lib\site-packages\baidupcs_py\common\io.py", line 1051, in len
return len(self._auto_decrypt_request)
OverflowError: cannot fit 'int' into an index-sized integer

2021-04-15 13:44:56,657 | DEBUG | app: app: _teardown: start
2021-04-15 13:44:56,657 | DEBUG | app: app: _teardown: end

running.log

from baidupcs-py.

PeterDing avatar PeterDing commented on August 15, 2024

你运行的 python3 应该是 32位的吧。
32位的 python3 在处理一些大数的时候,可能有一些问题,见 boto/boto3#2457

你可以换用 64位的 python3 试试。 比如 https://www.python.org/ftp/python/3.9.4/python-3.9.4-amd64.exe

from baidupcs-py.

PeterDing avatar PeterDing commented on August 15, 2024

python 的 int 数据应该不会有大小限制。出这个错,我目前也不太明白。但是换 64位的试试吧

from baidupcs-py.

PeterDing avatar PeterDing commented on August 15, 2024

找到这个 https://bugs.python.org/issue21444#msg217957

from baidupcs-py.

Frozen5293 avatar Frozen5293 commented on August 15, 2024

但是之前运行过一次,是可以使用的,这不是很奇怪吗

from baidupcs-py.

PeterDing avatar PeterDing commented on August 15, 2024

出现报错的文件 是.7 应该大于或等于 2G 吧。
好像 python 32位的 __len__ 方法返回结果大于 2G 就是这个错。

你可以自己检查一下:
用python 32 位运行下面的代码:

class A:
    def __len__(self):
        return 1 << 33

a = A()
len(a)

应该会报 OverflowError: cannot fit 'int' into an index-sized integer

from baidupcs-py.

Frozen5293 avatar Frozen5293 commented on August 15, 2024

虽然我把32位的卸载了,应该就是这个问题了,感谢回复
之前下载的就是小于2G的,这次几个测试都是大于的

ps:装回来了
004.png

from baidupcs-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.