pycentral crashed with AttributeError in prepare()

Bug #196496 reported by Wrwrwr
6
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/onboard_0.91_all.deb) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1674, in <module>
    main()
  File "/usr/bin/pycentral", line 1668, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1169, in run
    pkg.prepare(used_runtimes, old_used_runtimes, old_pkg)
  File "/usr/bin/pycentral", line 793, in prepare
    self.default_runtime.remove_byte_code(removed_fs)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/apt/archives/onboard_0.91_all.deb (--unpack):
 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
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare onboard
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/pycentral', 'pkgprepare', 'onboard']
SourcePackage: python-central
Title: pycentral crashed with AttributeError in prepare()
Uname: Linux 2.6.24-8-generic x86_64
UserGroups:

Tags: apport-crash
Revision history for this message
Wrwrwr (wrwrwr) wrote :
Revision history for this message
Wrwrwr (wrwrwr) wrote :

You've linked to an inexistent or hidden report?

After a closer inspection ActionPkgPrepare.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 ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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