Fails to start on ArchLinux.

Reported by Joseph Borg on 2012-07-30
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MenuLibre
Critical
Unassigned

Bug Description

I guess due some updates of python2-gconf packages, MenuLibre fails to start with this output

/usr/lib/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Traceback (most recent call last):
  File "/usr/bin/menulibre", line 43, in <module>
    import menulibre
  File "/usr/lib/python2.7/site-packages/menulibre/__init__.py", line 25, in <module>
    from menulibre import MenulibreWindow
  File "/usr/lib/python2.7/site-packages/menulibre/MenulibreWindow.py", line 30, in <module>
    icon_theme = IconTheme.CurrentTheme()
  File "/usr/lib/python2.7/site-packages/menulibre_lib/IconTheme.py", line 241, in __init__
    IconTheme.__init__(self, current_theme, main=True)
  File "/usr/lib/python2.7/site-packages/menulibre_lib/IconTheme.py", line 141, in __init__
    self.inherits.append(IconTheme(theme.replace('\n', ''), inherited))
  File "/usr/lib/python2.7/site-packages/menulibre_lib/IconTheme.py", line 98, in __init__
    for line in theme_index.readlines():
UnboundLocalError: local variable 'theme_index' referenced before assignment

I was able to run it before just fine.

Sean Davis (smd-seandavis) wrote :

Good day,

What desktop environment (Xfce, Gnome, etc) are you running MenuLibre in?

Thanks,
Sean

I'm facing the exact same error.

Using:
Release 12.04 (precise) 32-bit
Kernel Linux 3.5.0-030500-generic
GNOME 3.4.2
Unity

Installed MenuLibre today, won't run from GUI, checked in Terminal, getting exact same error.

Joseph Borg (josephgbr777888) wrote :

Im running GNOME Shell on 64-bit Arch.
The package started working again, i dont know if it's due some upgrades. I still get some error messages.

/usr/lib/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `MenulibreWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

Sean Davis (smd-seandavis) wrote :

I think I found and resolved the issue. A fix should be out in less than an hour, version 12.08.2

And btw, thanks! I've been meaning to get Arch set up for some time, and you provided just the catalyst I needed! :-)

Changed in menulibre:
status: New → Fix Released
importance: Undecided → Critical

I've upgraded to 12.08.2 and I'm having this same error (but with different line numbers).

I'm using Ubuntu 12.04, in Pantheon environment.

Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/menulibre/bin/menulibre", line 45, in <module>
    import menulibre
  File "/opt/extras.ubuntu.com/menulibre/menulibre/__init__.py", line 26, in <module>
    from menulibre import MenulibreWindow
  File "/opt/extras.ubuntu.com/menulibre/menulibre/MenulibreWindow.py", line 31, in <module>
    icon_theme = IconTheme.CurrentTheme()
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 248, in __init__
    IconTheme.__init__(self, current_theme, main=True)
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 148, in __init__
    self.inherits.append(IconTheme(theme.replace('\n', ''), inherited))
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 148, in __init__
    self.inherits.append(IconTheme(theme.replace('\n', ''), inherited))
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 148, in __init__
    self.inherits.append(IconTheme(theme.replace('\n', ''), inherited))
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 105, in __init__
    for line in theme_index.readlines():
UnboundLocalError: local variable 'theme_index' referenced before assignment

I did some debugging, and apparently it's my fault: I have a folder “hicolor” inside ~/.icons, but it's empty. My current theme (as all themes, I think) inherits from hicolor, and when it looks for ~/.icons/hicolor/index.theme, which doesn't exist, it stops.

I also get the same error in new version:

Traceback (most recent call last):
  File "/usr/bin/menulibre", line 43, in <module>
    import menulibre
  File "/usr/lib/python2.7/site-packages/menulibre/__init__.py", line 25, in <module>
    from menulibre import MenulibreWindow
  File "/usr/lib/python2.7/site-packages/menulibre/MenulibreWindow.py", line 30, in <module>
    icon_theme = IconTheme.CurrentTheme()
  File "/usr/lib/python2.7/site-packages/menulibre_lib/IconTheme.py", line 248, in __init__
    IconTheme.__init__(self, current_theme, main=True)
  File "/usr/lib/python2.7/site-packages/menulibre_lib/IconTheme.py", line 105, in __init__
    for line in theme_index.readlines():
UnboundLocalError: local variable 'theme_index' referenced before assignment

Sean Davis (smd-seandavis) wrote :

Thanks for all your patience. I have a fix that should resolve everyone's issues coming later today. :-) (It's already in the bzr branch).

Changed in menulibre:
status: Fix Released → Won't Fix
status: Won't Fix → Fix Committed
Changed in menulibre:
status: Fix Committed → Fix Released

Updated to: menulibre_12.08.5_all
Now its working for me
Thanks

Strange Peer (intp-16708) wrote :

same here, ubuntu 12'04 amd64

serge@siva:~$ /opt/extras.ubuntu.com/menulibre/bin/menulibre
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/menulibre/bin/menulibre", line 45, in <module>
    import menulibre
  File "/opt/extras.ubuntu.com/menulibre/menulibre/__init__.py", line 26, in <module>
    from menulibre import MenulibreWindow
  File "/opt/extras.ubuntu.com/menulibre/menulibre/MenulibreWindow.py", line 31, in <module>
    icon_theme = IconTheme.CurrentTheme()
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 250, in __init__
    IconTheme.__init__(self, current_theme, main=True)
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 150, in __init__
    self.inherits.append(IconTheme(theme.replace('\n', ''), inherited))
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/IconTheme.py", line 114, in __init__
    for toplevel_folder in os.listdir(self.theme_dir):
OSError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/share/icons/Ubuntu-Mono-Dark'

to fix the error you should know that "Ubuntu-Mono-Dark" doesn't use caps, it's "ubuntu-mono-dark"

I've copied and rename it with caps just to see it working!

thx for your work!
ve the

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers