Bug 512504 - syntaxError: invalid syntax File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/tables/ttProgram.py", line 397 as = p.getAssembly()
Summary: syntaxError: invalid syntax File "/usr/lib64/python2.6/site-packages/FontTool...
Alias: None
Product: Fedora
Classification: Fedora
Component: fonttools
Version: 13
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Roozbeh Pournader
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F12Target
TreeView+ depends on / blocked
Reported: 2009-07-18 08:38 UTC by Nicolas Mailhot
Modified: 2010-07-29 05:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-29 05:50:22 UTC
Type: ---

Attachments (Terms of Use)
simple patch to fix this (289 bytes, patch)
2009-09-30 03:06 UTC, Akira TAGOH
no flags Details | Diff

Description Nicolas Mailhot 2009-07-18 08:38:52 UTC
Description of problem:

While building latest heuristica snapshot

rm Heuristica-Regular.gen.ttx
rm: cannot remove `Heuristica-Regular.gen.ttx': No such file or directory
ttx Heuristica-Regular.gen.ttf
make: [Heuristica-Regular.gen.ttx] Error 1 (ignored)
Dumping "Heuristica-Regular.gen.ttf" to "Heuristica-Regular.gen.ttx"...
Dumping 'GlyphOrder' table...
Dumping 'head' table...
Dumping 'hhea' table...
Dumping 'maxp' table...
Dumping 'OS/2' table...
Dumping 'hmtx' table...
Dumping 'cmap' table...
Traceback (most recent call last):
  File "/usr/bin/ttx", line 11, in <module>
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttx.py", line 288, in main
    process(jobs, options)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttx.py", line 273, in process
    action(input, output, options)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttx.py", line 170, in ttDump
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/__init__.py", line 267, in saveXML
    self._tableToXML(tableWriter, tag, progress)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/__init__.py", line 282, in _tableToXML
    table = self[tag]
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/__init__.py", line 366, in __getitem__
    tableClass = getTableClass(tag)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/__init__.py", line 774, in getTableClass
    module = getTableModule(tag)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/__init__.py", line 763, in getTableModule
    __import__("fontTools.ttLib.tables." + pyTag)
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/tables/_f_p_g_m.py", line 3, in <module>
    import ttProgram
  File "/usr/lib64/python2.6/site-packages/FontTools/fontTools/ttLib/tables/ttProgram.py", line 397
    as = p.getAssembly()
SyntaxError: invalid syntax
make: *** [Heuristica-Regular.gen.ttx] Error 1
make: *** Waiting for unfinished jobs....

Version-Release number of selected component (if applicable):

fonttools           x86_64 2.2-5.fc11

Comment 1 Akira TAGOH 2009-09-30 03:06:40 UTC
Created attachment 363113 [details]
simple patch to fix this

I see the same issue with ttx. just attached a simple patch. modified ttx works fine for me.

Comment 2 M.R. Beauchamp 2010-01-16 23:47:47 UTC
The patch works for me, too. Now we need packages to fix ttx.

Comment 3 Bug Zapper 2010-03-15 12:42:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:

Comment 4 Parag Nemade 2010-07-29 05:50:22 UTC
This looks fixed long ago

Note You need to log in before you can comment on or make changes to this bug.