Bug#418132: python-uno: Upgrade fails: UnboundLocalError: local variable 'config' referenced before assignment
Package: python-uno
Version: 2.0.4.dfsg.2-6
Severity: normal
I got an error while trying to aptitude upgrade.
The python-minimal package had a similar problem, and I have filed a bug there too.
Preparing to replace python-uno 2.0.4.dfsg.2-6 (using .../python-uno_2.0.4.dfsg.2-7_i386.deb) ...
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 943, in run
runtimes = get_installed_runtimes(with_unsupported=True)
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: 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/bin/pycentral", line 1373, in ?
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 943, in run
runtimes = get_installed_runtimes(with_unsupported=True)
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 /var/cache/apt/archives/python-uno_2.0.4.dfsg.2-7_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
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 865, in run
runtimes = 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 while cleaning up:
subprocess post-installation script returned error exit status 1
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages python-uno depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-21 GCC support library
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libstlport4.6c2 4.6.2-3 STLport C++ class library
ii openoffice.org-core 2.0.4.dfsg.2-7 OpenOffice.org office suite archit
ii python 2.4.4-2 An interactive high-level object-o
ii python-central 0.5.13 register and build utility for Pyt
pn python2.4 <none> (no description available)
python-uno recommends no packages.
-- no debconf information
Reply to: