| 
 | 
这个问题解决了,是我的文件夹权限没有放开,但是现在执行 
./bypy.py downdir / 
 
之后出现 
 
*WARNING*: Cannot detect the system encoding, assume it's 'UTF-8' 
Token file: '/root/.bypy.json' 
Hash Cache file: '/root/.bypy.pickle' 
App root path at Baidu Yun '/apps/bypy' 
sys.stdin.encoding = ANSI_X3.4-1968 
sys.stdout.encoding = ANSI_X3.4-1968 
---- 
 
<E> [07:54:26] Error while loading baidu pcs token: 
<E> [07:54:26] Traceback (most recent call last): 
  File "./bypy.py", line 1139, in __load_local_json 
    with open(TokenFilePath, 'rb') as infile: 
IOError: [Errno 2] No such file or directory: u'/root/.bypy.json' 
 
Please visit: 
https://openapi.baidu.com/oauth/ ... EpCsau1oS0MplgMKNBn 
And authorize this app 
Paste the Authorization Code here within 10 minutes. 
Press [Enter] when you are done 
1df0d1ef582e840e95bd52a9f626300e                                                Authorizing, please be patient, it may take upto 60.0 seconds... 
<E> [07:56:01] Maximum number (1) of tries failed. 
I think you are WALLed, trying OpenShift server to auth... 
/opt/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.) 
  InsecureRequestWarning) 
<E> [07:56:16] Fatal Exception. 
Quitting... 
 |   
 
 
 
 |