MathHubInfo / Legacy-localmh

DEPRECATED - A cross-repository administration tool for the local authoring in MathHub.info
1 stars 0 forks source link

lmh symbols crashes #246

Closed kohlhase closed 8 years ago

kohlhase commented 8 years ago

I get

lmh symbols
Traceback (most recent call last):
  File "/path/to/localmh/bin/lmh", line 13, in <module>
    main()
  File "/path/to/localmh/bin/lmh", line 10, in main
    lmh.run(sys.argv[1:])
  File "/path/to/localmh/bin/../lmh/__init__.py", line 85, in run
    if main(argv):
  File "/path/to/localmh/bin/../lmh/__init__.py", line 79, in main
    return submods[args.action].do(args, unknown)
  File "/path/to/localmh/bin/../lmh/commands/symbols/__init__.py", line 27, in do
    return run.do(arguments, unparsed)
  File "/path/to/localmh/bin/../lmh/commands/symbols/run.py", line 10, in do
    res = check_symbols(p) and res
  File "/path/to/localmh/bin/../lmh/lib/modules/symbols.py", line 223, in check_symbols
    mods = list(filter(lambda x:needsPreamble(x), mods))
  File "/path/to/localmh/bin/../lmh/lib/modules/symbols.py", line 223, in <lambda>
    mods = list(filter(lambda x:needsPreamble(x), mods))
  File "/path/to/localmh/bin/../lmh/lib/modules/__init__.py", line 29, in needsPreamble
    return re.search(r"\\begin(\w)*{document}", read_file(file)) == None
  File "/path/to/localmh/bin/../lmh/lib/io.py", line 197, in read_file
    text = text_file.read()
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 3131: ordinal not in range(128)

lmh seems to have crashed with <class 'UnicodeDecodeError'>
a report will be generated in 
Michaels-MBP:smglom kohlhase$