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
Post a Comment