[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
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/1377152

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

Status in aptdaemon package in Ubuntu:
  Fix Released

Bug description:
  I am using Ubuntu Utopic, and have the two Gnome ppas added. I did an
  update, and the update manager listed updates ready to be upgraded.
  However, update manager crashes as I press install button to start
  installing.

  This happened twice, so it should be reproducible.

  ProblemType: Crash
  DistroRelease: Ubuntu 14.10
  Package: update-manager 1:14.10.6
  ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3
  Uname: Linux 3.16.0-20-generic x86_64
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CrashCounter: 1
  CurrentDesktop: GNOME
  Date: Fri Oct  3 09:08:38 2014
  ExecutablePath: /usr/bin/update-manager
  InstallationDate: Installed on 2014-09-30 (3 days ago)
  InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140929)
  InterpreterPath: /usr/bin/python3.4
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager
  PythonArgs: ['/usr/bin/update-manager']
  SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in __init__(): 'AptTerminal' object has no attribute 'set_pty_object'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm bumblebee cdrom dip lpadmin plugdev sambashare sudo

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



More information about the foundations-bugs mailing list