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: | 202 |
Popularity: | 2.09 |
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.
Pinned Comments
evana commented on 2017-05-14 22:11 (UTC)