You are not logged in.
Hi iam new here
I tried to install adeskbar from git by resolving the depedencies found in the README. after that i run sudo install.sh and run adeskbar but i get the following output:
Traceback (most recent call last):
File "/usr/bin/adeskbar", line 64, in <module>
import adesk.bar
File "/usr/share/adeskbar/adesk/bar.py", line 255
print 'CONFIG ---------------------------------------------'
^
SyntaxError: invalid syntax
Could someone please help?
Thank you
Offline
First of all, welcome to Arch Linux.
Adeskbar is using python2 syntax, but Arch uses python3 as default. Install the AUR package, it fixes this issue.
(If you don't know how to install an AUR package, see the wiki page.)
Last edited by guelfi (2012-04-01 15:13:30)
Offline
Hey thanks a lot for replying. Although i can see adeskbar running i cant do anything on it. preferences activates no menu and i get the following in terminal
** (main.py:7778): WARNING **: Trying to register gtype
'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (main.py:7778): WARNING **: Trying to register gtype
'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (main.py:7778): WARNING **: Trying to register gtype
'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
(main.py:7778): Wnck-WARNING **: Unhandled action type
_OB_WM_ACTION_UNDECORATE
(main.py:7778): Wnck-WARNING **: Unhandled action type
_OB_WM_ACTION_UNDECORATE
Traceback (most recent call last):
File "/usr/share/adeskbar/adesk/bar.py", line 859, in load_plugin
widget = plugin.Plugin(self.bar, settings)
File "/usr/share/adeskbar/plugins/menu.py", line 52, in __init__
self.menu = Menu_UI(self, bar)
File "/usr/share/adeskbar/plugins/menu.py", line 83, in __init__
self.restart()
File "/usr/share/adeskbar/plugins/menu.py", line 112, in restart
self.create_menu()
File "/usr/share/adeskbar/plugins/menu.py", line 130, in create_menu
xdgmenu = Core.XdgMenu()
File "/usr/share/adeskbar/adesk/core.py", line 216, in __init__
xdgmenu = xdg.Menu.parse('/etc/xdg/menus/%s.menu' % select_menu)
File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 514, in
parse
doc = xml.dom.minidom.parse(filename)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory:
'/etc/xdg/menus/applications.menu'
Traceback (most recent call last):
File "/usr/share/adeskbar/adesk/bar.py", line 735, in edit_config
self.bar_conf = barconf.Conf(self)
File "/usr/share/adeskbar/adesk/barconf.py", line 108, in __init__
self.ui_Main()
File "/usr/share/adeskbar/adesk/barconf.py", line 184, in ui_Main
self.ui_Launcher()
File "/usr/share/adeskbar/adesk/barconf.py", line 456, in ui_Launcher
self.app_menu = ui.Menu(self.new_item_menu)
File "/usr/share/adeskbar/adesk/ui.py", line 591, in __init__
xdgmenu = Core.XdgMenu()
File "/usr/share/adeskbar/adesk/core.py", line 216, in __init__
xdgmenu = xdg.Menu.parse('/etc/xdg/menus/%s.menu' % select_menu)
File "/usr/lib/python2.7/site-packages/xdg/Menu.py", line 514, in
parse
doc = xml.dom.minidom.parse(filename)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory:
'/etc/xdg/menus/applications.menu'
/usr/share/adeskbar/adesk/bar.py:749: Warning: g_object_set_qdata:
assertion `G_IS_OBJECT (object)' failed
gtk.main()
^CTraceback (most recent call last):
File "main.py", line 68, in <module>
BAR_MGR.run()
File "/usr/share/adeskbar/adesk/bar.py", line 753, in run
self.doquit()
File "/usr/share/adeskbar/adesk/bar.py", line 745, in doquit
gtk.main_quit()
RuntimeError: called outside of a mainloop
can i do anything to fix it?
Offline
Who were you Zapman?
What did you see??
PS: Well, it’s a quite obvious up, right, but if anybody has the solution to Zapman’s problem (which I have to, running adeskbar under Openbox on a usual gnomised arch), it would be great!
Offline
The same thing happened to me after a recent update. Inside /etc/xdg/menus/ there is a file called gnome-applications.menu so as a temporary fix I tried:
sudo ln -s /etc/xdg/menus/gnome-applications.menu /etc/xdg/menus/applications.menu
I can now access the adeskbar preferences menu.
Offline