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
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: | 213 |
Popularity: | 0.166399 |
First Submitted: | 2012-07-10 05:32 (UTC) |
Last Updated: | 2024-03-04 13:45 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »
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.
Pinned Comments
evana commented on 2017-05-14 22:11 (UTC)