Package: python-central Version: 0.5.12 Hi. I have the following in my sources.list:
deb http://http.us.debian.org/debian/ unstable main non-free contrib deb-src http://http.us.debian.org/debian/ unstable main non-free contrib deb-src http://http.us.debian.org/debian/ testing main non-free contrib deb http://http.us.debian.org/debian/ testing main non-free contrib When I try to install python-cairo, I get the following error: 1. # apt-get install python-cairo 2. Reading package lists... Done 3. Building dependency tree... Done 4. The following NEW packages will be installed: 5. python-cairo 6. 0 upgraded, 1 newly installed, 0 to remove and 819 not upgraded. 7. Need to get 0B/81.2kB of archives. 8. After unpacking 242kB of additional disk space will be used. 9. Selecting previously deselected package python-cairo. 10. (Reading database ... 122498 files and directories currently installed.) 11. Unpacking python-cairo (from .../python-cairo_1.2.0-1_i386.deb)... 12. Setting up python-cairo (1.2.0-1) ... 13. Traceback (most recent call last): 14. File "/usr/bin/pycentral", line 1373, in ? 15. main() 16. File "/usr/bin/pycentral", line 1367, in main 17. rv = action.run(global_options) 18. File "/usr/bin/pycentral", line 870, in run 19. requested = pyversions.requested_versions_for_runtime( pkg.version_field, version_only=True) 20. File "/usr/share/pycentral-data/pyversions.py", line 162, in requested_versions_for_runtime 21. old = old_versions(version_only=True) 22. File "/usr/share/pycentral-data/pyversions.py", line 62, in old_versions 23. return [v[6:] for v in _old_versions] 24. TypeError: iteration over non-sequence 25. dpkg: error processing python-cairo (--configure): 26. subprocess post-installation script returned error exit status 1 27. Errors were encountered while processing: 28. python-cairo 29. E: Sub-process /usr/bin/dpkg returned an error code (1) It looks like pyversions.py looks for non-existent /usr/share/python/debian_defaults, and doesn't handle its absence gracefully. The following patch fixes the error for me: --- pyversions.py.orig 2007-01-06 02:34:44.000000000 -0500 +++ pyversions.py 2007-01-06 02:35:39.000000000 -0500 @@ -58,6 +58,8 @@ def old_versions(version_only=False): _old_versions = [s.strip() for s in value.split(',')] except NoOptionError: _old_versions = [] + else: + _old_versions = [] if version_only: return [v[6:] for v in _old_versions] else: @@ -76,6 +78,8 @@ def unsupported_versions(version_only=Fa _unsupported_versions = [s.strip() for s in value.split (',')] except NoOptionError: _unsupported_versions = [] + else: + _unsupported_versions = [] if version_only: return [v[6:] for v in _unsupported_versions] else: Cheers, Sadrul