Skip to content

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

@chkube

Description

@chkube

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions