Failures of installed executables and scripts

43 views
Skip to first unread message

Clint Goss

unread,
Mar 2, 2019, 12:37:26 PM3/2/19
to fonttools
Hi All -

I am having failures in some, but not all, of the .EXE files and .PY scripts that seem (to me) like they should be working (based on their prominent location).

The merge.py and ttx.py scripts in \Python37\Lib\site-packages\fontTools work AOK, but afmLib.py, fontbuilder.py, and inspect.py fail (details below).

From any directory (\Python37\Scripts\ is on my PATH), pyftsubset.exe and pyftmerge.exe function, but fonttools.exe, pyftinspect.exe fail (details below).

Are these failures OK, or do I have some horrible mis-configuration (or mis-conception)?

*** Setup

Python 3.7.2
FontTools 3.38.0

*** In ... \Python37\Lib\site-packages\fontTools>

> python afmLib.py
Traceback (most recent call last):
  File "afmLib.py", line 350, in <module>
    import EasyDialogs
ModuleNotFoundError: No module named 'EasyDialogs'

> python fontbuilder.py
Traceback (most recent call last):
  File "fontbuilder.py", line 117, in <module>
    from .misc.py23 import *
ModuleNotFoundError: No module named '__main__.misc'; '__main__' is not a package

> python inspect.py
Traceback (most recent call last):
  File "inspect.py", line 19, in <module>
    import gtk
ModuleNotFoundError: No module named 'gtk'

> python merge.py
usage: pyftmerge font...


> python ttx.py
usage: ttx [options] inputfile1 [... inputfileN]

  TTX -- From OpenType To XML And Back

  If an input file is a TrueType or OpenType font file, it will be
...

*** In any directory

> fonttools
Traceback (most recent call last):
  File "c:\app\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\app\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\App\Python37\Scripts\fonttools.exe\__main__.py", line 9, in <module>
  File "c:\app\python37\lib\site-packages\fontTools\__main__.py", line 24, in main
    mod = 'fontTools.'+sys.argv[1]
IndexError: list index out of range

> pyftinspect
Traceback (most recent call last):
  File "c:\app\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\app\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\App\Python37\Scripts\pyftinspect.exe\__main__.py", line 5, in <module>
  File "c:\app\python37\lib\site-packages\fontTools\inspect.py", line 19, in <module>
    import gtk
ModuleNotFoundError: No module named 'gtk'

> pyftsubset
usage: pyftsubset font-file [glyph...] [--option=value]...
Try pyftsubset --help for more information.

> pyftmerge
usage: pyftmerge font...
Reply all
Reply to author
Forward
0 new messages