Python 2.7 raw_input() EOF error in Gambas3- Raspberry Pi/Jessie OS -


the code,

print 'hello world' raw_input() 

"works" when ran in python idle 2.7 in lxterminal ("python helloworld.py").

i made application thru gambas3 using interpreter python programming. when simulating, works , lxterminal shows output , exits when enter key pressed. after compiling, making software executable. ran application , ran code throws eof error. searched web, found lots of similar problems different approach. read pipe line couldn't understand. added python usage options -i -tt , -c no luck. idea whats causing error?

this code run button in gambas3 incase ask.

public sub runbtn_click()    textarea3.text = ""   try kill application.path & "tempfile.py"   if exist(application.path & "tempfile.py")     hfile = open application.path &/ "tempfile.py" write append     else      hfile = open application.path &/ "tempfile.py" write create      endif   print #hfile, textarea2.text   wait 0.3    myproc = shell "lxterminal --command python -i -tt -c " & application.path &/ "tempfile.py" read "process"    myproc1 = shell "python -i -tt -c " & application.path &/ "tempfile.py" read "process"  end 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -