Subject: upgrade from stable to testing fails when configuring python-newt
Package: python-newt
Version: 0.52.2-9
Severity: important

*** Please type your report below this line ***

I started upgrading a system from sarge to etch. The upgrade failed due to:

Setting up python-newt (0.52.2-9) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 870, in run
    requested = pyversions.requested_versions_for_runtime(pkg.version_field,
version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 162, in 
requested_versions_for_runtime
    old = old_versions(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 62, in old_versions
    return [v[6:] for v in _old_versions]
TypeError: iteration over non-sequence
dpkg: error processing python-newt (--configure):
 subprocess post-installation script returned error exit status 1

dpkg --configure --pending gives the same problem. 

It looks as if _old_versions is null. The function is:
_old_versions = None        
def old_versions(version_only=False):        
    global _old_versions        
    if not _old_versions:            
        if os.path.exists('/usr/share/python/debian_defaults'):
            from ConfigParser import SafeConfigParser, NoOptionError
            config = SafeConfigParser()        
            config.readfp(file('/usr/share/python/debian_defaults'))
            try:        
                value = config.get('DEFAULT', 'old-versions')  
                _old_versions = [s.strip() for s in value.split(',')]
            except NoOptionError:        
                _old_versions = []                    
    if version_only:     
        return [v[6:] for v in _old_versions]
    else:
        return _old_versions  


If /usr/share/python/debian_defaults does not exist then this code gives the
above error. That is part of python_minimal, which is not installed on this
machine.

The dependencies needs to be fixed so that python-minimal is installed
before python-newt is configured, and/or to deal properly with the missing
/usr/share/python/debian_defaults.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-3-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python-newt depends on:
ii  libnewt0.52                   0.52.2-9   Not Erik's Windowing Toolkit - tex
ii  python                        2.3.5-2    An interactive high-level object-o

python-newt recommends no packages.

-- no debconf information


Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/                 play: http://wookware.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to