I got this error when trying to use
stemhist -a on an OTF:
Traceback (most recent call last):
File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 934, in <module>
main()
File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 923, in main
collectStemsFont(path, options, txPath)
File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 774, in collectStemsFont
fontinfo = getFontInfo(topDict, psName, options)
File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 458, in getFontInfo
fontinfoStr = " ".join(fontinfo)
TypeError: sequence item 5: expected string, int found
To fix this, in
FDK/Tools/SharedData/FDKScripts/StemHist.py, I changed line 458 from:
fontinfoStr = " ".join(fontinfo)
to:
fontinfoStr = " ".join([str(x) for x in fontinfo])
Hope this helps someone out there :-)