Comments (7)
log太短了,推测不出来问题。Rapidupload应该没有这个问题,你贴的这个错误应该是在文件验证的时候才会有。
from bypy.
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.
哦,原因应该是上传目录时,程序在上传新文件之前,会试图获得远程同名文件的信息,如果远程文件不存在的话百度会返回一个错误信息(file does not exist),就会出现你说的这个情形。
最新的commit 1043290 应该已经解决了这个问题。
如果确认问题已经解决,请帮忙关掉这个issue。谢谢反馈。
from bypy.
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.
唉,不小心弄了个bug进去。刚才试了一下,应该改好了。最新的commit: 0ec1693
from bypy.
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.
这次是无关紧要的__mkdir()产生的错误信息,也弄掉了并check in了,试下最新版吧。
from bypy.
Related Issues (20)
- 进度条 HOT 2
- 单个目录下无法下载超过1000个文件的问题 HOT 8
- 可以下载,但是无法上传
- 你好,请问能开发支持百度云盘企业版吗? HOT 1
- 错误31024 'app id is empty' HOT 2
- syncup or compare 显示文件不一致,但下载下来比较却是一致的 HOT 2
- 请问一下,现在能支持转存别人分享的链接直接保存到我的网盘中么 HOT 1
- 上传故障
- 'error_msg': 'app id is empty', HOT 2
- bypy info 输入授权码后失败 HOT 3
- bypy info 一直授权失败,linux服务器上和windows本地都不行,之前没有使用过,没有进行过授权;并且按照给的建议到百度网站上移除授权,重新授权,试了一下午也没有解决。 HOT 10
- 快速上传(RapidUploaded)经常失败,http error 404, 提示:code 31079, file md5 not found, you should use upload api to upload the whole file HOT 6
- Some problems when downloading and replacing files with the same name HOT 2
- The recommanded processes number? HOT 1
- 响应码200但是无内容 HOT 1
- Option to suppress warning on windows
- 不能通过授权 HOT 3
- 一直等待 HOT 8
- upload有错误,已登录 HOT 4
- upload开了会员,依然被限速 HOT 3
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.