[SRU: EDGY] packaging typo - k3d does not install

Bug #64848 reported by David Fokkema
138
Affects Status Importance Assigned to Milestone
k3d (Ubuntu)
Fix Released
High
Adrien Cunin
Nominated for Feisty by William Grant
Edgy
Won't Fix
High
William Grant
olive (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Feisty by William Grant
Edgy
Invalid
Undecided
Unassigned

Bug Description

On installing k3d, dpkg aborts with the following error:

Setting up k3d (0.5.12.0-1ubuntu2) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1329, in ?
    main()
  File "/usr/bin/pycentral", line 1323, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 858, in run
    pkg.read_version_info()
  File "/usr/bin/pycentral", line 528, in read_version_info
    raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error processing k3d (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 k3d
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
shadowcatcher (shadowcatcher) wrote :

have same problem....
it's impossible to make a "dpkg -e" on this paquetage...

Revision history for this message
ow3n (ubuntu-electr01ik) wrote : Re: k3d does not install (or uninstall)

I did a dist-upgrade from dapper to edgy, and k3d consistently fails during any install/remove/purge operation. apt either tries to configure k3d while installing another package, or fails during a remove/autoremove operation on k3d itself.

This is the output of apt-get remove:
-----
>:$ sudo apt-get remove k3d
Reading package lists... Done
Building dependency tree... Done
The following packages were automatically installed and are no longer required:
  k3d
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  k3d
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 44.5MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 273621 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 (--remove):
 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----

I tried a re-install of python-central, but I still get the same result.

Revision history for this message
Andy Choens (andy-choens) wrote : Re: k3d does not install

I've been busy with midterms, so I haven't played with K3D much this month, but I'll confirm the upgrade/intall/deinstall bug. It doesn't seem to have affected it's ability to work. What little I've done with k3d lately, it seems to work fine.

Revision history for this message
Alex Sutcliffe (alex.sutcliffe) wrote :

Confirmed - Edgy and 0.5.12.0-1ubuntu2. https://launchpad.net/distros/ubuntu/+source/k3d/+bug/68066 is a duplicate of this bug.

As submitter of 68066 noted, this looks to be the problem:

Python-Versions: current

which should be

Python-Version: current

Changed in k3d:
status: Unconfirmed → Confirmed
Revision history for this message
Alex Sutcliffe (alex.sutcliffe) wrote :

I think the root cause is a typo in the debian/control file in the source package:

XB-Python-Versions: ${python:Versions}

should be

XB-Python-Version: ${python:Versions}

I've attached a patch for the source package but I'm not sure if I've done it correctly and would appreciate feedback!

Alex

Revision history for this message
Jeff Sparkes (jsparkes) wrote : Re: [Bug 64848] Re: k3d does not install

Since that's the only occurrence of the string "Versions" in the source
package,
it must be the one that needs to be changed.

Your patch looks good to me. Not sure if that means anything...

On 10/26/06, Alex Sutcliffe <email address hidden> wrote:
>
> I think the root cause is a typo in the debian/control file in the
> source package:
>
> XB-Python-Versions: ${python:Versions}
>
> should be
>
> XB-Python-Version: ${python:Versions}
>
> I've attached a patch for the source package but I'm not sure if I've
> done it correctly and would appreciate feedback!
>
> Alex
>
>
> ** Attachment added: "fixes typo in control file - XB-Python-Versions
> should be XB-Python-Version"
> http://librarian.launchpad.net/4937415/patch-file
>
> --
> k3d does not install
> https://launchpad.net/bugs/64848
>

Revision history for this message
Lorenzo J. Lucchini (ljl) wrote : Re: k3d does not install

I can confirm the behavior on Kubuntu Edgy final.

Revision history for this message
Ryan Stonecipher-Fisher (ryan-stonecipher-fisher) wrote :

Same behavior here.

Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

there is a fix for this in the debian package

Revision history for this message
Fabián Rodríguez (magicfab) wrote : Re: packaging typo - k3d does not install

Is there any workaround for this ?

Revision history for this message
David (kubuntu-them) wrote :

I don't know much about Debian packages, but the unremovable error in apt-get is annoying.

If I download the source package, untar it edit the file mentioned and then tar it back up and build it via dpkg -b, take the binary package and dpkg -i it will that remove the error?

If that is not the correct process can someone explain what the correct process is?

Thanks,

david

Revision history for this message
John Pye (jdpipe) wrote : Re: [Bug 64848] Re: packaging typo - k3d does not install

You can remove it by moving /usr/bin/pycentral to /tmp, then apt-get
remove k3d, then move pycentral back into place. I don't know if this
removes it properly or not, but at least it disappears from the package
list.

Cheers
JP

David wrote:
> I don't know much about Debian packages, but the unremovable error in
> apt-get is annoying.
>
> If I download the source package, untar it edit the file mentioned and
> then tar it back up and build it via dpkg -b, take the binary package
> and dpkg -i it will that remove the error?
>
> If that is not the correct process can someone explain what the correct
> process is?
>
> Thanks,
>
> david
>
>

Revision history for this message
Ali Sabil (asabil) wrote : Re: packaging typo - k3d does not install

I confirm this bug

Revision history for this message
Adrien Cunin (adri2000) wrote :

Bug rejected in olive. If there is the same problem in olive, file an other bug.

Changed in olive:
status: Unconfirmed → Rejected
Changed in k3d:
importance: Undecided → High
Revision history for this message
Adrien Cunin (adri2000) wrote :

I will request a sync for this bug. So it will be fixed in feisty but not in edgy unless someone makes a SRU proposal: https://wiki.ubuntu.com/StableReleaseUpdates

Changed in k3d:
assignee: nobody → adri2000
Revision history for this message
Adrien Cunin (adri2000) wrote :

Fix released in feisty.

Changed in k3d:
status: Confirmed → Fix Released
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

patch attached for SRU.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

(confirming for edgy)

Changed in k3d:
status: Fix Released → Confirmed
Revision history for this message
Steve Kowalik (stevenk) wrote :

Patch is small, and looks sane. Fine with me, +1

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

proper sru.debdiff - no changes, apart from the version number. (darn dch -i)

Revision history for this message
Steve Kowalik (stevenk) wrote :

Yes, with the fixed version number it's still +1. :-)

Revision history for this message
Daniel T Chen (crimsun) wrote :

I believe we're using 0.5.12.0-1ubuntu2.1~proposed1 now.

Revision history for this message
Sven Herzberg (herzi) wrote :

Dudes, you absolutely rock! Now, if someone could fix bug #63992… that'd be totally rad.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Daniel, is that for main, or universe?

Steve says it's for main.

I've not seen documentation that it's for universe - can you please confirm?

If you confirm it, i'll make a new debdiff before i upload.

Revision history for this message
Steve Kowalik (stevenk) wrote :

What I meant to say was that it has been adopted in main, so we are following suit. From what I've seen, anyway.

Revision history for this message
StefanPotyra (sistpoty) wrote :

+1.

I pretty much like the the new versioning scheme, so I'd appreciate a debdiff with it. However that doesn't make the current proposed debdiff wrong ;)

Revision history for this message
Reinhard Tartler (siretart) wrote :

+1, please proceed with uploading to edgy-proposed

Revision history for this message
Daniel T Chen (crimsun) wrote :

Sarah, what Steve said above. The debdiff is fine otherwise, +1.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 16 Dec 2006 15:58:08 +1100
Source: k3d
Binary: k3d-dev k3d
Architecture: source
Version: 0.5.12.0-1ubuntu2.1~proposed1
Distribution: edgy-proposed
Urgency: low
Maintainer: David Martínez Moreno <email address hidden>
Changed-By: Sarah Hobbs <email address hidden>
Description:
 k3d - 3D modeling and animation system
 k3d-dev - 3D modeling and animation system - Development files
Changes:
 k3d (0.5.12.0-1ubuntu2.1~proposed1) edgy-proposed; urgency=low
 .
   * Fixes XB-Python-Version typo, meaning that this package is
     installable/removable once again.
   * Closes malone #64848, #75794, #72700, #68066
Files:
 9b69db8e90fd291e4125b48a0c0d5369 1096 graphics optional k3d_0.5.12.0-1ubuntu2.1~proposed1.dsc
 55ba7f200e85454011bd73ff02c66645 176825 graphics optional k3d_0.5.12.0-1ubuntu2.1~proposed1.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFhl9z7/o1b30rzoURAtj6AJ9hy7FvTDGBjDpyFptxE/131e7mfgCeKVoE
PJCfuGDWVWPMRK3GdDlCEWU=
=K+DH
-----END PGP SIGNATURE-----

Changed in k3d:
status: Confirmed → In Progress
Adrien Cunin (adri2000)
Changed in olive:
status: Unconfirmed → Rejected
Changed in k3d:
assignee: nobody → hobbsee
importance: Undecided → High
status: Unconfirmed → In Progress
status: In Progress → Fix Released
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Accepted into -proposed; please solicit testing.

Changed in k3d:
status: In Progress → Fix Committed
Revision history for this message
Pontus Schönberg (pontus-schonberg) wrote :

I just tried the new package, but it doesn't seem to fix anything:

(Reading database ... 118223 files and directories currently installed.)
Preparing to replace k3d 0.5.12.0-1ubuntu2 (using .../k3d_0.5.12.0-1ubuntu2.1~proposed1_i386.deb) ...
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: 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 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 /home/mcduck/Desktop/k3d_0.5.12.0-1ubuntu2.1~proposed1_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 1

Revision history for this message
Sven Herzberg (herzi) wrote :

You need to do it like that:

mv /usr/bin/pythoncentral /tmp
dpkg -r k3d
mv /tmp/pythoncentral /usr/bin
apt-get install k3d

Revision history for this message
Aleix Pol Gonzàlez (aleixpol) wrote :

At the date of today in still doesn't work. Now I can't remove the package and I don't know what to do with the error :S.

Revision history for this message
vikingdocerrado (vikingdocerrado) wrote : RE: [Bug 64848] Re: [SRU: EDGY] packaging typo - k3d does not install

The patch should be working, but if you are having problems using it you can fix it manually:
- The error is in the file/var/lib/dpkg/status

- So, open the konsole/terminal and do something like:
sudo nano /var/lib/dpkg/status

- Find the entry for the k3d package.

- Now go to the last line of the k3d entry, it is:
Python-Versions: current
- But it should bePython-Version: current

- You just have to remove the "s" and the problem should be gone.

> From: <email address hidden>> Date: Fri, 23 Mar 2007 14:41:18 +0000> Subject: [Bug 64848] Re: [SRU: EDGY] packaging typo - k3d does not install> To: <email address hidden>> > At the date of today in still doesn't work. Now I can't remove the> package and I don't know what to do with the error :S.> > -- > [SRU: EDGY] packaging typo - k3d does not install> https://launchpad.net/bugs/64848
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

Revision history for this message
William Grant (wgrant) wrote :

Sarah's fix was wrong, but I'll have a new fix in a minute. This one will work, and hopefully unbreak Feisty upgrades.

Changed in k3d:
assignee: hobbsee → fujitsu
status: Fix Committed → In Progress
Revision history for this message
William Grant (wgrant) wrote :

Here's a debdiff. I'm test-building it (it takes a number of hours to build), but it should be OK. I'll upload when I get up in the morning.

Revision history for this message
William Grant (wgrant) wrote :

Uploaded 0.5.12.0-1ubuntu2.1~proposed2 to edgy-proposed. We need to wait for the archive admins to accept it, then get two confirmations that it works (ie. it installs and removes properly, and it's possible to upgrade from the old, broken version)

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for handling this!

If that is a issue in feisty too, we should do a sru for feisty-proposed too.

Revision history for this message
William Grant (wgrant) wrote :

Good point; there'll need to be a fix in feisty-updates for those who have already had their sources.lists changed over. I'll prepare an update now.

Revision history for this message
William Grant (wgrant) wrote :

I've uploaded a fix to feisty-proposed. Note that this only breaks upgrades from Edgy, not new installations.

Revision history for this message
William Grant (wgrant) wrote :

Accepted into {edgy,feisty}-proposed. If anybody is stuck upgrading, install either of those packages and try the upgrade again. Report the results back here.

We should also have a couple of people confirm that it installs OK in Edgy, just in case.

Changed in k3d:
status: In Progress → Fix Committed
Revision history for this message
Riccardo Lucchese (riccardo.lucchese) wrote :

Hi William,

What should I exactly do ?
What to pactch with the diff?

Thanks,
Riccardo

ps. I've Feisty installed, so the issue isn't only in Edgy.

Revision history for this message
Martin Pitt (pitti) wrote :

Nobody tested the -proposed upload and gave feedback here for more than half a year, and I guess nobody cares about edgy universe any more, so I removed the edgy-proposed package.

Changed in k3d:
status: Fix Committed → Won't Fix
Revision history for this message
Martin Pitt (pitti) wrote :

Likewise with the feisty-proposed package.

Revision history for this message
Dries Desmet (dries) wrote :

I can confirm that on a fresh gutsy installation (amd64) k3d installs without a glitch. Thanks for fixing this.

Revision history for this message
Jeff Sparkes (jsparkes) wrote :

http://41064.tiboulogo.com

--
Jeff Sparkes
<email address hidden>

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.