[MacPorts] #37542: fonttools @2.3 ttx fails on FSpOpenResFile on 64bit python
#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
#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 Resolution: | Keywords: Port: fonttools | --------------------------+-------------------------------- Comment (by jmr@…): Looks like this change in the official upstream repo is more correct: http://fonttools.svn.sourceforge.net/viewvc/fonttools/trunk/Lib/fontTools/tt... -- Ticket URL: <https://trac.macports.org/ticket/37542#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 Resolution: | Keywords: Port: fonttools | --------------------------+-------------------------------- Comment (by macports8@…): Replying to [comment:1 jmr@…]:
Looks like this change in the official upstream repo is more correct: http://fonttools.svn.sourceforge.net/viewvc/fonttools/trunk/Lib/fontTools/tt...
I can confirm that this also fixes the problem for me. As to whether it is more correct or not, I will have to defer to your judgement. I don't know this part of the Python runtime library well enough. -- Ticket URL: <https://trac.macports.org/ticket/37542#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts