Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python mysteriously halts

Reply
Thread Tools

python mysteriously halts

 
 
Todd
Guest
Posts: n/a
 
      07-07-2008
Hello everyone,

I ran a python script last night which connects to a matlab automation
server via DCOM (using win32com). I expected to see the results when
I came in this morning. But apparently, not long after I left, python
stopped. I hit enter in the console, and it started again. I scoured
the handful of lines of code to see if there was any kind of input
statement put there by accident but couldn't find one. Furthermore,
I've run this code many times without it pausing. It's still possible
I've done something boneheaded, but I'm wondering if there is another
reason (e.g. a pause in the win32com module, some kind of timeout
feature if the system is idle, etc.). thank you
 
Reply With Quote
 
 
 
 
Peter Otten
Guest
Posts: n/a
 
      07-07-2008
Todd wrote:

> I ran a python script last night which connects to a matlab automation
> server via DCOM (using win32com). I expected to see the results when
> I came in this morning. But apparently, not long after I left, python
> stopped. I hit enter in the console, and it started again. I scoured
> the handful of lines of code to see if there was any kind of input
> statement put there by accident but couldn't find one. Furthermore,
> I've run this code many times without it pausing. It's still possible
> I've done something boneheaded, but I'm wondering if there is another
> reason (e.g. a pause in the win32com module, some kind of timeout
> feature if the system is idle, etc.). thank you


You could start your debugging process by hitting Control-C instead of
<enter> and study the traceback.

Peter

 
Reply With Quote
 
 
 
 
Tim Golden
Guest
Posts: n/a
 
      07-07-2008
Todd wrote:
> I ran a python script last night which connects to a matlab automation
> server via DCOM (using win32com). I expected to see the results when
> I came in this morning. But apparently, not long after I left, python
> stopped. I hit enter in the console, and it started again.


Symptomatically, at least, this can be caused by someone starting to
select (with the mouse) an area of the screen: the process will pause
until <Enter> is pressed, which copies the area to the clipboard. This
only happens with a console window, but it sounds like that's what
you had running.

TJG
 
Reply With Quote
 
goldfita@gmail.com
Guest
Posts: n/a
 
      07-07-2008
On Jul 7, 10:17*am, Tim Golden <(E-Mail Removed)> wrote:
> Todd wrote:
> > I ran a python script last night which connects to a matlab automation
> > server via DCOM (using win32com). *I expected to see the results when
> > I came in this morning. *But apparently, not long after I left, python
> > stopped. *I hit enter in the console, and it started again.

>
> Symptomatically, at least, this can be caused by someone starting to
> select (with the mouse) an area of the screen: the process will pause
> until <Enter> is pressed, which copies the area to the clipboard. This
> only happens with a console window, but it sounds like that's what
> you had running.
>
> TJG


That might be it, although I don't recall doing that. Fortunately/
unfortunately, it happened a few times, but it seems to have stopped
now.
 
Reply With Quote
 
Todd
Guest
Posts: n/a
 
      07-07-2008
On Jul 7, 10:17*am, Tim Golden <(E-Mail Removed)> wrote:
> Todd wrote:
> > I ran a python script last night which connects to a matlab automation
> > server via DCOM (using win32com). *I expected to see the results when
> > I came in this morning. *But apparently, not long after I left, python
> > stopped. *I hit enter in the console, and it started again.

>
> Symptomatically, at least, this can be caused by someone starting to
> select (with the mouse) an area of the screen: the process will pause
> until <Enter> is pressed, which copies the area to the clipboard. This
> only happens with a console window, but it sounds like that's what
> you had running.
>
> TJG


That might be it, although I don't recall doing that. Fortunately/
unfortunately, it happened a few times, but it seems to have stopped
now.
 
Reply With Quote
 
Gabriel Genellina
Guest
Posts: n/a
 
      07-15-2008
En Mon, 07 Jul 2008 12:26:28 -0300, Todd <(E-Mail Removed)>
escribió:

> On Jul 7, 10:17*am, Tim Golden <(E-Mail Removed)> wrote:
>> Todd wrote:
>> > I ran a python script last night which connects to a matlab automation
>> > server via DCOM (using win32com). *I expected to see the results when
>> > I came in this morning. *But apparently, not long after I left, python
>> > stopped. *I hit enter in the console, and it started again.

>>
>> Symptomatically, at least, this can be caused by someone starting to
>> select (with the mouse) an area of the screen: the process will pause
>> until <Enter> is pressed, which copies the area to the clipboard. This
>> only happens with a console window, but it sounds like that's what
>> you had running.

>
> That might be it, although I don't recall doing that. Fortunately/
> unfortunately, it happened a few times, but it seems to have stopped
> now.


You could disable that behaviour by unchecking "Quick edit mode" (or
something like that) in the Default preferences for the console window.
(It's unchecked by default on WinXP and Win2003, I think).

--
Gabriel Genellina

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to some websites & mail halts/disabled over wireless connec =?Utf-8?B?UGV0ZXI=?= Wireless Networking 0 07-10-2005 01:03 PM
Computer Halts During Boot... Hard Drive Light is solid and screen goes into "standby mode" a@a.com Computer Support 9 06-17-2005 10:56 PM
Spell Checker Halts In Outlook Express Andy Wilson Computer Support 0 01-08-2005 06:05 PM
sudden system halts Willem Computer Support 7 01-03-2004 11:09 AM
FTC halts Windows Messenger pop-ups Harrison Computer Support 2 11-07-2003 03:15 PM



Advertisments