Packages seem to be uninstallable if they have no Python-Version field.

Bug #80588 reported by Sarah Kowalik
6
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-central

(Reading database ... 164438 files and directories currently installed.)
Removing k3d ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1348, in ?
    main()
  File "/usr/bin/pycentral", line 1342, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 932, in run
    pkg.read_version_info()
  File "/usr/bin/pycentral", line 535, in read_version_info
    raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error processing k3d (--purge):
 subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1348, in ?
    main()
  File "/usr/bin/pycentral", line 1342, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 865, in run
    pkg.read_version_info()
  File "/usr/bin/pycentral", line 535, in read_version_info
    raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 k3d

Revision history for this message
Paul Williams (pwill) wrote :

Confirmed.
I am having trouble upgrading python2.5, and it spits out this same error.

Revision history for this message
Luke Vukasin (l-vukasin) wrote :

I just had the exact same problem here.
I think i found the cause.
by doing:
"dpkg-query -s k3d"
i get the field:
"Python-Versions: current" (amongst all the other fields)

and when i inspect the "/usr/bin/pycentral" file on in the function where the last error raised (line 535) it looks to me as though its searching for "Python-Version:" (without the 's')

so in the pycentral file i added in the 's' and the k3d packaged was removed successfuly. I'm still only very new to linux, and not sure if its fault of pycentral, or if its because of k3d's description, but thats how i found to fix the problem

Revision history for this message
Luke Vukasin (l-vukasin) wrote :

Ooops sorry, posted bit too quickly.

The problem was in a bug report for the k3d package as well and someone has released a patch file for it.
its at the address:
https://bugs.launchpad.net/ubuntu/+source/k3d/+bug/64848

Revision history for this message
nardis_Miles1 (edwardsa) wrote :

Thanks for this post. I was updating to feisty and k3d could be neither installed nor removed. I did alter pycentral and that allowed installation of k3d.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.