software-properties-gtk crashed with AttributeError in __getattr__(): 'gi.repository.Gdk' object has no attribute 'FUNC_MOVE'

Bug #736393 reported by Gregaloch on 2011-03-16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Martin Pitt

Bug Description

After crashing (fatal error...etc.) it took about 3 safe boots to get it normal. However, the program icons were absent. Next reboot they were still absent but two external HDD showed up. Then when I tried to open software glitch.
Hope this helps.
Thank mucho,

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-properties-gtk 0.80.4
ProcVersionSignature: Ubuntu 2.6.38-6.34-generic 2.6.38-rc7
Uname: Linux 2.6.38-6-generic x86_64
Architecture: amd64
Date: Wed Mar 16 13:38:24 2011
ExecutablePath: /usr/bin/software-properties-gtk
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110306)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk /home/dscottmc/.cache/.fr-1t2Ma5/sources.list
 PATH=(custom, no user)
PythonArgs: ['/usr/bin/software-properties-gtk', '/home/dscottmc/.cache/.fr-1t2Ma5/sources.list']
SourcePackage: software-properties
Title: software-properties-gtk crashed with AttributeError in __getattr__(): 'gi.repository.Gdk' object has no attribute 'FUNC_MOVE'
UpgradeStatus: Upgraded to natty on 2011-03-09 (7 days ago)

Gregaloch (scott-scottmcgregor) wrote :
tags: removed: need-duplicate-check
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, seems like a gi, gtk annotation issue

visibility: private → public
Changed in software-properties (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Low
status: New → Confirmed
Martin Pitt (pitti) wrote :

Gdk.FUNC_MOVE indeed doesn't exist. As /usr/share/gir-1.0/Gdk-3.0.gir shows, the constant names is Gdk.WMFunction.MOVE (same in 2.0).

While looking at this I noticed that softwareproperties/gtk/ does

import pygtk
from gi.repository import Gdk
from gi.repository import Gtk

Note that this is *highly* dangerous and prone to crash. You must not mix the static bindings with GI bindings, otherwise the two will fight each other badly and cause unknown symbols, crashes, or other memory corruption.

Changed in software-properties (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
importance: Low → Medium
status: Confirmed → Triaged
assignee: nobody → Martin Pitt (pitti)
status: Triaged → In Progress
Martin Pitt (pitti) on 2011-03-22
Changed in software-properties (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.80.5

software-properties (0.80.5) natty; urgency=low

  * softwareproperties/gtk/ Drop leftover pygtk
  * software-properties-gtk: Fix --enable-ppa to work again.
  * softwareproperties/gtk/ Fix WMFunction Gdk
    constant. (LP: #736393)
 -- Martin Pitt <email address hidden> Tue, 22 Mar 2011 16:58:23 +0100

Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers