Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EOF error with raw_input

I'm using qpython and when I'm using raw_input function I'm getting an EOF error, for example -

print " what's ur name",
a = raw_input()
print " hello %r"%a

and I'm getting this result -

what's ur name ?
Traceback (most recent call last):
File "main.py", line 2, in 
  a= raw_input()
EOFError: EOF when reading a line

What's the problem ????

like image 671
dpmittal Avatar asked Jan 27 '26 11:01

dpmittal


1 Answers

According to Why is raw_input() missing? Any other alternatives? from QPython forum:

The raw_input function does not work because there is no console mode like the pc in QPython+. But there is another methord to get users input, you can do Kivy programming, it offer the UI support, and you can get user input by using it's dialog or other input method.

like image 133
falsetru Avatar answered Jan 29 '26 00:01

falsetru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!