Closed hoihu closed 7 years ago
running with -develop
will give full tracebacks that make debugging easier.
$ python3 -m there cat main.py --develop
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 417, in <module>
main()
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 396, in main
args.func(user, m, args)
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 137, in command_cat
user.output(m.read_from_file(args.PATH))
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 30, in output
sys.stdout.write(message)
TypeError: write() argument must be str, not bytes
$
and
$ python3 -m there -i --develop
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 417, in <module>
main()
File "/Users/martin/projects/github/mpy-repl-tool/there/__main__.py", line 396, in main
args.func(user, m, args)
TypeError: <lambda>() takes 2 positional arguments but 3 were given
Thanks! Fixed it.
using version as of now (5.1.) and latest pull of pyserial. Installed using python3 setup.py develop.
symptom:
So the only thing that works for me at the moment is the REPL...