Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chkube opened this issue Jul 6, 2018 · 0 comments
Open

Comments

@chkube
Copy link

chkube commented Jul 6, 2018

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

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

No branches or pull requests

1 participant