Fails to start on ArchLinux.

Bug #1030959 reported by Joseph Borg
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MenuLibre
Fix Released
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.

Revision history for this message
Sean Davis (bluesabre) wrote :

Good day,

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

Thanks,
Sean

Revision history for this message
Gurvender Bahia (gurvender-bahia) wrote :

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.

Revision history for this message
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)

Revision history for this message
Sean Davis (bluesabre) 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
Revision history for this message
Arturo Torres Sánchez (r2d2.art2005) wrote :

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

Revision history for this message
Arturo Torres Sánchez (r2d2.art2005) wrote :

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.

Revision history for this message
Vinycius Maia (mrk3004-deactivatedaccount) wrote :

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

Revision history for this message
Sean Davis (bluesabre) 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
Sean Davis (bluesabre)
Changed in menulibre:
status: Fix Committed → Fix Released
Revision history for this message
Gurvender Bahia (gurvender-bahia) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.