Crash when using GTK elements due to use of deprecated function
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Oneiric |
Fix Released
|
High
|
Unassigned |
Bug Description
## Issue
* python-apt crashes when using a gtk element.
* Deprecated call from python-vte
## Environment
Ubuntu 11.10 x86_64
python-apt 0.8.0ubuntu8
python-vte 0.28.0ubuntu2
## Diagnostic steps
1. Using the example from: http://
2. Run example on an oneiric system
This worked fine in before Oneiric's version of python-apt but now fails:
Traceback (most recent call last):
File "test.py", line 29, in <module>
main()
File "test.py", line 14, in main
progress = apt.progress.
File "/usr/lib/
self.
File "/usr/lib/
reaper = vte.reaper_get()
AttributeError: 'module' object has no attribute 'reaper_get'
## Workaround
* apply a small patch to gtk2.py
130,131c130,131
< reaper = vte.reaper_get()
< reaper.
---
> self.terminal = vte.Terminal()
> self.terminal.
* re-run test case
## Other info
A gnome app, 'OnTV' faced a similar issue with the function and fixed it with this patch:
http://
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-apt 0.8.0ubuntu8
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
Date: Mon Oct 3 15:09:11 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111003)
ProcEnviron:
LANGUAGE=en_GB:en
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: python-apt
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Jason Conti (community): Approve
- Ubuntu Core Development Team: Pending requested
- Diff: 322 lines (+166/-9) (has conflicts)
- Michael Vogt: Pending requested
- Diff: 293 lines (+117/-9) (has conflicts)
- Julian Andres Klode (community): Approve
- Diff: 28 lines (+6/-1)
description: | updated |
tags: | added: customer-support pse |
description: | updated |
Changed in python-apt (Ubuntu): | |
status: | New → Confirmed |
Changed in python-apt (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
After applying a small patch to gtk2.py, we can over come the issue:
130,131c130,131connect("child-exited", self.child_exited)connect("child-exited", self.child_exited)
< reaper = vte.reaper_get()
< reaper.
---
> self.terminal = vte.Terminal()
> self.terminal.