Git Product home page Git Product logo

Comments (19)

houtianze avatar houtianze commented on August 30, 2024

应该是个bug,我去看看,谢谢反馈。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

最近的commit应该解决了这个问题。

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

我也试了一下续传:

<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.

houtianze avatar houtianze commented on August 30, 2024

@leonardoxiao 最新版还有这个问题吗?

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

没有 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.

houtianze avatar houtianze commented on August 30, 2024

@leonardoxiao 下载成功了吗?
那两个是文件哈希缓存相关的,这个问题应该关系不大。

from bypy.

leonardoxiao avatar leonardoxiao commented on August 30, 2024

续传不成功,直接忽略了。

<D> Same local file already exists, skip downloading

直接下载也不行,这次创建了文件,但大小为零。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

这样的啊,我看看。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

@leonardoxiao 发现了问题,又改了一下,试试新版?可能要稍微等一下,下载1M才会写文件。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

断点续传现在是不支持的,如果中断再下,就会从头开始。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

加入了断点续传,可以试一试最新版。

from bypy.

kylinfedora avatar kylinfedora commented on August 30, 2024

还是有问题,我同步的是一个苹果的操作系统大概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.

kylinfedora avatar kylinfedora commented on August 30, 2024

我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.

houtianze avatar houtianze commented on August 30, 2024

好的,断点续传我看一下。

from bypy.

houtianze avatar houtianze commented on August 30, 2024

改正了一下,我测试一下好像可以断点续传了。

from bypy.

kylinfedora avatar kylinfedora commented on August 30, 2024

我测试了下,貌似可以了,但是会报个错误 [10:30:13] Local file and remote file sizes DON'T match
这个应该是正常的
谢谢了!

from bypy.

houtianze avatar houtianze commented on August 30, 2024

嗯,那个错误没啥问题。应该改成info而不是error。

from bypy.

kylinfedora avatar kylinfedora commented on August 30, 2024

good job

from bypy.

houtianze avatar houtianze commented on August 30, 2024

顺手把那个输出从错误改成信息了。

from bypy.

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.