Skytools needs python2.5

Bug #380866 reported by maajeck
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
skytools (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Fabrice Coutadeur

Bug Description

Binary package hint: skytools

Hi

I've installed skytools 2.1.7 in ubuntu 9.04 (jaunty). But when I tried to run one of the tools I get the following error:

$ londiste
Traceback (most recent call last):
  File "/usr/bin/londiste", line 6, in <module>
    import sys, os, optparse, skytools
ImportError: No module named skytools

This can be fixed by installing python2.5 and fix the scripts:

for i in `dpkg -L skytools | grep '^/usr/bin/'`
do
   cp $i $i.bak
   sed -i 's@^#!/usr/bin/pytho.*$@#!/usr/bin/python2.5@' $i
done

Could someone create an update for this package?

Thanks,
Marco van Eck

Related branches

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

This package should work with python 2.6. I've checked and an error during the build in the origin of the problem.
Fixing first in Karmic.

Changed in skytools (Ubuntu):
assignee: nobody → fabrice_sp (fabricesp)
status: New → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Debdiff with the fix for Karmic

Changed in skytools (Ubuntu):
assignee: fabrice_sp (fabricesp) → nobody
status: In Progress → Confirmed
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package skytools - 2.1.8-2ubuntu1

---------------
skytools (2.1.8-2ubuntu1) karmic; urgency=low

  * Build for python 2.6 (LP: #380866):
    - debian/skytools.install: substitute references to site-package with
      *-package and reference to python2.5 with python*
    - debian/rules: add include of simple-patchsys.mk
    - debian/patches/01_python2.6.diff: patch Makefile file to add
      --install-layout=deb parameter when calling python.py install

 -- Fabrice Coutadeur <email address hidden> Sat, 13 Jun 2009 04:28:07 +0000

Changed in skytools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jon Erdman (debian-thewickedtribe) wrote :

Actually it really does require python 2.5. I ran this new package on jaunty after building the debs from the source package and under 2.6 I get:

jerdman@jerdman-desktop:~/pgq$ pgqadm pgqadm.ini install
Traceback (most recent call last):
  File "/usr/bin/pgqadm", line 10, in <module>
    from pgq.status import PGQStatus
  File "/usr/lib/python2.6/dist-packages/pgq/status.py", line 7
    def ival(data, as = None):
                    ^
SyntaxError: invalid syntax

I mucked around and installed 2.5 and then made some symlinks to the modules so I could run it and it works, but I get a bunch of:

jerdman@jerdman-desktop:~/pgq$ python2.5 /usr/bin/pgqadm pgqadm.ini install
/usr/lib/python2.5/site-packages/pgq/status.py:7: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/pgq/status.py:9: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/pgq/status.py:10: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/pgq/status.py:13: Warning: 'as' will become a reserved keyword in Python 2.6
2009-09-09 11:20:56,055 11360 INFO plpgsql is installed
2009-09-09 11:20:56,056 11360 INFO txid_current_snapshot is installed
2009-09-09 11:20:56,056 11360 INFO pgq is installed

So, it looks like the skytools folks will need to patch to change this variable name in order to run under 2.6, which stinks :(

Jon Erdman
StuckMojo on #postgresql @ irc.freenode.net

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Actually, this is another problem, as stated here: http://pgfoundry.org/pipermail/skytools-users/2008-November/000864.html
pgqadm has to be adapted, to work correctly with python2.6.

Please open another bug report to get a chance to fix it.

Thanks,
Fabrice

Revision history for this message
Jon Erdman (debian-thewickedtribe) wrote :

So, do we open a new bug to make this package depend on python2.5, or just reopen this one?

I'm new to launchpad so I'm not sure of the procedure...

Jon Erdman
StuckMojo on #postgresql @ irc.freenode.net

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Please open a new one with the problem in pgqadm, as the other programs work correctly and the fix on pqgadm is quite easy.

Thanks,
Fabrice.

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.