dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #04904
[Bug 1233994] Re: hud apport hook fails with: File "/usr/share/apport/package-hooks/source_hud.py", line 4, in add_info NameError: global name 'apport' is not defined
The proposed package (13.10.1+13.10.20131024-0ubuntu1) fixed this issue.
After installing the proposed package I ran 'ubuntu-bug hud' and it successfully collected the information it needed to submit a bug and I was presented with a window 'Send problem report to the developers?' with a Send and a Cancel button. This failed with the 13.10.1+13.10.20131014-0ubuntu1 version.
** Description changed:
From the command line run:
- $ ubunt-bug hud
+ $ ubuntu-bug hud
The following error is displayed on the terminal
ERROR: hook /usr/share/apport/package-hooks/source_hud.py crashed:
Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
- symb['add_info'](report, ui)
+ File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
+ symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
- symb['add_info'](report)
- File "/usr/share/apport/package-hooks/source_hud.py", line 4, in add_info
- if not apport.packaging.is_distro_package(report['Package'].split()[0]):
+ File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
+ symb['add_info'](report)
+ File "/usr/share/apport/package-hooks/source_hud.py", line 4, in add_info
+ if not apport.packaging.is_distro_package(report['Package'].split()[0]):
NameError: global name 'apport' is not defined
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: hud 13.10.1+13.10.20130918-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu1
Architecture: armhf
Date: Wed Oct 2 06:05:00 2013
InstallationDate: Installed on 2013-10-01 (0 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20131001.3)
MarkForUpload: True
ProcEnviron:
- TERM=linux
- PATH=(custom, no user)
+ TERM=linux
+ PATH=(custom, no user)
SourcePackage: hud
UpgradeStatus: No upgrade log present (probably fresh install)
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to hud in Ubuntu.
https://bugs.launchpad.net/bugs/1233994
Title:
hud apport hook fails with: File "/usr/share/apport/package-
hooks/source_hud.py", line 4, in add_info NameError: global name
'apport' is not defined
Status in Unity HUD:
Fix Released
Status in “hud” package in Ubuntu:
Fix Released
Status in “hud” source package in Saucy:
Fix Committed
Bug description:
From the command line run:
$ ubuntu-bug hud
The following error is displayed on the terminal
ERROR: hook /usr/share/apport/package-hooks/source_hud.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
symb['add_info'](report)
File "/usr/share/apport/package-hooks/source_hud.py", line 4, in add_info
if not apport.packaging.is_distro_package(report['Package'].split()[0]):
NameError: global name 'apport' is not defined
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: hud 13.10.1+13.10.20130918-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu1
Architecture: armhf
Date: Wed Oct 2 06:05:00 2013
InstallationDate: Installed on 2013-10-01 (0 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20131001.3)
MarkForUpload: True
ProcEnviron:
TERM=linux
PATH=(custom, no user)
SourcePackage: hud
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/hud/+bug/1233994/+subscriptions
References