Comments (10)
请务必确保你的描述依从 bug issus 模板,不然无法找到问题。
from baidupcs-py.
- 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.
运行日志:
- 删除
~/.baidupcs-py/running.log
,如果存在。 - 在问题发生的命令前加入环境变量
LOG_LEVEL=DEBUG
。
例如:LOG_LEVEL=DEBUG BaiduPCS-Py upload /abc /
在 Windows 上,设置环境变量如下:
set LOG_LEVEL=DEBUG
然后再运行出现问题的命令。
3. 在问题出现后,贴出 ~/.baidupcs-py/running.log
中的内容。
from baidupcs-py.
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.
你运行的 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.
python 的 int 数据应该不会有大小限制。出这个错,我目前也不太明白。但是换 64位的试试吧
from baidupcs-py.
找到这个 https://bugs.python.org/issue21444#msg217957
from baidupcs-py.
但是之前运行过一次,是可以使用的,这不是很奇怪吗
from baidupcs-py.
出现报错的文件 是.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.
虽然我把32位的卸载了,应该就是这个问题了,感谢回复
之前下载的就是小于2G的,这次几个测试都是大于的
from baidupcs-py.
Related Issues (20)
- api接口无法登录 HOT 5
- 希望减少一下依赖,baidupcs-py构建太慢了 HOT 1
- 希望sdk能够给上传文件,加个进度条显示 HOT 3
- 用docker的python镜像构建,会报下面的错误 HOT 5
- 发布增加 wheel 文件
- Feature Request: extract sdk/api into a seperat package HOT 3
- Support python 3.11 HOT 1
- BaiduPCS-Py save的时候REMOTEDIR路径中有空格怎么处理 HOT 5
- 开启HTTP服务时报错 HOT 1
- 列出目录和下载凡是带空格的文件夹好像都失效了 HOT 3
- 有没有办法生成BaiduYunCacheFileV0.db 文件 HOT 1
- 上传文件到最后10%左右速度下降至200k HOT 2
- 上传速度突然变慢/8.19彻底无法上传 HOT 8
- 求教大佬们,同步本地目录到网盘的命令,如何显示进度? HOT 1
- (v0.7.6) System ERROR: Cannot specify `Depends` for type
- 如何自定义配置目录 HOT 1
- 安装时报错Failed to build BaiduPCS-Py ERROR: Could not build wheels for BaiduPCS-Py, which is required to install pyproject.toml-based projects
- 在使用share命令后出现:BaiduPCSError: error_code: 2, message: 参数错误 HOT 1
- subprocess-exited-with-error 安装baidupc-py失败 HOT 1
- 交互运行后出现cookies的字典格式不正确 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baidupcs-py.