Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

lmh symbols regressed #274

Closed
kohlhase opened this issue Dec 28, 2015 · 6 comments
Closed

lmh symbols regressed #274

kohlhase opened this issue Dec 28, 2015 · 6 comments
Assignees

Comments

@kohlhase
Copy link
Contributor

I get

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 0xe4 in position 10: ordinal not in range(128)

lmh seems to have crashed with <class 'UnicodeDecodeError'>
a report will be generated in 
@tkw1536
Copy link
Contributor

tkw1536 commented Dec 28, 2015

Clearly a unicode error. I will take a look tomorrow.

@kohlhase
Copy link
Contributor Author

I still get this error, even after update.

@kohlhase kohlhase reopened this Jan 22, 2016
@tkw1536
Copy link
Contributor

tkw1536 commented Jan 22, 2016

weird, which repository are you testing in?

@kohlhase
Copy link
Contributor Author

on MathHub/ODK/lmfdb/source

@kohlhase
Copy link
Contributor Author

but I also get

cd ~/localmh/MathHub/smglom/sets/
Michaels-MBP:sets kohlhase$ 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 "/mounted/lmh/lmh/__init__.py", line 85, in run
    if main(argv):
  File "/mounted/lmh/lmh/__init__.py", line 79, in main
    return submods[args.action].do(args, unknown)
  File "/mounted/lmh/lmh/commands/symbols/__init__.py", line 27, in do
    return run.do(arguments, unparsed)
  File "/mounted/lmh/lmh/commands/symbols/run.py", line 10, in do
    res = check_symbols(p) and res
  File "/mounted/lmh/lmh/lib/modules/symbols.py", line 232, in check_symbols
    mods = list(filter(lambda x:needsPreamble(x), mods))
  File "/mounted/lmh/lmh/lib/modules/symbols.py", line 232, in <lambda>
    mods = list(filter(lambda x:needsPreamble(x), mods))
  File "/mounted/lmh/lmh/lib/modules/__init__.py", line 29, in needsPreamble
    return re.search(r"\\begin(\w)*{document}", read_file(file)) == None
  File "/mounted/lmh/lmh/lib/io.py", line 180, in read_file
    text = text_file.read()
  File "/usr/lib/python3.4/codecs.py", line 313, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 10: invalid continuation byte

lmh seems to have crashed with <class 'UnicodeDecodeError'>
a report will be generated in 

@kohlhase
Copy link
Contributor Author

indeed, works for me now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants