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.

<br />
sudo apt-get install python3-distutils-extra<br />
sudo apt-get install python3-psutil<br />

Now download the latest version from the Project Page.

Finally, extract and install like this:

<br />
tar -xzvf menulibre-2.0.1.tar.gz<br />
cd menulibre-2.0.1<br />
python3 setup.py install --user<br />

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

<br />
$ ~/.local/bin/menulibre<br />

Here’s what I went through (full story)

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

<br />
tar -xzvf menulibre-2.0.tar.gz<br />
cd menulibre-2.0<br />
python3 setup.py install --user<br />

At first, I got this error message:

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

It wouldn’t install.

I tried to install the packages:

<br />
sudo apt-get install python-distutils-extra libgtksourceviewmm-3.0-dev python3-d2to1<br />

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

<br />
sudo apt-get install python3-distutils-extra<br />

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.

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

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:

<br />
tar -xzvf menulibre-2.0.1.tar.gz<br />
cd menulibre-2.0.1<br />
python3 setup.py install --user<br />

Closer … then I got this output:

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

Finally, I fixed that by installing this package:

<br />
sudo apt-get install python3-psutil<br />

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.

<br />
sudo python3 setup.py install<br />

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 *