package python-gadfly 1.0.0-13ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1 (uses keyword "as", illegal from Python 2.6)

Bug #341057 reported by Max Bowsher
4
Affects Status Importance Assigned to Milestone
gadfly (Ubuntu)
Fix Released
High
Unassigned
Jaunty
Fix Released
High
Unassigned

Bug Description

Binary package hint: gadfly

Compiling /usr/lib/python2.6/dist-packages/gadfly/bindings.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/gadfly/bindings.py', 64, 37, ' [create, view, name, namelist, as, selection] = l\n'))

Needs to be patched to not use "as" as a variable name, since it's a keyword from Python 2.6 onwards.

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: python-gadfly 1.0.0-13ubuntu1
PackageArchitecture: all
SourcePackage: gadfly
Title: package python-gadfly 1.0.0-13ubuntu1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-9-generic x86_64

Related branches

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

From my upgrade test:

Setting up python-gadfly (1.0.0-13ubuntu1) ...
/usr/lib/python2.5/site-packages/gadfly/bindings.py:64: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/gadfly/bindings.py:291: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/gadfly/bindings.py:295: Warning: 'as' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/gadfly/bindings.py:549: Warning: 'as' will become a reserved keyword in Python 2.6
Compiling /usr/lib/python2.6/dist-packages/gadfly/bindings.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/gadfly/bindings.py', 64, 37, ' [create, view, name, namelist, as, selection] = l\n'))
pycentral: pycentral pkginstall: error byte-compiling files (24)
pycentral pkginstall: error byte-compiling files (24)
dpkg: error processing python-gadfly (--configure):
 subprocess post-installation script returned error exit status 1

Changed in gadfly:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gadfly - 1.0.0-13ubuntu2

---------------
gadfly (1.0.0-13ubuntu2) jaunty; urgency=low

  * fix python2.6 install error (LP: #341057)

 -- Michael Vogt <email address hidden> Wed, 11 Mar 2009 19:30:13 +0100

Changed in gadfly:
status: Confirmed → Fix Released
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.