update-python-modules crashed with IOError in post_change_stuff()

Bug #206888 reported by bruce
6
Affects Status Importance Assigned to Milestone
python-support (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-support

Just upgraded to Hardy Beta.

running "apt-get -f install" gives the following

Need to get 0B/323kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 183546 files and directories currently installed.)
Preparing to replace python-gnome2-extras 2.19.1-0ubuntu7 (using .../python-gnome2-extras_2.19.1-0ubuntu7_i386.deb) ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 348, in <module>
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/bootconfig/__init__.py'
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 348, in <module>
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/bootconfig/__init__.py'
dpkg: error processing /var/cache/apt/archives/python-gnome2-extras_2.19.1-0ubuntu7_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.5/bootconfig/__init__.py'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-gnome2-extras_2.19.1-0ubuntu7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Crash
Architecture: i386
Date: Wed Mar 26 13:03:08 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/sbin/update-python-modules
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: python-support 0.7.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/update-python-modules python-gnome2-extras
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_NZ.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/update-python-modules', 'python-gnome2-extras']
SourcePackage: python-support
Title: update-python-modules crashed with IOError in post_change_stuff()
Uname: Linux 2.6.24-12-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
bruce (bruce-aldridge) wrote :
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.