Comments (8)
这是部分目录
(Baiduyun) ➜ samples BaiduPCS-Py ls
/
Path
─────────────────────────────────────────────────────────────
d 000
d 1
d 1.31
d 2
d Adobe常用软件
d Borderlands.3.Designers.Cut-CODEX
d D.L.Hellraid
d deadrising3-jisu
d Fate HF 第一章BD
from baidupcs-py.
@cryzlasm 我无法复现这个 error。等我把 log 模块写完就可以 debug 了。请等一等 😆
from baidupcs-py.
那就等一下吧, 估计是因为我登录的共享的 "炒鸡 VIP" 然后这时候被顶了吧,
因为后续会有
(Baiduyun) ➜ samples BaiduPCS-Py d ./1 -R
(v0.5.1) System ERROR: 'list'
(Baiduyun) ➜ samples BaiduPCS-Py ls
(v0.5.1) System ERROR: 'list'
from baidupcs-py.
@cryzlasm v0.5.2 版加入了 debug 模式。用下面的命令开启。
LOG_LEVEL=DEBUG BaiduPCS-Py {cmd} ...
运行结束后,请将 ~/.baidupcs-py/running.log
对应的 log 贴出来。
为了 debug 方便,请只输入单个远端路径。
from baidupcs-py.
可能还是 共享炒鸡VIP 的问题
(BaiduPCS) ➜ downloads BaiduPCS-Py d -R 111112222
(v0.5.2) System ERROR: AutoDecryptRequest - Server does not support `Range` head. Response content:
b'{"error_code":31326,"error_msg":"user is not authorized, hitcode:117","error_info":"","request_id":720140943676925927}'
⠋ 111112222/1250FFZWG/1250FFZWG.7z.tmp ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
b'{"error_code":31326,"error_msg":"user is not authorized, hitcode:117","error_info":"","request_id":720140943676925927}'
但是这次没有 'list' 这个 error
from baidupcs-py.
running.log 是空的
(BaiduPCS) ➜ .baidupcs-py BaiduPCS-Py
Usage: BaiduPCS-Py [OPTIONS] COMMAND [ARGS]...
BaiduPCS App v0.5.2
如果第一次使用,你需要运行 `BaiduPCS-Py useradd` 添加 `bduss` 和 `cookies`。
如何获取 `bduss` 和 `cookies` 见 https://github.com/PeterDing/BaiduPCS-Py#%E6%B7%BB%E5%8A%A0%E7%94%A8%E6%88%B7
用 `BaiduPCS-Py {command} --help` 查看具体的用法。
对了, 有空加个 Version 命令吧
from baidupcs-py.
上边那个应该是我没设置 那个DEBUG
2021-01-31 14:49:03,691 | DEBUG | download: `download`: sifters: [], recursive: True, from_index: 0, downloader: Downloader.me, downloadparams: DownloadParams(chunk_size='1048576', concurrency=5, quiet=False), out_cmd: False, has encrypt_key: False
2021-01-31 14:49:03,691 | DEBUG | download: `download`: remotepaths should be uniq 1 == 1
2021-01-31 14:49:04,504 | DEBUG | app: `app`: System Error: Traceback (most recent call last):
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/app/app.py", line 83, in wrap
return func(*args, **kwargs)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/app/app.py", line 768, in download
_download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 405, in download
download_dir(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 338, in download_dir
download_dir(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 327, in download_dir
download_file(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 301, in download_file
downloader.download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 77, in download
self._me_download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 174, in _me_download
length = len(meDownloader)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 848, in __len__
return len(self._auto_decrypt_request)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 766, in __len__
return self.remote_len - self._total_head_len
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 746, in remote_len
raise IOError(
OSError: AutoDecryptRequest - Server does not support `Range` head. Response content: b'{"error_code":31326,"error_msg":"user is not authorized, hitcode:117","error_info":"","request_id":720212905104830535}'
2021-01-31 14:49:08,020 | DEBUG | app: `app`: handle_signal: 2
2021-01-31 14:49:10,555 | DEBUG | download: `download`: sifters: [], recursive: True, from_index: 0, downloader: Downloader.me, downloadparams: DownloadParams(chunk_size='1048576', concurrency=5, quiet=False), out_cmd: False, has encrypt_key: False
2021-01-31 14:49:10,556 | DEBUG | download: `download`: remotepaths should be uniq 1 == 1
2021-01-31 14:49:11,082 | DEBUG | app: `app`: System Error: Traceback (most recent call last):
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/app/app.py", line 83, in wrap
return func(*args, **kwargs)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/app/app.py", line 768, in download
_download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 405, in download
download_dir(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 338, in download_dir
download_dir(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 327, in download_dir
download_file(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 301, in download_file
downloader.download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 77, in download
self._me_download(
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/commands/download.py", line 174, in _me_download
length = len(meDownloader)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 848, in __len__
return len(self._auto_decrypt_request)
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 766, in __len__
return self.remote_len - self._total_head_len
File "/root/python_env/BaiduPCS/lib/python3.8/site-packages/baidupcs_py/common/io.py", line 746, in remote_len
raise IOError(
OSError: AutoDecryptRequest - Server does not support `Range` head. Response content: b"[10.134.41.155:2010][E1002]Fail to find method on `/file/10b8137ceib7037fb3eb9a9fbabe6e82'\n"
2021-01-31 14:49:33,058 | DEBUG | app: `app`: handle_signal: 2
from baidupcs-py.
@cryzlasm 应该就是你的帐号问题。
version (v0.5.2) 已经显示在 BaiduPCS-Py --help
中
from baidupcs-py.
Related Issues (20)
- 希望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
- 是不是不能用了? HOT 1
- upload秒传挂了, 是否可以在upload加入跳过秒传的选项
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.