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
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 python2. 6/dist- packages/ pgq/status. py", line 7
^
Traceback (most recent call last):
File "/usr/bin/pgqadm", line 10, in <module>
from pgq.status import PGQStatus
File "/usr/lib/
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 python2. 5/site- packages/ pgq/status. py:7: Warning: 'as' will become a reserved keyword in Python 2.6 python2. 5/site- packages/ pgq/status. py:9: Warning: 'as' will become a reserved keyword in Python 2.6 python2. 5/site- packages/ pgq/status. py:10: Warning: 'as' will become a reserved keyword in Python 2.6 python2. 5/site- packages/ pgq/status. py:13: Warning: 'as' will become a reserved keyword in Python 2.6 snapshot is installed
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
2009-09-09 11:20:56,055 11360 INFO plpgsql is installed
2009-09-09 11:20:56,056 11360 INFO txid_current_
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