Package: python-ropemacs
Version: 0.6c2-3
Severity: grave
Tags: patch
Justification: renders package unusable

python-ropemacs fails to install with the following error:


sudo aptitude install python-ropemacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  python-ropemacs
0 packages upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B/24.3kB of archives. After unpacking 160kB will be used.
Writing extended state information... Done
Selecting previously deselected package python-ropemacs.
(Reading database ... 228584 files and directories currently installed.)
Unpacking python-ropemacs (from .../python-ropemacs_0.6c2-3_all.deb) ...
Setting up python-ropemacs (0.6c2-3) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2096, in <module>
    main()
  File "/usr/bin/pycentral", line 2090, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1386, in run
    pkg.read_version_info()
  File "/usr/bin/pycentral", line 804, in read_version_info
    raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error processing python-ropemacs (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python-ropemacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done


Indeed, the package doesn't have the Python-Version field (but others packages 
that
use python-central have it):

$ dpkg-deb -f /var/cache/apt/archives/python-ropemacs_0.6c2-3_all.deb | grep 
Python-Version
$ dpkg-deb -f /var/cache/apt/archives/python-pysqlite2_2.5.0-2_i386.deb | grep 
Python-Version
Python-Version: 2.4, 2.5
$

The problem is related to the values of the XB-Python-Version and Depends fields
inside the debian/control (see the small patch attached that fixes the problem).

 
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-ropemacs depends on:
ii  pymacs                        0.23-1.1   interface between Emacs Lisp and P
ii  python                        2.5.4-3    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt
ii  python-rope                   0.9.2-1    Python refactoring library

python-ropemacs recommends no packages.

python-ropemacs suggests no packages.

-- no debconf information
--- debian/control.orig 2009-03-12 14:03:57.000000000 +0800
+++ debian/control      2009-03-12 14:12:55.000000000 +0800
@@ -12,8 +12,8 @@
 
 Package: python-ropemacs
 Architecture: all
-Depends: ${Python:Depends}, pymacs, python-rope
-XB-Python-Version: ${Python:Versions}
+Depends: ${python:Depends}, pymacs, python-rope
+XB-Python-Version: ${python:Versions}
 Description: Emacs mode for Python refactoring
  Rope is a Python library that can be used with several editors and IDEs. It 
  provides many refactoring operations as well as forms of code assistance like 

Reply via email to