This works for me!
Menulibre ZIP Download (/home/tamara/Downloads/): https://github.com/bluesabre/menulibre
unpack /home/tamara/Downloads/menulibre-master/
Install: sudo python3 setup.py install
Git Clone URL: | https://aur.archlinux.org/menulibre.git (read-only, click to copy) |
---|---|
Package Base: | menulibre |
Description: | An advanced menu editor that provides modern features in a clean, easy-to-use interface |
Upstream URL: | https://github.com/bluesabre/menulibre |
Keywords: | editor gnome menu |
Licenses: | GPL3 |
Submitter: | Ner0 |
Maintainer: | jonian |
Last Packager: | jonian |
Votes: | 199 |
Popularity: | 1.05 |
First Submitted: | 2012-07-10 05:32 (UTC) |
Last Updated: | 2021-09-26 19:30 (UTC) |
This works for me!
Menulibre ZIP Download (/home/tamara/Downloads/): https://github.com/bluesabre/menulibre
unpack /home/tamara/Downloads/menulibre-master/
Install: sudo python3 setup.py install
@lesebas: After studying what you shared along with Why you shouldn't invoke setup.py directly, I see your PKGBUILD is indeed a viable alternative to using distutils-extra for this package. However, you seem to be the only one having an issue with the current PKGBUILD which will still work until Python 3.12 is out, probably.
In the future, I imagine the Arch Python package guidelines would end up looking something like this using Build and Pip:
build() {
cd "$_name-$pkgver"
python -m build
}
package() {
cd "$_name-$pkgver"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
}
@yochananmarqos
The recommendation in python package guidelines about pip are pretty old (they are speaking about the bug related .pyo that has been solved since 2017). It's clearly recommended into official python documentation to use pip :
https://packaging.python.org/en/latest/tutorials/installing-packages/#use-pip-for-installing
https://packaging.python.org/en/latest/discussions/pip-vs-easy-install/
See the discussion on python packaging guidelines about pip (section 6 :Future of Python packaging in Arch Linux?) :
However is there any clue why menulibre library does not install with the current PKGBUILD (I've tried several uninstall/reinstall but that definitely doesn't work for me)?
@lesebas: Using Pip should be avoided and that is not the way to do it. See Python package guidelines/.
@yochananmarqos
This PKGBUILD works fine for me:
The current one permanently crash as it does not install menulibre library into python3.10 lib folder.
@lesebas: I just built it just fine without those warnings. DistUtils is what's deprecated and will no longer be supported in Python 3.12.
I've got the error import menulibre ModuleNotFoundError: No module named 'menulibre'
even if I try to reinstall it does not work. It seems that python setup.py install is deprecated and you should use pip. Here is the warning message when I use setup.py :
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn(
When I use the following command it works :
sudo python -m pip install ./menulibre-2.2.3.tar.gz
However I'm not sure how to create a pkgbuild with this command.
Anyone hitting this error:
To build menulibre you need https://launchpad.net/python-distutils-extra
, make sure you have python-distutils-extra
installed and are NOT in a virtualenv.
Hello, I am having an issue launching menulibre 2.2.1-3 on Manjaro XFCE (everything up-to-date).
I have tried reinstalling. Clicking the icon does not so anything and if I run from the terminal I get the following output;
$ menulibre
(menulibre:2927): Gtk-WARNING **: 23:36:02.164: Locale not supported by C library. Using the fallback 'C' locale. Gtk-Message: 23:36:02.273: Failed to load module "colorreload-gtk-module"
(menulibre:2927): Gtk-WARNING **: 23:36:02.391: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
(menulibre:2927): Gtk-WARNING **: 23:36:02.533: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate self.win = MenulibreWindow(self, headerbar) File "/usr/lib/python3.9/site-packages/menulibre/MenulibreApplication.py", line 236, in init self.configure_application_actions(builder) File "/usr/lib/python3.9/site-packages/menulibre/MenulibreApplication.py", line 390, in configure_application_actions label=_('Add _Launcher…'), UnicodeDecodeError: 'locale' codec can't decode byte 0xe2 in position 13: decoding error
Any thoughts on what else I could try? Thank you.
Hi @dieghor, I'm able to build the package without problems. Try to uninstall the package, clear your AUR helper cache and try to reinstall.
Hi, this may be a really noob question, but i've been searching for days about this issue and tried a couple thing but nothing worked. I'm getting this output when trying to update the package:
To build menulibre you need https://launchpad.net/python-distutils-extra :: Unable to build menulibre - makepkg exited with code: 4
I've the package installed from community, which is this one: community/python-distutils-extra 2.39-8 [installed]
I've changed the PKGBUILD to python3, but nothing happened.
@dvcky I have released a fix. Please try again with the installation.
Can you up the number on AUR so that people will rebuild the package? then it will work fine again
@jonian Thank you for the reply, I uninstalled menulibre, updated python and then reinstalled it.
@zangoku this package does not require a specific python version. I have both python 3.9.0-1 and menulibre installed without issues.
":: installing python (3.9.0-1) breaks dependency 'python<3.9' required by menulibre"
No new release yet, but as of June 2020, this project has moved to Github: https://launchpad.net/menulibre/+announcement/23266
A well made and essential application, it should really be part of core GNOME! It seems to be far less buggy than the now ancient Alacarte Editor.
Changing the PKGBUILD didn't work for me.
transformer% which python3
/usr/bin/python3
transformer% which python
/usr/bin/python
transformer% pacman -Q python3
python 3.7.4-1
In PKGBUILD file it needs to be changed "python setup.py install --root="$pkgdir/" --optimize=1" to "python3 setup.py install --root="$pkgdir/" --optimize=1"
Hi, Latest version is 2.2.1
The current version has python errors, application does not open
I got the error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 60: unexpected end of data
This patch is needed to make it work. https://launchpadlibrarian.net/413008793/cut.patch
New error:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
self.win = MenulibreWindow(self, headerbar)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 250, in __init__
self.configure_application_treeview(builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
self.treeview = MenulibreTreeview.Treeview(self, builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
self._configure_treeview(builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
treestore = MenuEditor.get_treestore()
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 122, in get_treestore
menu = get_menus()[0]
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 191, in get_menus
menu = MenuEditor()
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 246, in __init__
self.load()
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 264, in load
if not self.tree.load_sync():
gi.repository.GLib.Error: g-io-error-quark: Failed to look up menu_file for "kf5-applications.menu"
It doesn't seems to work
DEBUG:menulibre: set_up_logging() 'logging enabled'
(menulibre:14054): Gtk-WARNING **: 16:52:53.515: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
(menulibre:14054): Gtk-WARNING **: 16:52:53.576: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton DEBUG:menulibre: init() 'Using menu: /home/test/.config/menus/gnome-applications.menu' Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate self.win = MenulibreWindow(self, headerbar) File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 250, in init self.configure_application_treeview(builder) File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview self.treeview = MenulibreTreeview.Treeview(self, builder) File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 48, in init self._configure_treeview(builder) File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview treestore = MenuEditor.get_treestore() File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 123, in get_treestore return menu_to_treestore(treestore, None, menu) File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 111, in menu_to_treestore treestore = menu_to_treestore(treestore, treeiter, item[3]) File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 100, in menu_to_treestore tooltip = escapeText(item[2]['comment']) File "/usr/lib/python3.7/site-packages/menulibre/util.py", line 99, in escapeText return GLib.markup_escape_text(text, len(text)) File "/usr/lib/python3.7/site-packages/gi/overrides/GLib.py", line 415, in markup_escape_text return GLib.markup_escape_text(text, length) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 45: unexpected end of data
the following patch fixed it for me:
--- /usr/lib/python3.7/site-packages/menulibre/util.py.orig 2019-03-29 21:48:23.082059504 +0100
+++ /usr/lib/python3.7/site-packages/menulibre/util.py 2019-03-29 21:48:29.895392887 +0100
@@ -96,7 +96,7 @@
def escapeText(text):
if text is None:
return ""
- return GLib.markup_escape_text(text, len(text))
+ return GLib.markup_escape_text(text)
def getProcessUsername(process):
Running menulibre on my end also returns the same error as j1simon (https://aur.archlinux.org/account/j1simon).
Same problem for me, can't launch menulibre
I can't execute it:
$ menulibre
(menulibre:5308): Gtk-WARNING **: 17:08:21.639: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
(menulibre:5308): Gtk-WARNING **: 17:08:21.671: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
self.win = MenulibreWindow(self, headerbar)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 250, in __init__
self.configure_application_treeview(builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
self.treeview = MenulibreTreeview.Treeview(self, builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
self._configure_treeview(builder)
File "/usr/lib/python3.7/site-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
treestore = MenuEditor.get_treestore()
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 123, in get_treestore
return menu_to_treestore(treestore, None, menu)
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 111, in menu_to_treestore
treestore = menu_to_treestore(treestore, treeiter, item[3])
File "/usr/lib/python3.7/site-packages/menulibre/MenuEditor.py", line 100, in menu_to_treestore
tooltip = escapeText(item[2]['comment'])
File "/usr/lib/python3.7/site-packages/menulibre/util.py", line 99, in escapeText
return GLib.markup_escape_text(text, len(text))
File "/usr/lib/python3.7/site-packages/gi/overrides/GLib.py", line 415, in markup_escape_text
return GLib.markup_escape_text(text, length)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 48: unexpected end of data
I've reinstalled it but same problem.
@Turo hi, I can't reproduce the problem. It works without problems for me.
hi, since this last few days i can't launch menulibre any more. I get this output error:
/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py menulibre arch linux ...
I have re-build it but it is still not ok.
@PhotonX and @spsf64: that did it, thank you.
@phil.dubois: When rebuilding, make sure that the build directory is empty.
@phil.dubois you have to rebuild the package because of new python
The following error is not solved by reinstalling the package:
phil@desktop ~ % menulibre
Traceback (most recent call last):
File "/usr/bin/menulibre", line 44, in <module>
import menulibre
ModuleNotFoundError: No module named 'menulibre'
Why isn't this in the official repos yet? Simply the best menu editor.
evana, this is out of date, I've updated the version number and MD5 here: https://pastebin.com/G0s9mBUU
Has this package been abandoned?
Pinned Comments
evana commented on 2017-05-14 22:11 (UTC)