ubuntu装python-gtk2补丁
Tofloor
poster avatar
zhangs
deepin
2012-07-20 16:11
Author
软件中心报告“破坏现有软件包‘python-glade2’的依赖python-gtk2(2.24.0-3)”
怎么办啊!
还有就是为什么不用gi.repository开发,要选择gtk2啊,不是很懂啊!
Reply Favorite View the author
All Replies
qq10044375
deepin
2012-07-20 18:49
#1
软件中心报告“破坏现有软件包‘python-glade2’的依赖python-gtk2(2.24.0-3)”
怎么办啊!
还有就是为什么不用gi.repository开发,要选择gtk2啊,不是很懂啊!


忽略掉,强制安装,然后再进入软件中心,会提示修复,然后就可以了。我是这么装的。
Reply View the author
cxbii
deepin
2012-07-20 19:38
#2
软件中心报告“破坏现有软件包‘python-glade2’的依赖python-gtk2(2.24.0-3)”
怎么办啊!
还有就是为什么不用gi.repository开发,要选择gtk2啊,不是很懂啊!
因为gtk2符合我们开发软件性能的要求
Reply View the author
zhangs
deepin
2012-07-20 20:43
#3
貌似比较悲剧,装完后就打开deepin-music就不停报错误,打都打不开,选择忽略此版本的选项后,干脆就打不开了,郁闷死了,再说为什么上游不采用gtk2补丁,是放弃gtk2,转gtk3吗?gtk3有内存泄漏问题吗
Reply View the author
cxbii
deepin
2012-07-20 22:58
#4
貌似比较悲剧,装完后就打开deepin-music就不停报错误,打都打不开,选择忽略此版本的选项后,干脆就打不开了,郁闷死了,再说为什么上游不采用gtk2补丁,是放弃gtk2,转gtk3吗?gtk3有内存泄漏问题吗
去博客看安装方法吧,目前gtk3还达不到要求,不会转移
Reply View the author
zhangs
deepin
2012-07-21 01:05
#5
Traceback (most recent call last):
  File "/usr/bin/deepin-music-player", line 245, in
    DeepinMusicApp()
  File "/usr/bin/deepin-music-player", line 57, in __init__
    self.__init()
  File "/usr/bin/deepin-music-player", line 194, in __init
    from widget.instance import DeepinMusic        
  File "/usr/share/deepin-music-player/src/widget/instance.py", line 42, in
    from widget.preference import PreferenceDialog
  File "/usr/share/deepin-music-player/src/widget/preference.py", line 45, in
    from widget.global_keys import global_hotkeys
  File "/usr/share/deepin-music-player/src/widget/global_keys.py", line 24, in
    from dtk.ui.global_key import GlobalKey, enable_global_key, disable_global_key
  File "/usr/lib/python2.7/dist-packages/dtk/ui/global_key.py", line 23, in
    from Xlib import X
ImportError: No module named Xlib
怎么办?启动不出来啊!
Reply View the author
learning
deepin
2012-07-21 21:51
#6
Traceback (most recent call last):
  File "/usr/bin/deepin-music-player", line 245, in
    DeepinMusicApp()
  File "/usr/bin/deepin-music-player", line 57, in __init__
    self.__init()
  File "/usr/bin/deepin-music-player", line 194, in __init
    from widget.instance import DeepinMusic        
  File "/usr/share/deepin-music-player/src/widget/instance.py", line 42, in
    from widget.preference import PreferenceDialog
  File "/usr/share/deepin-music-player/src/widget/preference.py", line 45, in
    from widget.global_keys import global_hotkeys
  File "/usr/share/deepin-music-player/src/widget/global_keys.py", line 24, in
    from dtk.ui.global_key import GlobalKey, enable_global_key, disable_global_key
  File "/usr/lib/python2.7/dist-packages/dtk/ui/global_key.py", line 23, in
    from Xlib import X
ImportError: No module named Xlib
怎么办?启动不出来啊!
从最后一句:
ImportError: No module named Xlib
看来应该是没有安装python-xlib
试试在终端中输入如下命令
  1. sudo apt-get install python-xlib
Copy the Code
输入完后回车,等安装完python-xlib后看能不能正常启动软件。
Reply View the author
zhangs
deepin
2012-07-21 21:54
#7
果然可以了,多谢啦!
Reply View the author