deepin-music-player 百度音乐插件问题
Tofloor
poster avatar
zhangjq
deepin
2013-08-06 06:26
Author
Ubuntu 12.04 deepin-music-player安装完百度音乐插件五角星无论怎么点击都是灰色的
在终端中运行提示:
.local/share/deepin-music-player/plugins/baidumusic/music_browser.py", line 8, in
    from widget.ui import NetworkConnectFailed, LoadingBox
ImportError: cannot import name LoadingBox
WARNING  Unable to enable plugin baidumusic

我不懂编程,请问各位widget.ui模块是什么,该如何解决?
Reply Favorite View the author
All Replies
cxbii
deepin
2013-08-06 06:47
#1
http://www.linuxdeepin.com/forum/23/14674
按照这里安装的应该是没有问题的才对
Reply View the author
zhangjq
deepin
2013-08-06 07:23
#2
我就是安装你说的链接安装的可是按完这后就这样,请问这是什么问题如何解决?
Reply View the author
cxbii
deepin
2013-08-06 07:45
#3
我就是安装你说的链接安装的可是按完这后就这样,请问这是什么问题如何解决?
我觉得是百度音乐插件问题,你用git重新克隆一个看看
Reply View the author
zhangjq
deepin
2013-08-06 07:59
#4
我都试过三遍了,还是不行
Reply View the author
BingoLove
deepin
2013-08-06 09:09
#5
是不是deepin-music-player版本问题,
这个LoadingBox是14天前才加的,你需要更新一下deepin-music-player
Reply View the author
sumary
deepin
2013-08-06 16:01
#6
Reply View the author
zhangjq
deepin
2013-08-07 07:24
#7
可以了,谢谢各位指导
Reply View the author
yiyam
deepin
2013-08-31 08:59
#8
同楼主,我一直没能解决掉,我的是ubuntu13.04,望大大们指导,
Reply View the author
yiyam
deepin
2013-08-31 08:59
#9
同楼主,我一直没能解决掉,我的是ubuntu13.04,望大大们指导,
第一步就通不过,唉
Reply View the author
BingoLove
deepin
2013-08-31 09:30
#10
[quote]同楼主,我一直没能解决掉,我的是ubuntu13.04,望大大们指导,
第一步就通不过,唉[/quote]
你确定你认真看了
http://www.linuxdeepin.com/forum/23/14674??
Reply View the author
love19841009
deepin
2013-10-31 07:57
#11
LinuxDeepin系统安装方法

1. 安装依赖(必须是test源啊, 如果不是看下面的安装方法)
代码: 全选
sudo apt-get install pytho*core git


2. 安装百度音乐插件
代码: 全选
git clone https://github.com/sumary/dmusic-plugin-baidumusic.git
cd dmusic-plugin-baidumusic
cp -r baidumusic ~/.local/share/deepin-music-player/plugins/


其它Linux发行版安装方法
1. 安装编译时的相关依赖包(cython libwebkitgtk-dev python-dev git), 例如:
代码: 全选
sudo apt-get install cython libwebkitgtk-dev git


2. 安装*core
代码: 全选
git clone https://github.com/sumary/*core.git
cd *core
sudo python setup.py install


3. 安装百度音乐插件
代码: 全选
git clone https://github.com/sumary/dmusic-plugin-baidumusic.git
cd dmusic-plugin-baidumusic
cp -r baidumusic ~/.local/share/deepin-music-player/plugins/



最后运行深度音乐, 选项设置->附加组件 中启用百度音乐即可  
在UBUNTU12.04LTS里安装百度音乐插件,深度音乐版本为2.0 。当安装到   sudo python setup.py install时出现了如下错误。不知道为什么?   我强行执行第3步,结果在深度音乐里可以找到百度音乐选项,但是五角星是灰色的,不能点选。请作者指导,谢谢。


sudo python setup.py install
[sudo] password for love19541009:
running install
running build
running build_ext
skipping*core.c' Cython extension (up-to-date)
building*core' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -*core.c -o build/temp.linux-i686-2.7*core.o -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/libsoup-2.4 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/webkitgtk-1.0
In file included fro*core.c:237:0:
/usr/include/webkitgtk-1.0*Core/JSContextRef.h:51:1: 警告: 函数声明不是一个原型 [-Wstrict-prototypes]
*core.c: 在函数‘__pyx_f_14javascriptcore_wrapJSObject’中:
*core.c:1274:3: 警告: passing argument 2 of ‘JSObjectIsFunction’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSObjectRef.h:605:16: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c:1284:5: 警告: passing argument 2 of ‘__pyx_f_14javascriptcore_makeJSFunction’ discards ‘const’ qualifier from pointer target type [默认启用]
*core.c:845:18: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c:1299:5: 警告: passing argument 2 of ‘__pyx_f_14javascriptcore_makeJSObject’ discards ‘const’ qualifier from pointer target type [默认启用]
*core.c:844:18: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c: 在函数‘__pyx_f_14javascriptcore_jsToPython’中:
*core.c:1583:7: 警告: 传递‘PyUnicodeUCS4_DecodeUTF16’的第 1 个参数时在不兼容的指针类型间转换 [默认启用]
/usr/include/python2.7/unicodeobject.h:872:23: 附注: 需要类型‘const char *’,但实参的类型为‘Py_UNICODE *’
*core.c:1649:5: 警告: passing argument 1 of ‘JSObjectGetPrivate’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSObjectRef.h:586:17: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c: 在函数‘__pyx_f_14javascriptcore_pyStringFromJS’中:
*core.c:2072:3: 警告: 传递‘PyUnicodeUCS4_DecodeUTF16’的第 1 个参数时在不兼容的指针类型间转换 [默认启用]
/usr/include/python2.7/unicodeobject.h:872:23: 附注: 需要类型‘const char *’,但实参的类型为‘Py_UNICODE *’
*core.c: 在函数‘__pyx_f_14javascriptcore_13_JSBaseObject_setup’中:
*core.c:2602:3: 警告: passing argument 1 of ‘JSGlobalContextRetain’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSContextRef.h:103:30: 附注: 需要类型‘JSGlobalContextRef’,但实参的类型为‘JSContextRef’
*core.c: 在函数‘__pyx_pf_14javascriptcore_13_JSBaseObject_1__dealloc__’中:
*core.c:2657:35: 警告: passing argument 1 of ‘JSGlobalContextRelease’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSContextRef.h:110:16: 附注: 需要类型‘JSGlobalContextRef’,但实参的类型为‘JSContextRef’
*core.c: 在函数‘__pyx_pf_14javascriptcore_11_JSSequence___contains__’中:
*core.c:3233:7: 警告: passing argument 1 of ‘JSObjectGetPrivate’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSObjectRef.h:586:17: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c: 在函数‘__pyx_pf_14javascriptcore_9_JSObject_1__getattr__’中:
*core.c:5329:49: 警告: passing argument 2 of ‘JSObjectIsFunction’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSObjectRef.h:605:16: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c:5356:170: 警告: passing argument 2 of ‘__pyx_f_14javascriptcore_makeJSBoundMethod’ discards ‘const’ qualifier from pointer target type [默认启用]
*core.c:846:18: 附注: 需要类型‘JSObjectRef’,但实参的类型为‘JSValueRef’
*core.c: 在函数‘__pyx_pf_14javascriptcore_9JSContext___cinit__’中:
*core.c:7669:36: 警告: passing argument 1 of ‘JSGlobalContextRetain’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSContextRef.h:103:30: 附注: 需要类型‘JSGlobalContextRef’,但实参的类型为‘JSContextRef’
*core.c: 在函数‘__pyx_pf_14javascriptcore_9JSContext_1__init__’中:
*core.c:7701:13: 警告: 变量‘__pyx_v_pyCtxExtern’被设定但未被使用 [-Wunused-but-set-variable]
*core.c: 在函数‘__pyx_pf_14javascriptcore_9JSContext_2evaluateScript’中:
*core.c:7817:13: 警告: 变量‘__pyx_v_sourceURL’被设定但未被使用 [-Wunused-but-set-variable]
*core.c:7816:13: 警告: 变量‘__pyx_v_thisObject’被设定但未被使用 [-Wunused-but-set-variable]
*core.c: 在函数‘__pyx_pf_14javascriptcore_9JSContext_4__dealloc__’中:
*core.c:8081:35: 警告: passing argument 1 of ‘JSGlobalContextRelease’ discards ‘const’ qualifier from pointer target type [默认启用]
/usr/include/webkitgtk-1.0*Core/JSContextRef.h:110:16: 附注: 需要类型‘JSGlobalContextRef’,但实参的类型为‘JSContextRef’
*core.c: 在函数‘in*core’中:
*core.c:13406:57: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13415:60: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13424:60: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13469:62: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13559:54: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13577:54: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13586:57: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13640:54: 警告: 从不兼容的指针类型赋值 [默认启用]
*core.c:13649:57: 警告: 从不兼容的指针类型赋值 [默认启用]
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7*core.o -o build/lib.linux-i686-2.7*core.so -lwebkitgtk-1.0 -lgtk-x11-2.0 -lsoup-2.4 *coregtk-1.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgio-2.0 -lgobject-2.0 -lglib-2.0
/usr/bin/ld: cannot find -lgcc_s
collect2: ld 返回 1
error: command 'gcc' failed with exit status 1
Reply View the author