package fonttools 2.2-2ubuntu1 failed to install/upgrade:

Bug #346820 reported by fritz276
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fonttools (Ubuntu)
Fix Released
High
Martin Pitt
Jaunty
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: fonttools

Upgrading to Jaunty.

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage:
 ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
NonfreeKernelModules: nvidia
Package: fonttools 2.2-2ubuntu1
SourcePackage: fonttools
Title: package fonttools 2.2-2ubuntu1 failed to install/upgrade:
Uname: Linux 2.6.27-14-generic x86_64

Related branches

Revision history for this message
fritz276 (fritz276) wrote :
Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

I can confirm this bug on Jaunty. This error shows up for a couple of days now. All other package upgrages are working normally, only fonttools fails to install/upgrade with:

---snip---
Setting up fonttools (2.2-2ubuntu1) ...
Compiling /usr/lib/python2.6/dist-packages/FontTools/fontTools/ttLib/tables/ttProgram.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/FontTools/fontTools/ttLib/tables/ttProgram.py', 397, 3, '\tas = p.getAssembly()\n'))

pycentral: pycentral pkginstall: error byte-compiling files (91)
pycentral pkginstall: error byte-compiling files (91)
dpkg: error processing fonttools (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 fonttools
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up fonttools (2.2-2ubuntu1) ...
Compiling /usr/lib/python2.6/dist-packages/FontTools/fontTools/ttLib/tables/ttProgram.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/FontTools/fontTools/ttLib/tables/ttProgram.py', 397, 3, '\tas = p.getAssembly()\n'))

pycentral: pycentral pkginstall: error byte-compiling files (91)
pycentral pkginstall: error byte-compiling files (91)
---snap---

Changed in fonttools:
status: New → Confirmed
Revision history for this message
Olivier Berten (olivier-berten) wrote :

This is most probably the reason of the problem:

"Warning: 'as' will become a reserved keyword in Python 2.6"

Revision history for this message
Olivier Berten (olivier-berten) wrote :

changing lines 397-398
 as = p.getAssembly()
 p.fromAssembly(as)
to
 assembly = p.getAssembly()
 p.fromAssembly(assembly)
(or anything else but "as")

removes the error

Revision history for this message
Paul Wise (Debian) (pabs) wrote :

This is fixed in the upstream SVN:

http://fonttools.svn.sourceforge.net/viewvc/fonttools/trunk/Lib/fontTools/ttLib/tables/ttProgram.py?r1=563&r2=562&pathrev=563

I'll be making a new upstream release soonish and will package it for Debian soon after that.

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

This happened for David Mandala as well, subscribing him.

Martin Pitt (pitti)
Changed in fonttools (Ubuntu Jaunty):
assignee: nobody → pitti
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fonttools - 2.2-2ubuntu2

---------------
fonttools (2.2-2ubuntu2) jaunty; urgency=low

  * Lib/fontTools/ttLib/tables/ttProgram.py: Apply patch from upstream SVN
    r563 to rename a variable "as". "as" is a reserved keywoard and breaks
    compilation with Python 2.6. Thanks to Paul Wise for pointing this out.
    (LP: #346820)

 -- Martin Pitt <email address hidden> Tue, 31 Mar 2009 12:10:16 +0200

Changed in fonttools:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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