Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 <type 'exceptions.KeyError'> - u'md5' 是什么错误? #484

Closed
GreenEric opened this issue May 16, 2019 · 10 comments
Closed

请问 <type 'exceptions.KeyError'> - u'md5' 是什么错误? #484

GreenEric opened this issue May 16, 2019 · 10 comments
Labels

Comments

@GreenEric
Copy link

请问这是什么问题? 应该要怎么调整?

eric@eric:~/bin$ bypy -v syncup /home/ericoffice/WORK /WORK2
Loading Hash Cache File '/home/eric/.bypy/bypy.hashcache.json'...
Hash Cache File loaded.
Gathering local directory ...
Done
Gathering remote directory ...
[23:04:03] Exception occurred:
Exception:
<type 'exceptions.KeyError'> - u'md5'
Stack:
File "/home/eric/.local/bin/bypy", line 11, in
sys.exit(main())
File "/home/eric/.local/lib/python2.7/site-packages/bypy/bypy.py", line 3700, in main
perr("Exception occurred:\n{}".format(formatex(ex)))
File "/home/eric/.local/lib/python2.7/site-packages/bypy/util.py", line 73, in formatex
type(ex), ex, ''.join(traceback.format_stack()))

@bg4uvr
Copy link

bg4uvr commented May 16, 2019

这两天一直是这个问题,不能用了。而且在i386下和arm下问题都一样。不知道到底是百度那边有什么变化,还是软件的问题。请作者或了解的朋友指导一下,感谢🙏

@higoodboys
Copy link

现在我也是这个错误,希望作者有时间看下,谢谢

@bg4uvr
Copy link

bg4uvr commented May 18, 2019

Full URL: https://pcs.baidu.com/rest/2.0/pcs/file?access_token= ****
HTTP Status Code: 200
200 OK, processing action
Request OK
[09:38:04] Exception occurred:
Exception:
<type 'exceptions.KeyError'> - u'md5'
Stack:
File "/usr/local/bin/bypy", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/bypy/bypy.py", line 3700, in main
perr("Exception occurred:\n{}".format(formatex(ex)))
File "/usr/local/lib/python2.7/dist-packages/bypy/util.py", line 73, in formatex
type(ex), ex, ''.join(traceback.format_stack()))

Abort
Skip saving Hash Cache since it has not been updated.

@houtianze
Copy link
Owner

houtianze commented May 18, 2019

谢谢反馈。

@higoodboys
Copy link

higoodboys commented May 18, 2019 via email

@houtianze
Copy link
Owner

@higoodboys 那听起来像是break了,我看看。

@higoodboys
Copy link

higoodboys commented May 18, 2019 via email

@bg4uvr
Copy link

bg4uvr commented May 18, 2019

经测试,python3下问题相同。

@houtianze
Copy link
Owner

找到原因了,已经上传了1.6.5,更新一下应该就可以解决问题了:
pip install bypy

原因:现在百度api返回的目录列表有时候会没有md5这个属性,原来代码没对这个做检查。

谢谢反馈和等待。

@houtianze houtianze added the bug label May 18, 2019
@bg4uvr
Copy link

bg4uvr commented May 18, 2019

感谢作者无私奉献与快速反馈~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants