#37542: fonttools @2.3 ttx fails on FSpOpenResFile on 64bit python -------------------------+-------------------------------- Reporter: macports8@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: fonttools -------------------------+-------------------------------- On Mountain Lion, the ttx tool fails with `AttributeError: 'module' object has no attribute 'FSpOpenResFile'` {{{ hannes-mbp:~ Hannes$ ttx Foo-Book.otf Dumping "Foo-Book.otf" to "Foo-Book.ttx"... Traceback (most recent call last): File "/opt/local/bin/ttx", line 11, in <module> ttx.main(sys.argv[1:]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttx.py", line 297, in main process(jobs, options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttx.py", line 282, in process action(input, output, options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttx.py", line 172, in ttDump fontNumber=options.fontNumber) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttLib/__init__.py", line 145, in __init__ if macUtils.getSFNTResIndices(file): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttLib/macUtils.py", line 28, in getSFNTResIndices resref = MyOpenResFile(path) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/FontTools/fontTools/ttLib/macUtils.py", line 18, in MyOpenResFile resref = Res.FSpOpenResFile(path, mode) AttributeError: 'module' object has no attribute 'FSpOpenResFile' }}} This change fixes the problem: https://github.com/mcolyer/fonttools/commit/e732bd3ba63c51df9aed903eb2147fa1... -- Ticket URL: <https://trac.macports.org/ticket/37542> MacPorts <http://www.macports.org/> Ports system for Mac OS