pycentral crashed with AttributeError in prepare()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-central
Seems there are a lot of similar reports, but doesn't seem to be one about a crash in prepare(), sorry if it's already been reported.
Updating Hardy Alpha4, python-central version: 0.5.60ubuntu4. onboard fails to install with an exception:
Preparing to replace onboard 0.87 (using .../archives/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
ProblemType: Crash
Architecture: amd64
Date: Thu Feb 28 12:24:32 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.5
Package: python-central 0.5.60ubuntu4
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare onboard
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: python-central
Title: pycentral crashed with AttributeError in prepare()
Uname: Linux 2.6.24-8-generic x86_64
UserGroups:
You've linked to an inexistent or hidden report?
After a closer inspection ActionPkgPrepar e.run (in /usr/bin/pycentral) doesn't seem to set default_runtime at all, so no surprise it's not set. Copying a couple of lines from another action seems to fix the problem. Attaching a patch (I don't have a good knowledge of python-central, so please check if that's actually the right thing to do before applying ;)