alacarte crashed with ImportError in /usr/share/alacarte/Alacarte/util.py : cannot import name GError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Alacarte Menu Editor |
Fix Released
|
Critical
|
||
| alacarte (Ubuntu) |
Medium
|
Unassigned |
Bug Description
Get that crash after right clicking on Applications menu on RR i386 logged as gnome-classic.
As apport also fail to report and apport-cli is also broken, i send the crash file below.
Related branches
- Sebastien Bacher: Approve on 2013-02-05
-
Diff: 272 lines (+215/-4)6 files modified.pc/applied-patches (+1/-0)
.pc/git_use_glib-gerror.patch/Alacarte/util.py (+174/-0)
Alacarte/util.py (+1/-4)
debian/changelog (+7/-0)
debian/patches/git_use_glib-gerror.patch (+31/-0)
debian/patches/series (+1/-0)
dino99 (9d9) wrote : | #1 |
dino99 (9d9) wrote : | #2 |
Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in alacarte (Ubuntu): | |
status: | New → Confirmed |
Same problem.
root@Dungeon-
alacarte:
Installed: 3.6.1-0ubuntu2
Candidate: 3.6.1-0ubuntu2
Version table:
*** 3.6.1-0ubuntu2 0
500 http://
100 /var/lib/
root@Dungeon-
alacarte:
Installed: 3.6.1-0ubuntu2
Candidate: 3.6.1-0ubuntu2
Version table:
*** 3.6.1-0ubuntu2 0
500 http://
100 /var/lib/
root@Dungeon-
Traceback (most recent call last):
File "/usr/bin/
from Alacarte.MainWindow import MainWindow
File "/usr/share/
from Alacarte.MenuEditor import MenuEditor
File "/usr/share/
from Alacarte import util
File "/usr/share/
from gi._glib import GError
ImportError: cannot import name GError
Francois Thirioux (fthx) wrote : | #6 |
I simply removed the line with
from gi._glib import GError
in the file :
/usr/share/
I do not know if it is a dirty workaround, but it does succeed to start alacarte...
Francois Thirioux (fthx) wrote : | #7 |
I meant :
removed with inserting a # before the bad line...
Changed in alacarte (Ubuntu): | |
importance: | Undecided → Medium |
Martin Pitt (pitti) wrote : | #8 |
Indeed, accessing PyGObject internals through gi._glib is wrong, and does not work any more with pygobject 3.7. Instead, please use the official API:
from gi.repository.GLib import GError
or drop the line completely if it isn't being used anywhere.
Changed in alacarte (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in alacarte: | |
importance: | Unknown → Critical |
status: | Unknown → New |
Changed in alacarte: | |
status: | New → Fix Released |
Burak Göksoy (rbgoksoy) wrote : | #9 |
6. method; to remove failure lines is worked.
ek0892 (kranich) wrote : | #10 |
me too :
File "/usr/bin/
from Alacarte.MainWindow import MainWindow
File "/usr/share/
from Alacarte.MenuEditor import MenuEditor
File "/usr/share/
from Alacarte import util
File "/usr/share/
from gi._glib import GError
ImportError: cannot import name GError
ek0892 (kranich) wrote : | #11 |
for fix / resolv , this is my solution :
in the terminal :
sudo sed -i -e '/from gi._glib/ s/^from */### from/' /usr/share/
dino99 (9d9) wrote : | #12 |
Thanks kranich,
after having executed to #11 command, alacarte stop crashing and can be used normally.
Launchpad Janitor (janitor) wrote : | #13 |
This bug was fixed in the package alacarte - 3.6.1-0ubuntu3
---------------
alacarte (3.6.1-0ubuntu3) raring; urgency=low
* debian/
- Use GLib.GError for catching errors (LP: #1086369)
-- Matthieu Baerts (matttbe) <email address hidden> Thu, 31 Jan 2013 02:38:20 +0100
Changed in alacarte (Ubuntu): | |
status: | Triaged → Fix Released |
oem@oem-desktop:~$ apt-cache policy alacarte archive. ubuntu. com/ubuntu/ raring/universe i386 Packages dpkg/status
alacarte:
Installé : 3.6.1-0ubuntu2
Candidat : 3.6.1-0ubuntu2
Table de version :
*** 3.6.1-0ubuntu2 0
500 http://
100 /var/lib/
Traceback (most recent call last): alacarte" , line 23, in <module> alacarte/ Alacarte/ MainWindow. py", line 32, in <module> alacarte/ Alacarte/ MenuEditor. py", line 23, in <module> alacarte/ Alacarte/ util.py" , line 25, in <module>
File "/usr/bin/
from Alacarte.MainWindow import MainWindow
File "/usr/share/
from Alacarte.MenuEditor import MenuEditor
File "/usr/share/
from Alacarte import util
File "/usr/share/
from gi._glib import GError
ImportError: cannot import name GError