severity 406835 grave
tags 406835 + patch
thanks

This should probably be merged with #418162 and reassigned to python- central.

I'm experiencing the same issue with two systems, downgrading to 2.4.4-2 doesn't work either.

Errors were encountered while processing:
python2.4-minimal
python2.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python2.4-minimal (2.4.4-3) ...
Linking and byte-compiling packages for runtime python2.4...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1363, in main
    if action.check_args(global_options):
  File "/usr/bin/pycentral", line 971, in check_args
    for rt in get_installed_runtimes():
  File "/usr/bin/pycentral", line 196, in get_installed_runtimes
    supported = pyversions.supported_versions()
File "/usr/share/pycentral-data/pyversions.py", line 98, in supported_versions
    value = read_default('supported-versions')
File "/usr/share/pycentral-data/pyversions.py", line 22, in read_default
    value = config.get('DEFAULT', name)
UnboundLocalError: local variable 'config' referenced before assignment
dpkg: error processing python2.4-minimal (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
python2.4 depends on python2.4-minimal (= 2.4.4-3); however:
  Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.4-minimal
python2.4

The problem is in /usr/share/pycentral-data/pyversions.py in python- central, config needs to be declared earlier:

--- /usr/share/pycentral-data/pyversions.py 2007-04-06 17:09:36.000000000 +0100
+++ /home/jamie/pyversions.py   2007-04-07 18:44:11.000000000 +0100
@@ -12,9 +12,9 @@
def read_default(name=None):
     global _defaults
     from ConfigParser import SafeConfigParser, NoOptionError
+    config = SafeConfigParser()
     if not _defaults:
         if os.path.exists('/usr/share/python/debian_defaults'):
-            config = SafeConfigParser()
             config.readfp(file('/usr/share/python/debian_defaults'))
             _defaults = config
     if _defaults and name:

--
-Jamie L. Penman-Smithson <[EMAIL PROTECTED]>
 t: +44 1273 424795; f: +44 1273 424795
 PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8
 never send mail to: [EMAIL PROTECTED]


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to