Comments (19)
应该是个bug,我去看看,谢谢反馈。
from bypy.
最近的commit应该解决了这个问题。
from bypy.
我也试了一下续传:
<D> Downloading '/apps/bypy/Test/VIDEO_TSVTS_04_1.VOB' as 'VIDEO_TSVTS_04_1.VOB'
<D> Checking if we already have the copy locally
<D> Same-name local file exists, checking if MD5s match
<E> [11:18:31] Exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/bypy", line 2400, in main
result = getattr(by, args.command[0])(*uargs)
File "/usr/local/bin/bypy", line 1742, in downdir
return self.__walk_remote_dir(rpath, self.__proceed_downdir, (rpath, lpath))
File "/usr/local/bin/bypy", line 1672, in __walk_remote_dir
subresult = proceed(remotepath, dirjs, filejs, args)
File "/usr/local/bin/bypy", line 1720, in __proceed_downdir
subresult = self.__downfile(rfile, lfile)
File "/usr/local/bin/bypy", line 1554, in __downfile
if ENoError == self.__verify_current_file(self.__remote_json, False):
AttributeError: 'ByPy' object has no attribute '_ByPy__remote_json'
Abort
Not saving Hash Cache since 'dirty' is 'False' and 'force_saving' is 'False'
需要改设定吗?
from bypy.
@leonardoxiao 最新版还有这个问题吗?
from bypy.
没有 exception 了,不过只是跳过了:
<D> Downloading '/apps/bypy/VIDEO_TSVTS_04_1.VOB' as 'VIDEO_TSVTS_04_1.VOB'
<D> Checking if we already have the copy locally
<D> Same-name local file exists, checking if MD5s match
<D> Same local file already exists, skip downloading
'VIDEO_TSVTS_04_1.VOB' <== '/apps/bypy/VIDEO_TSVTS_04_1.VOB' OK
Not saving Hash Cache since 'dirty' is 'False' and 'force_saving' is 'False'
这两个是在哪里设定?
from bypy.
@leonardoxiao 下载成功了吗?
那两个是文件哈希缓存相关的,这个问题应该关系不大。
from bypy.
续传不成功,直接忽略了。
<D> Same local file already exists, skip downloading
直接下载也不行,这次创建了文件,但大小为零。
from bypy.
这样的啊,我看看。
from bypy.
@leonardoxiao 发现了问题,又改了一下,试试新版?可能要稍微等一下,下载1M才会写文件。
from bypy.
断点续传现在是不支持的,如果中断再下,就会从头开始。
from bypy.
加入了断点续传,可以试一试最新版。
from bypy.
还是有问题,我同步的是一个苹果的操作系统大概5G
python bypy.py syncdown osx osx
Token file: '/home/kylin/.bypy.json'
Hash Cache file: '/home/kylin/.bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = UTF-8
[12:38:49] Exception occurred:
Traceback (most recent call last):
File "bypy.py", line 2400, in main
result = getattr(by, args.command[0])(*uargs)
File "bypy.py", line 2069, in syncdown
subresult = self.__downfile(rpath + '/' + p, os.path.join(localdir, p))
File "bypy.py", line 1554, in __downfile
if ENoError == self.__verify_current_file(self.__remote_json, False):
AttributeError: 'ByPy' object has no attribute '_ByPy__remote_json'
Abort
from bypy.
我git remote update 貌似没有同步到最新的代码,删了重新clone了一份,测试发现不是断点续传而是重新下载,
python bypy.py syncdown osx osx
Token file: '/home/kylin/.bypy.json'
Hash Cache file: '/home/kylin/.bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = UTF-8
[12:47:53] Unable to verify JSON: '{}', as no 'size' entry found
from bypy.
好的,断点续传我看一下。
from bypy.
改正了一下,我测试一下好像可以断点续传了。
from bypy.
我测试了下,貌似可以了,但是会报个错误 [10:30:13] Local file and remote file sizes DON'T match
这个应该是正常的
谢谢了!
from bypy.
嗯,那个错误没啥问题。应该改成info而不是error。
from bypy.
good job
from bypy.
顺手把那个输出从错误改成信息了。
from bypy.
Related Issues (20)
- upload开了会员,依然被限速 HOT 6
- You need to authorize this program before using any PCS functions. HOT 1
- 更新最新版本后,一直出现错误提示 HOT 1
- syncup失败 HOT 4
- syncup前后文件名和文件大小一致,但因md5校验码不同被判定为不同文件 HOT 1
- Questions about Copilot + Open Source Software Hierarchy
- 每次上传要报错一次,不知道有没有影响 HOT 3
- 一直授权不成功,http error, 贴出了bypy -dv info HOT 1
- Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file' HOT 3
- 授权不成功 HOT 1
- Trigger security policy 错误 HOT 1
- 无法获得授权 HOT 1
- 无法调用bypy info命令 HOT 11
- bypy info 绑定失败 HOT 1
- 执行两次一样的上传命令会导致文件被删除 HOT 3
- 放个收款码吧,用着都不好意思了哈哈😂
- 下载到服务器一直等待 HOT 1
- 无法进行授权Token refreshing failed
- 目录问题
- 上传单个文件报错码 31112 HOT 2
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 bypy.