pycentral crashed with AttributeError in prepare()

Bug #196335 reported by JWorkman01
768
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-central

I upgraded to Hardy and since then this is what I get. The update-manager seems to be broken and cannot be fixed through apt-get -f install or through synaptic. Either way this is the information published to me.

apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libwvstreams4.3-extras libfaad2-0 libmtp6 libgoffice-0-common libneon26
  libgksu1.2-1 python-at-spi libsnmp10 libgksuui1.0-1 libbeagle0 libglew1.4
  libmp4v2-0 refblas3 libcamel1.2-10 libsuperlu3 libsoup2.2-8 libgpod2
  libcdio6 libsvg1 libx264-54 libgutenprintui2-1
  linux-headers-2.6.22-14-generic gutsy-wallpapers cinepaint-data libbrlapi1
  libgoffice-0-4 libwvstreams4.3-base libpt-plugins-alsa liboobs-1-3 libdb4.5
  pitivi linux-headers-2.6.22-14 libtotem-plparser7 libuniconf4.3
  libcinepaint0 gstreamer0.10-gnonlin linux-source-2.6.22 libnss3-0d
  libkdcraw1 feisty-gdm-themes libpisync0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  update-manager
The following packages will be upgraded:
  update-manager
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/895kB of archives.
After this operation, 57.3kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 175317 files and directories currently installed.)
Preparing to replace update-manager 1:0.81.2 (using .../update-manager_1%3a0.87.9_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 803, in prepare
    rt.remove_byte_code(removed_fs)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/apt/archives/update-manager_1%3a0.87.9_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/update-manager_1%3a0.87.9_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

Does anyone have a clue how to fix this?

ProblemType: Crash
Architecture: i386
Date: Wed Feb 27 20:44:11 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: python-central 0.5.60ubuntu4
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare update-manager
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/pycentral', 'pkgprepare', 'update-manager']
SourcePackage: python-central
Title: pycentral crashed with AttributeError in prepare()
Uname: Linux 2.6.24-10-386 i686
UserGroups:

Tags: apport-crash
Revision history for this message
JWorkman01 (jworkman11322-comcast) wrote :
Revision history for this message
JWorkman01 (jworkman11322-comcast) wrote :

I was able to remove the broken set by using the new GNOME Apt Software manager. Then used the fix broken option. After doing this I had no other problems.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in 0.5.60ubuntu5

Changed in python-central:
status: New → Fix Released
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.