ImportError: No module named apport.packaging_impl
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | apport (Ubuntu) |
Low
|
Martin Pitt | ||
Bug Description
Binary package hint: apport
When I hit an exception in rdiff-backup (not caused by a bug, just out of space), I get this import error from apport:
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.
ImportError: No module named apport.
ProblemType: Bug
ApportLog:
apport (pid 5328) Wed Mar 25 11:41:14 2009: called for pid 12763, signal 11
apport (pid 5328) Wed Mar 25 11:41:14 2009: executable: /usr/lib/
apport (pid 5328) Wed Mar 25 11:41:23 2009: wrote report /var/crash/
Architecture: amd64
CrashReports:
600:1000:
600:1000:
600:1001:
600:1000:
DistroRelease: Ubuntu 9.04
NonfreeKernelMo
Package: apport 0.145
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.UTF-8
SHELL=/bin/zsh
SourcePackage: apport
Uname: Linux 2.6.28-11-generic x86_64
| Martin Pool (mbp) wrote : | #1 |
| Martin Pool (mbp) wrote : | #3 |
That works. It's either specific to the situation, or it's gone away by itself, maybe because of the package being update.
| Changed in apport (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Martin Pool (mbp) wrote : | #4 |
It just happened again:
gpg: Interrupt caught ... exiting
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
full_
File "/usr/bin/
bytes_written = write_multivol(
File "/usr/bin/
globals.
File "/usr/lib/
data = block_iter.
File "/usr/lib/
result = self.process(
File "/usr/lib/
for new_path, sig_path in collated:
File "/usr/lib/
for relem1 in riter1:
File "/usr/lib/
subpath, val = diryield_
File "/usr/lib/
for filename in robust.
File "/usr/lib/
dir_listing = check_common_
File "/usr/lib/
try: return function(*args)
File "/usr/lib/
return os.listdir(
KeyboardInterrupt
close failed in file object destructor:
IOError: [Errno 32] Broken pipe
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.
ImportError: No module named apport.
Original exception was:
IOError: [Errno 32] Broken pipe
close failed in file object destructor:
IOError: [Errno 32] Broken pipe
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.
ImportError: No module named apport.
Original exception was:
IOError: [Errno 32] Broken pipe
| Martin Pitt (pitti) wrote : | #5 |
This is quite inexplicable to me, I'm afraid. I committed trunk r1547 to paper over this (catch and abort on ImportError), to avoid disrupting other programs.
| Changed in apport (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| importance: | Undecided → Low |
| status: | Confirmed → Fix Committed |
| Martin Pool (mbp) wrote : Re: [Bug 348250] Re: ImportError: No module named apport.packaging_impl | #6 |
2009/9/3 Martin Pitt <email address hidden>:
> This is quite inexplicable to me, I'm afraid. I committed trunk r1547 to
> paper over this (catch and abort on ImportError), to avoid disrupting
> other programs.
Thanks. fwiw I haven't seen it in either karmic or jaunty for a few months.
--
Martin <http://
| Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package apport - 1.8.1-0ubuntu1
---------------
apport (1.8.1-0ubuntu1) karmic; urgency=low
* New upstream bug fix release:
- data/general-
(LP: #422658)
- launchpad.py: Intercept httplib2.
crashes when being offline. (LP: #396276)
- apport-cli: Save reports with .apport extension instead of .txt. Thanks
to Steve Beattie! (LP: #401983)
- fileutils.py, likely_packaged(): Ignored crashes in /var, packages don't
ship executables there, and it creates false positives. (LP: #414368)
- packaging-
(LP: #408280)
- packaging-
version where appropriate. This also fixes a crash where an obsolete
package is not available any more. (LP: #423511)
- hookutils.py, attach_gconf(): Fix crash with keys which do not have a
schema default. (LP: #422277)
- launchpad.py: Remove LP #353805 workaround, seems fixed now.
- launchpad.py: Talk to staging if $APPORT_STAGING is set.
- launchpad.py: Explicitly supply content_type for addAttachment, current
wadllib requires it now.
- apport_
(LP: #348250)
- apport_
(LP: #418051)
- apport/ui.py, load_report(): Check that report has ProblemType field.
(LP: #198543)
- ui.py: Fix handling of complete vs. reduced report size. (LP: #92653).
This also fixes a race condition crash with os.path.getsize().
(LP: #348137)
- fi.po: Fix mistranslation of "&Cancel". (LP: #355303)
- apport-{gtk,kde}: Check for having $DISPLAY at startup to avoid crashes.
(LP: #411276)
- report.py, add_gdb_info(): Fix race condition in unlink_core, thanks to
Tommi Komulainen! (LP: #397945)
- ui.py, load_report(): Robustify check whether program is still
installed. (LP: #329184)
- packaging-
Executabl
hooks which reassing package
- launchpad.py: Add a comment when marking a bug as a duplicate.
(LP: #418871)
* Move gdb dependency from apport to GUI packages to avoid pulling in gdb on
Ubuntu server. Thanks to Steve Beattie! (LP: #354172)
* ubuntu-bug: Fix handling of .crash file arguments, thanks to Marco
Rodrigues for pointing this out! (LP: #422881)
* debian/
requires them now. (LP: #423512) Also drop the ASCII reencoding
workaround, this doesn't seem to be necessary any more.
* apport/
conffiles. (LP: #412132)
* debian/
isn't installed and there is no source package hook available either.
(LP: #417277)
* debian/
...
| Changed in apport (Ubuntu): | |
| status: | Fix Committed → Fix Released |


If you do
python -c 'from apport. packaging_ impl import impl as packaging'
does that generate the same error? Could it be that the python-apport package wasn't configured properly at that time?