GithubHelp home page GithubHelp logo

yufeikang / bcloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xushaohua/bcloud

284.0 284.0 50.0 2.25 MB

百度网盘的linux桌面客户端

License: GNU General Public License v3.0

Python 100.00%

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

8-3发现的BUG

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

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

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

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 这种格式的链接,软件提示说是无法识别链接.

setup.py 应该安装 cssselect 和 pyinotify

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

输入验证码后无反应

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

安装好了,启动报错

** (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

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'}}

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:登录失败,请在弹出的窗口操作,或重新登录'))

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/

下载任务的取消

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

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

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

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

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

   感谢@Yufeikang

_bcloud-gui_20170705214053

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

下载文件失败

下载时下载一部分后出错,,日志
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

测试Elementary OS可用

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

批量删除任务耗时过长

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

运行时报错

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

删除文件

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

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'

登录时提示未知错误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'}}

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

怎么删除

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

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

您好,首先感谢你的付出,这是我第一次在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

运行错误

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

(已解决)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里瞅了瞅,有别人弄好的,就直接安装了

重新获取验证码时打印 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报错

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'

在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一次性安装好所有依赖?

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

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:~$

求助

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

求助 小白

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

The handshake operation timed out

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

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.