944,120 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 3582
  • Python RSS
Mar 20th, 2006
0

raw_input exception

Expand Post »
I am using automation desk to run python scripts. This in tern executes scripts using v2.2 interpreter

every time i m trying to use raw_input("Enter name ")
it fires EOF Error.
If i run it in interpreter separately it works fine.Its really basic functionality.
FYI: Automation desk dont support script with __main__ thread

if anyone can help me please

Thank you
Similar Threads
Reputation Points: 10
Solved Threads: 4
Newbie Poster
pythonguy is offline Offline
10 posts
since Mar 2006
Mar 21st, 2006
0

Re: raw_input exception

Hi pythonguy,

Hmm. It sounds like AutomationDesk is sending EOF signals to your scripts without being asked. I can't think of a really good way to explore this problem without my own copy of AutomationDesk (I don't have one). It's commercial software, right? You're probably better off emailing the dSPACE tech support people; I'm sure users have run into this sort of thing before.

I can think of a few kludgy solutions in the meantime, though. One thing you could do is replace raw_input with a function that pops open a Tkinter input-collecting widget. The idea here is that the widget would collect input from the user, write to file, close, and then the function that called it would read what was written and pass it back as input. Horribly inelegant, but if you need a quick fix I guess it'll do.

Sorry I can't be more helpful.
Reputation Points: 41
Solved Threads: 31
Junior Poster
G-Do is offline Offline
146 posts
since Jun 2005
Mar 22nd, 2006
0

Re: raw_input exception

Thank you for the reply.
I thought that for such basic built in functionality.....why to go for GUI.....I'll thikn of it again.
but what i wondering was standard python tutorial says something about EOF error too....but why EOF comes into picture if it is expecting somthing from command prompt....
Reputation Points: 10
Solved Threads: 4
Newbie Poster
pythonguy is offline Offline
10 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: os.popen
Next Thread in Python Forum Timeline: Convert from JAVA/JSP to Python





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC