Git Product home page Git Product logo

bcloud's Introduction

公告

很遗憾这个项目要和大家说再见了,因为下列原因:

*1.这个项目使用的是百度webAPi,api不稳定经常变动 *2.这个项目的界面构建语言是GTK,跨平台性能差,不易扩展

结束并不代表彻底结束,因为身在墙内,不可避免还不得不依赖百度网盘。最近没时间去调试百度的api,一直使用的是baidupcs的命令行版本,一直很稳定,作者也一直很勤劳的维护。而且baidupcs可以使用多线程加快下载速度。我使用的过程中速度还比较满意。所以,打算新开一个项目,使用electrion和react来构建GUI界面,使用baidupcs作为核心引擎构建一个全新的,跨平台的百度网盘自由版。

所谓重生吧,因为我的个人时间有限。希望有兴趣的朋友可以和我一起加入到这个项目一起开发,一起学习。另外,如果有朋友比较擅长做UI或者交互,可以贡献力量的欢迎👏加入。希望我们能做出漂亮又实用的工具

关于

bcloud 是百度网盘的Linux桌面客户端.

原项目地址,大神@Liulang很久没有维护了。最近迁移到linux平台发现了这个好工具,还好自己学过Python,稍微修改了一下,现在可以使用了。如果没有大的变故,我来维护这个项目,方便国内的Linux党。如有问题,欢迎issues

已经支持的Linux系统/版本:

  • ArchLinux
  • Debian sid
  • Debian testing
  • Debian stable
  • Fedora 20
  • Fedora 21
  • Gentoo
  • OpenSuse 13
  • Ubuntu 14.04
  • Ubuntu 13.10
  • Ubuntu 16.04
  • Linux Mint 17

类似项目

bypy 终端里使用的百度网盘客户端, 它 使用了百度网盘PCS接口.

如果需要, 也可以直接调用bcloud提供的百度网盘接口, 使用bcloud/auth.py得到百度 服务器的连接授权, 然后使用bcloud/pcs.py调用相应的网盘接口.

安装

需要Python3支持 安装执行:

python3 setup.py install

卸载执行:

python setup.py install --record files.txt #记录安装后文件的路径

cat files.txt | xargs rm -rf  #删除这些文件

最近有不少用户反馈安装后无法启动,原因大多数是因为缺少某些依赖的模块。我已经添加了部分依赖到requiements.txt文件中。如还有报错请大家issues的时候附上log

Q&A

1.为什么bcloud不支持本地与远程服务器同步?

因为百度网盘没有公开它的同步算法. 参考这个issue

2.能不能支持其它网盘?

我时间和精力都非常有限, 单单开发bcloud就占用了我一个多月的业余时间. 而且 本来工作之外的时间就非常少, 还有很多其它事情要处理. 所以如果你报告了bug或者 反馈了问题, 没有及时收到回复, 请多等待一下, 我会安排时间处理这些问题的.

3.如何设置keyring? ArchLinux 用户最有可能遇到这个问题. 因为在debian/ubuntu/mint等系统里面, keyring 在安装后会自动被配置好, 而在arch中, 这些都需要用户手动设定, 很麻烦.

arch的wiki里面有完整的介绍, 请arch用户到这里 读完整篇文章, 然后针对自己的桌面环境以及自己的需要, 选择相应的配置方式.

还有一篇类似的文档, 是gnomekeyring官方的, 有也相应介绍

有位朋友写了一篇文章, 大致总结了一下他解决gnome-keyring问题的方法, 如果arch用户还有什么细节上的问题, 可以 直接@Firef0x, 和他联系.

4.为什么不同的发行版里面, bcloud的界面不一样? bcloud目前已经开始调用gtk3.12中的组件, 这样与新版gnome-shell的样式更统一; 但旧的发行版, 比如debian 7等, 里面的gtk3的版本很老, 只能继续使用旧的界面了. 它们在功能上并无差别.

5.有命令行界面吗? bcloud只提供了GUI界面. 但是, 可以很方便的基于bcloud进行扩展, bcloud实现了百度网 盘的大部分接口, 其中bcloud/auth.py用于授权登录, bcloud/pcs.py是网盘接口.

比如, 这个issue里面, 通过调用bcloud, 来遍历网盘, 得到文件目录结构.

6.如何设置代理? bcloud支持桌面的全局代理设置, 比如在Gnome的网络设置里面可以加入代理. 也可以在终端里设置代理, 比如 export http_proxy='http://127.0.0.1:8086' 来设定 http代理, export https_proxy='http://127.0.0.1:8086' 来设定https代理, 设定完 之后, 在这个终端里运行 $ bcloud-gui, 这时, bcloud就会使用刚刚设定的网络代理.

要注意的是, bcloud的部分网络连接要求使用https, 这就要求你设定https代理后, 同时 导入相应的证书, 不然会出现错误.

7.bcloud播放在线视频时如何更流畅?

用视频播放器播放百度网盘视频时, 百度会识别UA字段. 这位朋友写了mpv的修改方法, 可以参考一下.

截屏

bcloud-dark bcloud-light

版权

Copyright (C) 2014 LiuLang

基于GNU通用许可协议第三版发布, 详细的许可信息请参考 LICENSE

bcloud's People

Contributors

alex8224 avatar bingosxs avatar czbix avatar endle avatar gshmu avatar horasal avatar hosiet avatar iridiumcao avatar libertas avatar mofumoca avatar slawdan avatar wkcn avatar wuxinyumrx avatar wzhd avatar xbbsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bcloud's Issues

Import AppIndicator3 时应当指定版本号

运行警告信息:

% bcloud-gui
/usr/lib/python3/dist-packages/bcloud/App.py:45: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3 as AppIndicator

(已解决)OS :x86_64 Linux 4.10.13-1-ARCH 安装完打开失败

log信息

Traceback (most recent call last):
  File "/usr/bin/bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/usr/lib/python3.6/site-packages/bcloud/App.py", line 11, in <module>
    import gi
  File "/usr/lib/python3.6/site-packages/gi/__init__.py", line 39
    print url
            ^
SyntaxError: Missing parentheses in call to 'print'

在aur里瞅了瞅,有别人弄好的,就直接安装了

求助 小白

如何安装呢,下载安装包安装失败,运行python3 setup.py install也失败。

8-3发现的BUG

1、下载部分被限速,或者说,单文件下载速度被限制了,不稳定
2、登录部分,当需要验证码的时候,经常无显示验证码出来,直接在GUI那报错,有时候能弹出验证码,但不论是英文还是中文都会显示验证码错误
3、当帐号不需要验证码的时候,能正常使用,但时不时会闪退,log说核心存储转移,有时下载的文件一直显示错误,log 403

希望大神能继续维护,我是java的,现在也在研究python,希望可以为IT继续努力

运行错误

kali rolling 运行错误
Traceback (most recent call last):
File "/usr/local/bin/bcloud-gui", line 11, in
from bcloud.App import App
File "/usr/local/lib/python3.5/dist-packages/bcloud/App.py", line 21, in
gi.require_version('Notify', '0.7')
File "/usr/lib/python3/dist-packages/gi/init.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Notify not available

安装好了,启动报错

** (bcloud-gui:20811): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-KSMm7djLmn: 拒绝连接
Traceback (most recent call last):
File "/usr/local/bin/bcloud-gui", line 11, in
from bcloud.App import App
File "/usr/local/lib/python3.5/dist-packages/bcloud/App.py", line 50, in
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/init.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

下载文件失败

下载时下载一部分后出错,,日志
2017-04-16 03:33:57,667 DEBUG DownloadBatch.get_req: 0, 33280583
2017-04-16 03:33:57,670 DEBUG DownloadBatch.get_req: 33280584, 66561167
2017-04-16 03:33:57,674 DEBUG DownloadBatch.get_req: 66561168, 99841751
2017-04-16 03:33:57,678 DEBUG DownloadBatch.get_req: 99841752, 133122335
2017-04-16 03:33:57,679 DEBUG DownloadBatch.get_req: 133122336, 166402919
2017-04-16 03:33:57,687 DEBUG DownloadBatch.get_req: 166402920, 199683503
2017-04-16 03:33:57,687 DEBUG DownloadBatch.get_req: 199683504, 232964087
2017-04-16 03:33:57,690 DEBUG DownloadBatch.get_req: 232964088, 266244672

2017-04-16 03:34:13,521 ERROR DownloadBatch, block is empty: 199683504, 199683504, 232964087, 0
2017-04-16 03:34:13,522 ERROR DownloadBatch, block is empty: 133122336, 133122336, 166402919, 0
2017-04-16 03:34:13,534 ERROR DownloadBatch, block is empty: 66561168, 66561168, 99841751, 0

您好,首先感谢你的付出,这是我第一次在git上给人回复,哈哈

这里是我遇到的一个问题:
Ubuntu16.04 64位

你说的Python3包我都装过了,点击图标无法启动
sudo bcloud-gui启动,出现如下错误:

2017-07-28 19:33:31,347 SigninDialog.py :97 ERROR SigninVcode.refresh_vcode: None, Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/bcloud/gutil.py", line 115, in do_call
result = func(*args)
File "/usr/local/lib/python3.5/dist-packages/bcloud/auth.py", line 170, in refresh_signin_vcode
'&vcodetype=', encoder.encode_uri(vcodetype),
TypeError: sequence item 3: expected str instance, dict found

Debian9.0安装后无法启动

操作系统:Debian9.0
桌面:Cinnamon
问题:安装后在菜单里点击bcloud无法启动

在终端执行(加sudo也一样):
$ bcloud-gui

Traceback (most recent call last):
  File "/usr/local/bin/bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/usr/local/lib/python3.5/dist-packages/bcloud/App.py", line 30, in <module>
    from bcloud import gutil
  File "/usr/local/lib/python3.5/dist-packages/bcloud/gutil.py", line 20, in <module>
    from bcloud import pcs
  File "/usr/local/lib/python3.5/dist-packages/bcloud/pcs.py", line 13, in <module>
    from lxml import html
ImportError: No module named 'lxml'

ubuntu kylin 16.04.3无法登录

~$ bcloud-gui
2017-08-26 15:04:24,681 auth.py :176 DEBUG refresh vcode url: https://passport.baidu.com/v2/?reggetcodestr&token=1de377783963069f47dee2922b3ccc55&tpl=pp&apiver=v3&tt=1503731064681&fr=ligin&vcodetype=61c1sMP1LHr0I%20Q%20dJfNsybEW5CAmvDvwecokk8p2iIzpK7mrky0oj4jkYNJfNyRkFNEkC6aXBIVKSOC0WWTJMRGUCuc4hU8tuUe
2017-08-26 15:04:24,917 auth.py :181 DEBUG refresh vcode: {"errInfo":{ "no": "0" }, "data": { "verifyStr" : "jxGda06c153deb8e25202f6144c43016f7e0fc59807f2017bc9", "verifySign" : "6a02f2bbd6" }}
2017-08-26 15:04:24,919 SigninDialog.py :99 DEBUG refresh vcode: {'errInfo': {'no': '0'}, 'data': {'verifySign': '6a02f2bbd6', 'verifyStr': 'jxGda06c153deb8e25202f6144c43016f7e0fc59807f2017bc9'}}
2017-08-26 15:04:29,988 SigninDialog.py :345 ERROR SigninDialog.on_post_login: (120021, {'ltoken': 'edc56e7f6ff2d8a67691f90af5d3e608', 'err_no': 120021, 'loginproxy': 'https://passport.baidu.com/v2/?loginproxy&u=http%3A%2F%2Fwww.baidu.com%2F&tpl=&ltoken=edc56e7f6ff2d8a67691f90af5d3e608&lstr=669cxX0Yd%2FejZ0ubK78LqScT%2F6wwCLjXYOFQ5SNRaeiLjmXUIZw%2FMMy94jcdJwsI2A1d9MZkdivczbj4Org', 'u': 'http://www.baidu.com/', 'callback': 'parent.bd__pcbs__28g1kg', 'userName': 'sxdhaoren', 'codeString': 'jxG0007c153deeac188021614714301707f10b443070b047e10', 'authtoken': 'ff515vd33JbsGKCVAF9oG8LHbD9WctegrvLFGzyrOvQdj1wMLi8yUo5Tvk5Nuh3nBQ3skqRaRazLCoeIV5g9N07kETXpNWqjVL3gvn7N+QIkCQ4HqO3177hmVCIkdMYrExDxnRzTOahlZEc3EY5IWdFAdMNFhMaA0VnizH63f9G8cVg0UbpW0Q4GIm6cvn0hp+3y+YdNi3CHuYPPI3XpZHim7S7M7q/ApCLi/kinq2BkU/oM3gQU2TwnsjTjN3SrEj5t1McWSQmlS2NNG48GgVzN3axGTRtF2vzhdqkHGrcydSYVGE+YPtRKXuD41HlbidCNyntqnwCdaVlMTnz/hR8DkilfYo8', 'realnameverifyemail': '0', 'lstr': '669cxX0Yd/ejZ0ubK78LqScT/6wwCLjXYOFQ5SNRaeiLjmXUIZw/MMy94jcdJwsI2A1d9MZkdivczbj4Org', 'secstate': 'PA000', 'vcodetype': 'f033o79yGozs0t3hQUPRyx2vsb9v\/v\/DnKYBrZ34Hvuh9tEPg vXPbpN3RqmV\/Knq2R9oTsliEr6c6ZF7xNH53Rpq2UPheucGmaP'}), None
2017-08-26 15:04:57,768 auth.py :176 DEBUG refresh vcode url: https://passport.baidu.com/v2/?reggetcodestr&token=5ea889b44c8230341317e7c341a55bda&tpl=pp&apiver=v3&tt=1503731097768&fr=ligin&vcodetype=6a82RyfrH7Fi7EF%5C/cFHhFcOWXb2cbpg0jQI9C2NNUohkiX31Uc%207X5md4LYzyfuwMSqiRK8ZGjtslHMzPyOsTnpfv0s9%203dCXTPW
2017-08-26 15:04:57,957 auth.py :181 DEBUG refresh vcode: {"errInfo":{ "no": "0" }, "data": { "verifyStr" : "jxGe507e253de6cc1c002b514f49801777b116e4406dc0131c2", "verifySign" : "135b7e05c8" }}
2017-08-26 15:04:57,957 SigninDialog.py :99 DEBUG refresh vcode: {'errInfo': {'no': '0'}, 'data': {'verifySign': '135b7e05c8', 'verifyStr': 'jxGe507e253de6cc1c002b514f49801777b116e4406dc0131c2'}}
2017-08-26 15:05:10,732 auth.py :176 DEBUG refresh vcode url: https://passport.baidu.com/v2/?reggetcodestr&token=856af01ee9b9a3ed3cdc2352c476842b&tpl=pp&apiver=v3&tt=1503731110732&fr=ligin&vcodetype=2f5d9tX2Fv6XmOGLYAHHMwkOgMBpx7WM75wMc%20VC%5C/H6NaSI%5C/44xjjo0yrE5D2BDomwSOmDrFrge%20gH0Vt7lhZNyyMGxCBPqcrCYy
2017-08-26 15:05:10,926 auth.py :181 DEBUG refresh vcode: {"errInfo":{ "no": "0" }, "data": { "verifyStr" : "jxGd807e253de72c19e02a8145798017a7b12d8440612013188", "verifySign" : "5073063f2a" }}
2017-08-26 15:05:10,927 SigninDialog.py :99 DEBUG refresh vcode: {'errInfo': {'no': '0'}, 'data': {'verifySign': '5073063f2a', 'verifyStr': 'jxGd807e253de72c19e02a8145798017a7b12d8440612013188'}}

kali无法启动

报错
Gkr-Message: couldn't connect to dbus session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Please enter password for encrypted keyring:
Traceback (most recent call last):
File "/usr/local/bin/bcloud-gui", line 11, in
from bcloud.App import App
File "/usr/local/lib/python3.5/dist-packages/bcloud/App.py", line 50, in
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/init.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

请求加大(或者去除)线程数限制。

请求加大(或者去除)线程数限制。

   在 “首选项”--“下载”--“每个下载任务”中最多只有10线程,加大线程数限制;

   我用axel尝试单个文件32线程下载百度云文件没有任何问题,64线程会有一些连接超时。

   感谢@Yufeikang

_bcloud-gui_20170705214053

The handshake operation timed out

下载途中出现 urllib.error.URLError: 错误
之后点击继续下载按钮能够继续下载,请问这个是软件问题还是缺少安装包?

重新获取验证码时打印 traceback

2017-05-26 22:19:30,476 gutil.py :118 ERROR Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/bcloud/gutil.py", line 115, in do_call
    result = func(*args)
  File "/usr/lib/python3/dist-packages/bcloud/auth.py", line 166, in refresh_signin_vcode
    '&token=', tokens['token'],
TypeError: string indices must be integers

2017-05-26 22:19:30,487 SigninDialog.py :97 ERROR SigninVcode.refresh_vcode: None, Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/bcloud/gutil.py", line 115, in do_call
    result = func(*args)
  File "/usr/lib/python3/dist-packages/bcloud/auth.py", line 166, in refresh_signin_vcode
    '&token=', tokens['token'],
TypeError: string indices must be integers
.

bcloud不能登录

https://bbs.deepin.org/forum.php?mod=viewthread&tid=141734&extra=

deepin@deepin:~$ bcloud-gui

** (bcloud-gui:5194): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(bcloud-gui:5194): Gtk-WARNING **: (/build/gtk+3.0-NmdvYo/gtk+3.0-3.22.11/./gtk/gtkicontheme.c:2184):gtk_icon_theme_choose_icon: runtime check failed: ((flags & GTK_ICON_LOOKUP_GENERIC_FALLBACK) == 0)
2017-06-29 08:55:09,803 gutil.py :118 ERROR Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/bcloud/gutil.py", line 115, in do_call
result = func(*args)
File "/usr/lib/python3/dist-packages/bcloud/auth.py", line 170, in refresh_signin_vcode
'&vcodetype=', encoder.encode_uri(vcodetype),
TypeError: sequence item 3: expected str instance, dict found

2017-06-29 08:55:09,804 SigninDialog.py :97 ERROR SigninVcode.refresh_vcode: None, Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/bcloud/gutil.py", line 115, in do_call
result = func(*args)
File "/usr/lib/python3/dist-packages/bcloud/auth.py", line 170, in refresh_signin_vcode
'&vcodetype=', encoder.encode_uri(vcodetype),
TypeError: sequence item 3: expected str instance, dict found
.
2017-06-29 08:55:26,187 SigninDialog.py :365 ERROR SigninDialog.on_post_login: (400037, None), None
deepin@deepin:~$

unknown error, please try again / ImportError: no module named 'Crypto'

安装之后无法登录,登录GUI提示:

unknown error, please try again

从shell启动提示如下错误:

2017-06-15 11:21:49,970 util.py :23 ERROR Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/bcloud/util.py", line 20, in <module>
    from Crypto.PublicKey import RSA
ImportError: No module named 'Crypto'

2017-06-15 11:21:49,971 gutil.py :34 WARNING Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/bcloud/gutil.py", line 24, in <module>
    import keyring
ImportError: No module named 'keyring'

2017-06-15 11:22:03,878 SigninDialog.py :365 ERROR SigninDialog.on_post_login: (9, None), None

批量删除任务耗时过长

我发现上传/下载页面中,批量删除任务操作是逐条进行删除的。
当一次性删除大量文件时,程序会出现无法响应的情况。
我觉得可以把删除改为“批量删除的方式”,或者另外开一个线程删除任务。

现在是不是不支持迅雷协议了

首先非常感谢有你这样的大神能维护linux下面的软件,造福我们linux党.

thunder://xxxx 这种格式的链接,软件提示说是无法识别链接.

ERROR SigninDialog.on_post_login

不知这是什么问题啊,terminal打印如下:
2017-07-14 22:42:09,153 SigninDialog.py :365 ERROR SigninDialog.on_post_login: (7, {'resetpwd': '4', 'userName': '***', 'realnameverifyemail': '0', 'u': 'http://www.baidu.com/', 'callback': 'parent.bd__pcbs__28g1kg', 'err_no': 7, 'codeString': 'jxG0807e***d1d3c17d026014d29801757b96114406cd0431ba', 'vcodetype': 'a514WC0VIUjBGi4\\/gyTeyT9i4Qd0U8Q6K3OxGbMGgKtrD2p8q8SA0o****mVBUGmeTKQ72FVM8RXgMCdGfmbMNG1kIRnLXqDkavW'}), None

下载任务的取消

选择了一个大文件的下载,反悔了想取消,怎么都没找到在哪里取消,强迫症只好手动改tasks.sqlite......
想问一下这个取消选项是界面上本来就没有吗?还是说我眼瞎了......

怎么删除

您好,我安装了您开发的软件,但是不能打开.所以想把删除了,却不知道怎么删除.您能告诉我吗??

在fedora 25的virtualenv中安装,启动时报错

环境:

$ uname -a
Linux sam-pc.local 4.11.3-200.fc25.x86_64 #1 SMP Thu May 25 19:03:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ virtualenv --version
15.1.0
$ $ python -V
Python 3.5.3
$ pip list installed
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
bcloud (3.9.0)
certifi (2017.4.17)
chardet (3.0.4)
gi (1.2)
idna (2.5)
pip (9.0.1)
requests (2.18.1)
setuptools (36.0.1)
urllib3 (1.21.1)
wheel (0.29.0)

重现步骤:

$ virtualenv -p python3 .venv
$ source .venv/bin/activate
(.venv) $ python setup.py install
(.venv) $ ./bcloud-gui
Traceback (most recent call last):
  File "./bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/home/sam/opt/bcloud/bcloud/App.py", line 10, in <module>
    import gi
ImportError: No module named 'gi'
(.venv) $ pip install gi
(.venv) $ ./bcloud-gui 
Traceback (most recent call last):
  File "./bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/home/sam/opt/bcloud/bcloud/App.py", line 10, in <module>
    import gi
  File "/home/sam/opt/bcloud/.venv/lib/python3.5/site-packages/gi/__init__.py", line 39
    print url
            ^
SyntaxError: Missing parentheses in call to 'print'

这个问题是gi包不支持python3导致,手工修改报错代码为print(url),41行也做相似修改。

(.venv) [sam@sam-pc bcloud]$ ./bcloud-gui 
Traceback (most recent call last):
  File "./bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/home/sam/opt/bcloud/bcloud/App.py", line 12, in <module>
    gi.require_version('Gdk', '3.0')
AttributeError: module 'gi' has no attribute 'require_version'

检查了python2.7下的gi,也是没有require_version方法的。
能不能在代码中提供一个requirements.txt,可以通过pip install -r requirements.txt一次性安装好所有依赖?

NET:登录失败,请在弹出的窗口操作,或重新登录

百度最近改版,似乎没有登录手机的人,每次登录都会要求需透过发送到邮箱的验证码才能进行登录。。
现在透过bcloud登录会出现:

NET:登录失败,请在弹出的窗口操作,或重新登录

看代码似乎没有支援邮箱验证,未来是否会加入呢?

SigninDialog.py :345 ERROR SigninDialog.on_post_login: (120021, {'callback': 'parent.bd__pcbs__28g1kg'

bcloud/SigninDialog.py

                 elif errno == 120021:
                      logger.error('SigninDialog.on_post_login: %s, %s' %
                                   (info, error))
                      self.signin_failed(
 -                        _('Does not support SMS/Email verification!'))
 +                        _('NET:登录失败,请在弹出的窗口操作,或重新登录'))

setup.py 应该安装 cssselect 和 pyinotify

setup.py 运行完毕之后我运行 bcloud-gui 时发现需要另外pip install 两个 module 叫 cssselect 和 pyinotify。把这两个module包括在安装程序里的话新手的安装体验会更流畅。我用Linux Mint 18 KDE。

登录时提示未知错误Unknown Erro while login

无论是中文还是英文验证码,输入后都会提示未知错误,调试信息如下:
第一次输入:
2017-06-02 12:14:35,203 ERROR SigninDialog.on_post_login: (9, None), None
试着刷新:
2017-06-02 12:14:47,592 DEBUG refresh vcode url: https://passport.baidu.com/v2/?reggetcodestr&token=1fcebc17d6bcafcb0ef0800ccc854d17&tpl=pp&apiver=v3&tt=1496376887591&fr=ligin&vcodetype=4be86k2jdGA3bllJFtgyObqH9du7pwxMWfb6afbrz2rJN/idZcsjZCOqANY20UQYjD/MRNKYVcQwVXVtYOyZCadBPh1QwROTL4du

2017-06-02 12:14:47,874 DEBUG refresh vcode: {"errInfo":{ "no": "0" }, "data": { "verifyStr" : "njG2006f532c4efe2b5028914705b01d98934edde06320114ea", "verifySign" : "701c08d82e" }}

2017-06-02 12:14:47,874 DEBUG refresh vcode: {'errInfo': {'no': '0'}, 'data': {'verifySign': '701c08d82e', 'verifyStr': 'njG2006f532c4efe2b5028914705b01d98934edde06320114ea'}}

2017-06-02 12:14:51,300 DEBUG refresh vcode url: https://passport.baidu.com/v2/?reggetcodestr&token=1fcebc17d6bcafcb0ef0800ccc854d17&tpl=pp&apiver=v3&tt=1496376891299&fr=ligin&vcodetype=4be86k2jdGA3bllJFtgyObqH9du7pwxMWfb6afbrz2rJN/idZcsjZCOqANY20UQYjD/MRNKYVcQwVXVtYOyZCadBPh1QwROTL4du

2017-06-02 12:14:51,605 DEBUG refresh vcode: {"errInfo":{ "no": "0" }, "data": { "verifyStr" : "njG3006e232c4cdde20026314f9de01da133556a60627010023", "verifySign" : "892651d979" }}

2017-06-02 12:14:51,606 DEBUG refresh vcode: {'errInfo': {'no': '0'}, 'data': {'verifySign': '892651d979', 'verifyStr': 'njG3006e232c4cdde20026314f9de01da133556a60627010023'}}

输入验证码后错误提示同第一次。

求助

不知道为什么,我登录的时候总是提示未知错误,我用的系统是Ubuntu16.04.2LTS,望解答

测试Elementary OS可用

感谢大神,系统是Elementary OS 0.4.1 loki, 亲测可用,不妨把这个系统加入到能使用的系统列表中去
2017-06-19 22 06 13

运行bcloud报错

Traceback (most recent call last): File "/usr/local/bin/bcloud-gui", line 11, in from bcloud.App import App File "/usr/local/lib/python3.6/site-packages/bcloud/App.py", line 10, in import gi ModuleNotFoundError: No module named 'gi'

输入验证码后无反应

输入验证码,正确(错误会显示错误),然后获取bdstoken 接着登录按钮变成刚启动的状态,没有任何其他动静

删除文件

您好,我安装了您开发的软件,但是不能打开.所以想把删除了,却不知道怎么删除.您能告诉我吗??

Uknown error, please try again

系统环境

  • Arch Linux
  • python3(default)
  • pip3(default)

Screenshot

image

Log

** (bcloud-gui:4102): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-JdCm9EORcT: Connection refused
2017-05-15 09:07:31,346 util.py :23 ERROR Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/bcloud/util.py", line 20, in <module>
    from Crypto.PublicKey import RSA
ModuleNotFoundError: No module named 'Crypto'

2017-05-15 09:07:32,766 App.py :47 DEBUG Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 879, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/bcloud/App.py", line 45, in <module>
    from gi.repository import AppIndicator3 as AppIndicator
  File "/usr/lib/python3.6/site-packages/gi/importer.py", line 127, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name AppIndicator3, introspection typelib not found


(bcloud-gui:4102): Gtk-WARNING **: (gtkicontheme.c:2184):gtk_icon_theme_choose_icon: runtime check failed: ((flags & GTK_ICON_LOOKUP_GENERIC_FALLBACK) == 0)

安装依赖

其实我已经安装过了

sudo pip install Crypto
[sudo] password for gabriel: 
Requirement already satisfied: Crypto in /usr/lib/python3.6/site-packages
Requirement already satisfied: shellescape in /usr/lib/python3.6/site-packages (from Crypto)
Requirement already satisfied: Naked in /usr/lib/python3.6/site-packages (from Crypto)
Requirement already satisfied: pyyaml in /usr/lib/python3.6/site-packages (from Naked->Crypto)
Requirement already satisfied: requests in /usr/lib/python3.6/site-packages (from Naked->Crypto)

可能的类似Issue: #5

运行时报错

manjaro17.0.2 运行时报错
Traceback (most recent call last):
File "./bcloud-gui", line 11, in
from bcloud.App import App
File "/home/liang/下载/bcloud-master/bcloud/App.py", line 50, in
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3.6/site-packages/gi/init.py", line 118, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

bcloud-gui中要导入的html模块装不上

之前运行挺好的,可能不知道装错了什么,打不开了,终端里运行bcloud-gui,显示没html,但是我用pip3 install html装不上这个,一直显示AttributeError: 'str' object has no attribute 'decode' 。有什么解决办法吗?

$ bcloud-gui 
Traceback (most recent call last):
  File "/usr/bin/bcloud-gui", line 11, in <module>
    from bcloud.App import App
  File "/usr/lib/python3.6/site-packages/bcloud/App.py", line 30, in <module>
    from bcloud import gutil
  File "/usr/lib/python3.6/site-packages/bcloud/gutil.py", line 20, in <module>
    from bcloud import pcs
  File "/usr/lib/python3.6/site-packages/bcloud/pcs.py", line 13, in <module>
    from lxml import html
ImportError: cannot import name 'html'
# pip3 install html
Collecting html                      
  Using cached html-1.16.tar.gz      
    Complete output from command python setup.py egg_info:                 
    Traceback (most recent call last):                                     
      File "<string>", line 1, in <module>                                 
      File "/tmp/pip-build-vdo60zix/html/setup.py", line 12, in <module>   
        long_description = __doc__.decode('utf8'),                         
    AttributeError: 'str' object has no attribute 'decode'                 
                                     
    ----------------------------------------                               
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vdo60zix/html/

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.