pycentral crashed with NoSectionError in set()

Bug #341372 reported by Randy Wilson
94
This bug affects 8 people
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Invalid
High
Unassigned
Lucid
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-central

I'm stuck where language-selector and language-selector-common can't successfully install or be removed. Here is the error reported when doing an "apt-get remove language-selector language-selector-common":
<code>
Removing language-selector-common ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2143, in <module>
    main()
  File "/usr/bin/pycentral", line 2137, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1596, in run
    pkg = DebPackage('package', self.args[0], oldstyle=False)
  File "/usr/bin/pycentral", line 338, in __init__
    self.read_pyfiles()
  File "/usr/bin/pycentral", line 369, in read_pyfiles
    self.pkgconfig.set('pycentral', 'include-links', '0')
  File "/usr/lib/python2.6/ConfigParser.py", line 669, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'pycentral'
dpkg: error processing language-selector-common (--remove):
 subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2143, in <module>
    main()
  File "/usr/bin/pycentral", line 2137, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1432, in run
    pkg = DebPackage('package', self.args[0], oldstyle=False)
  File "/usr/bin/pycentral", line 338, in __init__
    self.read_pyfiles()
  File "/usr/bin/pycentral", line 369, in read_pyfiles
    self.pkgconfig.set('pycentral', 'include-links', '0')
  File "/usr/lib/python2.6/ConfigParser.py", line 669, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'pycentral'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 language-selector-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
</code>

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.6
Package: python-central 0.6.11ubuntu2
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgremove language-selector-common
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/pycentral', 'pkgremove', 'language-selector-common']
SourcePackage: python-central
Title: pycentral crashed with NoSectionError in set()
Uname: Linux 2.6.28-9-generic i686
UserGroups:

Revision history for this message
Randy Wilson (blazerw) wrote :
Revision history for this message
Randy Wilson (blazerw) wrote :

Note that removing "/var/lib/dpkg/info/language-selector-common.postinst" removed the error, but I don't know if something in the postinst script wasn't done now.

Revision history for this message
Randy Wilson (blazerw) wrote :

This happened again. This time removing "/var/lib/dpkg/info/language-selector-common.prerm" removed the error. However, clearly we're having trouble with the situation where a section is searched for and it doesn't exist in the place where pycentral is looking.

visibility: private → public
Changed in python-central (Ubuntu):
importance: Undecided → High
milestone: none → lucid-updates
status: New → Confirmed
Changed in python-central (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Gediminas Paulauskas (menesis)
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! I subscribed Matthias Klose for reviewing the patch and getting it into sid/maverick. Then we can SRU this.

Changed in python-central (Ubuntu):
assignee: Gediminas Paulauskas (menesis) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-central (Ubuntu Lucid):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

dh_python2 is now used to replace that deprecated package

Changed in python-central (Ubuntu Lucid):
status: Confirmed → Invalid
Changed in python-central (Ubuntu):
status: Fix Committed → Invalid
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.