Pyonic-interpreter icon indicating copy to clipboard operation
Pyonic-interpreter copied to clipboard

Pyonic interpreter 1.3.1 input fails for "exec file" on android 5.1.1

Open chkube opened this issue 7 years ago • 0 comments

Python input function works fine when typing commands on the interpreter, using a Kivy TextInput widget.

Problem

input() doesn't work when executing the same code from a file. (at least on android 5.1.1)

A file with only one line "val = input()", gives the errors :

Traceback (most recent call last):
File "interpreter_subprocess/interpreter.py", line 231, in interpret_code
exec(c, user_locals, user_globals)
File "<stdin>", line 1, in <module>
File "interpreter_subprocess/interpreter.py", line 33, in _exec_full
exec(compile(file.read(), filepath, 'exec'), global_namespace)
File "/storage/emulated/0/python/test.py", line 1, in <module>
val = input()
EOFError: EOF when reading a line

Thanks

chkube avatar Jul 06 '18 09:07 chkube