Installing MenuLibre 2.0

I just discovered MenuLibre with this last time that I installed Ubuntu 13.10. Tom pointed out on that post that a new 2.0 version is available. It’s not in the Ubuntu 13.10 repositories, but it was easy enough to install (or, at least should have been) …

Here’s the easy way

First, you need to install two prerequisites.

sudo apt-get install python3-distutils-extra
sudo apt-get install python3-psutil

Now download the latest version from the Project Page.

Finally, extract and install like this:

tar -xzvf menulibre-2.0.1.tar.gz
cd menulibre-2.0.1
python3 setup.py install --user

Run it like this (or, from the menu):

$ ~/.local/bin/menulibre

Here’s what I went through (full story)

I downloaded the source package using Sean’s link: MenuLibre 2.0 from Launchpad.

tar -xzvf menulibre-2.0.tar.gz
cd menulibre-2.0
python3 setup.py install --user

At first, I got this error message:

To build menulibre you need https://launchpad.net/python-distutils-extra

It wouldn’t install.

I tried to install the packages:

sudo apt-get install python-distutils-extra libgtksourceviewmm-3.0-dev python3-d2to1

None of those worked. What finally worked was installing this one:

sudo apt-get install python3-distutils-extra

That seemed to work, but upon launching for the first time, I got this output. The only way to stop it was with Ctrl+Z.

~$ ~/.local/bin/menulibre
Traceback (most recent call last):
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/MenulibreApplication.py", line 2247, in do_activate
    self.win = MenulibreWindow(self)
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/MenulibreApplication.py", line 338, in __init__
    self.configure_application_treeview(builder)
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/MenulibreApplication.py", line 614, in configure_application_treeview
    selection.set_select_function(self.on_treeview_selection)
TypeError: set_select_function() takes exactly 3 arguments (2 given)

Jackson reported in a bug report that this was already fixed in a later version. So, I should have downloaded the latest version from the Project Page.

I tried it again with the new version:

tar -xzvf menulibre-2.0.1.tar.gz
cd menulibre-2.0.1
python3 setup.py install --user

Closer … then I got this output:

$ ~/.local/bin/menulibre
Traceback (most recent call last):
  File "/home/skp/.local/bin/menulibre", line 31, in
    import menulibre
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/__init__.py", line 23, in
    from menulibre import MenulibreApplication
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/MenulibreApplication.py", line 24, in
    from . import MenuEditor, MenulibreXdg, XmlMenuElementTree, util
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/MenuEditor.py", line 30, in
    from . import util
  File "/home/skp/.local/lib/python3.3/site-packages/menulibre/util.py", line 22, in
    import psutil
ImportError: No module named 'psutil'

Finally, I fixed that by installing this package:

sudo apt-get install python3-psutil

After that, it worked wonders. I used it to insert a launcher for itself.
MenuLibre 2.0

Note, that I installed it in my user directory. If I wanted to install it for all users, I could have done this.

sudo python3 setup.py install

By installing it in my user directory, I could have both versions.

Resources

Sean Michael Davis: MenuLibre 2.0 Released, Available in Ubuntu 14.04
Sean Michael Davis: MENULIBRE
SolydXK Forum: HOW TO: Install MenuLibre (menu editor) for XFCE
Ask Fedora: Kazam Screencast: ImportError: No module named ‘DistUtilsExtra’
Debian Bug Report: menulibre: Menulibre doesn’t start
MenuLibre Project Page

Leave a Comment

Your email address will not be published. Required fields are marked *