[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#418132: python-uno: Upgrade fails: UnboundLocalError: local variable 'config' referenced before assignment



Hi,

Same here..

olive:/home/kartik# apt-get install python-uno
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
 python-uno
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
Need to get 0B/356kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 76044 files and directories currently installed.)
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
Errors were encountered while processing:
/var/cache/apt/archives/python-uno_2.0.4.dfsg.2-7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Something broken in python-central?

Regards,
Kartik Mistry



Reply to: