Git Product home page Git Product logo

Comments (7)

houtianze avatar houtianze commented on July 26, 2024

log太短了,推测不出来问题。Rapidupload应该没有这个问题,你贴的这个错误应该是在文件验证的时候才会有。

from bypy.

scinart avatar scinart commented on July 26, 2024
Token file: '/home/scinart/.bypy.json'
Hash Cache file: '/home/scinart/.bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = None
Verbose level = 1
Debug = 0
----

Loading Hash Cache File '/home/scinart/.bypy.pickle'...
Hash Cache File loaded.
path, ctime, mtime, fs_id
/apps/bypy/mnt, 1401526374, 1401526374, 111299459347394
<I> [16:52:55] file does not exist
<E> [16:52:55] Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file'
None

<E> [16:52:55] Function: __get_file_info_act
<E> [16:52:55] Website parameters: {u'path': u"/apps/bypy/mnt/FLAC", u'order': u'asc', u'method': u'list', u'by': u'name'}
RapidUpload: '/mnt/FLAC/cover.jpg' =R=> '/apps/bypy/mnt/FLAC/cover.jpg' OK.
<I> [16:52:59] file does not exist
<E> [16:52:59] Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file'
None

<E> [16:52:59] Function: __get_file_info_act
<E> [16:52:59] Website parameters: {u'path': u"/apps/bypy/mnt/FLAC/Disc 1", u'order': u'asc', u'method': u'list', u'by': u'name'}
RapidUpload: '/mnt/FLAC/Disc 1/01.flac' =R=> '/apps/bypy/mnt/FLAC/Disc 1/01.flac' OK.
RapidUpload: '/mnt/FLAC/Disc 1/02.flac' =R=> '/apps/bypy/mnt/FLAC/Disc 1/02.flac' OK.
'/mnt/FLAC/Disc 1/Sountrack.log' ==> '/apps/bypy/mnt/FLAC/Disc 1/Sountrack.log' OK.
<I> [16:54:10] file does not exist
<E> [16:54:10] Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file'
None

<E> [16:54:10] Function: __get_file_info_act
<E> [16:54:10] Website parameters: {u'path': u"/apps/bypy/mnt/FLAC/Disc 2", u'order': u'asc', u'method': u'list', u'by': u'name'}
RapidUpload: '/mnt/FLAC/Disc 2/01.flac' =R=> '/apps/bypy/mnt/FLAC/Disc 2/01.flac' OK.
RapidUpload: '/mnt/FLAC/Disc 2/02.flac' =R=> '/apps/bypy/mnt/FLAC/Disc 2/02.flac' OK.
'/mnt/FLAC/Disc 2/Mnt.log' ==> '/apps/bypy/mnt/FLAC/Disc 2/Mnt.log' OK.
Saving Hash Cache...
Hash Cache saved.

这是一次上传的log,这是简化版本,但我认为保留的所有必要的信息。
路径名被我改过,因为原始路径名太长了。所以第13行出现的数字可能不准确。
从log可以看出每次进入一个文件夹时就会产生一次错误。
ps: 原始路径名只包含[A-Za-z0-9()'],即,字母数字小括号和单引号
希望houtianze复现这个bug.

from bypy.

houtianze avatar houtianze commented on July 26, 2024

哦,原因应该是上传目录时,程序在上传新文件之前,会试图获得远程同名文件的信息,如果远程文件不存在的话百度会返回一个错误信息(file does not exist),就会出现你说的这个情形。
最新的commit 1043290 应该已经解决了这个问题。
如果确认问题已经解决,请帮忙关掉这个issue。谢谢反馈。

from bypy.

scinart avatar scinart commented on July 26, 2024
Token file: '/home/scinart/.bypy.json'
Hash Cache file: '/home/scinart/.bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = None
Verbose level = 1
Debug = 0
----

Loading Hash Cache File '/home/scinart/.bypy.pickle'...
Hash Cache File loaded.
path, ctime, mtime, fs_id
/apps/bypy/mnt/programs, 1401543798, 1401543798, 770741526064974
<E> [21:43:18] Fatal Exception.
Quitting...

Not saving Hash Cache since 'dirty' is 'False' and 'force_saving' is 'False'

更新之后这个版本不能用了。
我不是一个python程序员,我完全帮不上忙。
还有更新之后文件权限变成了100644,不知道作者是出于什么考虑。
个人建议还是换成100755吧。

from bypy.

houtianze avatar houtianze commented on July 26, 2024

唉,不小心弄了个bug进去。刚才试了一下,应该改好了。最新的commit: 0ec1693

from bypy.

scinart avatar scinart commented on July 26, 2024
Token file: '/home/scinart/.bypy.json'
Hash Cache file: '/home/scinart/.bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = None
Verbose level = 1
Debug = 0
----

Loading Hash Cache File '/home/scinart/.bypy.pickle'...
Hash Cache File loaded.
<E> [11:17:54] Error accessing 'https://pcs.baidu.com/rest/2.0/pcs/file'
None

<E> [11:17:54] Function: __mkdir_act
<E> [11:17:54] Website parameters: {u'path': u'/apps/bypy/mnt/pro', u'method': u'mkdir'}
'/mnt/pro/64kb.zip' ==> '/mnt/pro/64kb.zip' OK.

仅在上传第一个文件的时候出了这个错误,其余文件正常。

from bypy.

houtianze avatar houtianze commented on July 26, 2024

这次是无关紧要的__mkdir()产生的错误信息,也弄掉了并check in了,试下最新版吧。

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.