| | |
raw_input exception
![]() |
•
•
Join Date: Mar 2006
Posts: 10
Reputation:
Solved Threads: 4
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
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
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.
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.
Vi veri veniversum vivus vici
![]() |
Similar Threads
- fatal exception OE VXD VFAT (Windows 95 / 98 / Me)
- Exception messages reappears constantly! (Windows NT / 2000 / XP)
- Arithmetic Exceptions and exception-handling statements (Java)
Other Threads in the Python Forum
- Previous Thread: os.popen
- Next Thread: Convert from JAVA/JSP to Python
| Thread Tools | Search this Thread |
abrupt accessdenied anti apache application approximation argv array beginner book builtin calculator change converter countpasswordentry curved dan08 dictionaries dictionary dynamic edit enter examples file float format function gui homework import inches input java keyboard lapse launcher library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl pysimplewizard python random recursion redirect remote reverse scrolledtext session simple software sprite statictext string strings syntax table terminal text textarea thread threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable wordgame wxpython





