[Bug 1377152] Re: update-manager crashed with AttributeError in __init__(): 'AptTerminal' object has no attribute 'set_pty_object'

Brian Murray brian at ubuntu.com
Mon Dec 15 23:18:04 UTC 2014


This is fixed in Vivid.

 $ bzr log -r-1 -p
------------------------------------------------------------
revno: 981 [merge]
committer: Martin Pitt <martin.pitt at ubuntu.com>
branch nick: aptdaemon
timestamp: Tue 2014-11-11 07:39:37 +0100
message:
  Port to vte 2.91 API
diff:
=== modified file 'aptdaemon/gtk3widgets.py'
--- aptdaemon/gtk3widgets.py    2014-06-26 07:07:15 +0000
+++ aptdaemon/gtk3widgets.py    2014-11-10 18:03:20 +0000
@@ -38,6 +38,9 @@
 import pty
 import re
 
+import gi
+gi.require_version("Vte", "2.91")
+
 import apt_pkg
 from gi.repository import GObject
 from gi.repository import GLib
@@ -391,7 +394,7 @@
         self._master, self._slave = pty.openpty()
         self._ttyname = os.ttyname(self._slave)
         self.set_size(80, 24)
-        self.set_pty_object(Vte.Pty.new_foreign(self._master))
+        self.set_pty(Vte.Pty.new_foreign_sync(self._master))
         if transaction is not None:
             self.set_transaction(transaction)
------------------------------------------------------------


** Changed in: aptdaemon (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Review Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1377152

Title:
  update-manager crashed with AttributeError in __init__():
  'AptTerminal' object has no attribute 'set_pty_object'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1377152/+subscriptions



More information about the Ubuntu-patch-reviews mailing list