xdiagnose 3.4.1 apport hook errors about __file__ undefined

Bug #1101800 reported by Csega
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdiagnose (Ubuntu)
Fix Released
Critical
Bryce Harrington

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 195, in _run_hook
    exec(compile(fd.read(), hook, 'exec'), symb)
  File "/usr/share/apport/package-hooks/source_xdiagnose.py", line 27, in <module>
    os.path.join(os.path.dirname(__file__), "..")))
NameError: name '__file__' is not defined

ProblemType: Package
DistroRelease: Ubuntu 13.04
Package: xdiagnose 3.4
ProcVersionSignature: Ubuntu 3.8.0-1.5-generic 3.8.0-rc4
Uname: Linux 3.8.0-1-generic x86_64
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
Date: Sat Jan 19 15:16:06 2013
ErrorMessage: installed post-installation script alfolyamat 101 hibakóddal kilépett
InstallationDate: Installed on 2013-01-19 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130118)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: xdiagnose
Title: package xdiagnose 3.4 failed to install/upgrade: installed post-installation script alfolyamat 101 hibakóddal kilépett
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Csega (csega) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdiagnose (Ubuntu):
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

The original issue with welcome.py is fixed in 3.4.1, but I also noticed an error was hit with the apport hook, so am redefining this bug report to focus on that latter issue.

The apport hook passed its tests and runs fine for me locally, but apparently it is slightly different when run under apport in an actual install. I've repro'd the error and will work on a fix.

Changed in xdiagnose (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Critical
assignee: nobody → Bryce Harrington (bryce)
summary: - package xdiagnose 3.4 failed to install/upgrade: installed post-
- installation script alfolyamat 101 hibakóddal kilépett
+ package xdiagnose 3.4.1 failed to install/upgrade
summary: - package xdiagnose 3.4.1 failed to install/upgrade
+ xdiagnose 3.4.1 apport hook errors about __file__ undefined
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 3.4.2

---------------
xdiagnose (3.4.2) raring; urgency=low

  * control: Add Conflicts for ubuntu-defaults-nexus7 <= 0.39, since
    xrotate was in that package previously.
    (LP: #1101842)
  * apport/source_xorg.py: Don't rely on __file__ for locating modules
    from the package; instead catch the import errors and skip use of the
    feature.
    (LP: #1101800)
 -- Bryce Harrington <email address hidden> Sat, 19 Jan 2013 11:59:08 -0800

Changed in xdiagnose (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.