找回密码
 立即注册

QQ登录

只需一步,快速开始

铁威马网络网络存储

[求助大神] 安装百度网盘PYTHON客户端出错

[复制链接]
   大神的帖子http://www.nasyun.com/forum.php? ... dateline&page=3

中安装到客户端这一步:

使用步骤(本想用另一个MBL安装一次截图的,结果卡在安装Request库上了,还在找原因,暂时只有文字教程):1.用putty切换到上述文件的目录,首次执行任意命令,会出现绑定百度盘的网址,
如:
  • ./bypy.py downdir /

[color=rgb(49, 132, 219) !important]复制代码

然后在putty界面出现如下文本:
Please visit:
https://openapi.baidu.com/oauth/ ... fxjyvoaH4vbuY2sY1vL
And authorize this app





可是我运行代码 就出现-bash: ./bypy.py: Permission denied
这是为什么
使用道具 举报 回复
仔细看教程  安装库 不是那个命令
使用道具 举报 回复 支持 反对
这个问题解决了,是我的文件夹权限没有放开,但是现在执行
./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...
使用道具 举报 回复 支持 反对
是不是认证服务器出现问题了?
我没装GAOGENT
使用道具 举报 回复 支持 反对
授权已经通过,
但是下载到本地的时候显示:
/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)
使用道具 举报 回复 支持 反对
beingbeyond 发表于 2014-9-10 19:12
这个问题解决了,是我的文件夹权限没有放开,但是现在执行
./bypy.py downdir /

这里报错 是要修改UTF-8的 不然 不能同步包含中文的文件和目录 仔细看教程 有提及
使用道具 举报 回复 支持 反对
beingbeyond 发表于 2014-9-12 20:12
授权已经通过,
但是下载到本地的时候显示:
/opt/local/lib/python2.7/site-packages/requests/packages ...

我也出现这样的错误,但是能下载 只是老重试

/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> [19:57:01] Waiting 10 seconds before retrying...
<E> [19:57:11] Request Try #2 / 5
[=___________________] 6% (20.0MB/303.83MB) ETA: 34m47s (139KB/s, 2m27s gone) <E> [19:58:54] Waiting 10 seconds before retrying...
<E> [19:59:04] Request Try #2 / 5
使用道具 举报 回复 支持 反对
aria2 百度脚本又可以用了,比这个方便多了。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回列表 搜索 官方QQ群