473,395 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

python mysteriously halts

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
Jul 7 '08 #1
5 1056
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
<enterand study the traceback.

Peter

Jul 7 '08 #2
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 <Enteris 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
Jul 7 '08 #3
On Jul 7, 10:17*am, Tim Golden <m...@timgolden.me.ukwrote:
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 <Enteris 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.
Jul 7 '08 #4
On Jul 7, 10:17*am, Tim Golden <m...@timgolden.me.ukwrote:
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 <Enteris 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.
Jul 7 '08 #5
En Mon, 07 Jul 2008 12:26:28 -0300, Todd <go******@signalsguru.net>
escribió:
On Jul 7, 10:17*am, Tim Golden <m...@timgolden.me.ukwrote:
>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 <Enteris 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

Jul 15 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
8
by: Elf M. Sternberg | last post by:
I'm having a devil of a time with signal handling under BSD 4.4 with Python and I was hoping that this might ring a bell with someone. Using the Webware Application Server (a multi-threaded Python...
2
by: MangoMan | last post by:
Hi there, Currently i am having a problem with python's array class. I am reading 3 arrays from a file (self.buffer32, self.buffer16, self.buffer8 from self.fs) : # ... self.Allocated32 =...
19
by: Jane Austine | last post by:
As far as I know python's threading module models after Java's. However, I can't find something equivalent to Java's interrupt and isInterrupted methods, along with InterruptedException....
17
by: mike | last post by:
hi all - i'm fairly new to python, coming from a java servlet / velocity template background. i'm looking for a good python web development tool, and hope to find some suggestions here. ...
3
by: Micah Elliott | last post by:
Are there instructions somewhere on how to build Python (on linux) statically? This seems like a common thing to do want to do, but my searching isn't turning up much. If it is common, it would...
15
by: Mikhail Kovalev | last post by:
Fatal error: Maximum execution time of 3600 seconds exceeded in z:\home \localhost\www\somefile.php on line 138 php.ini setting fixes default max execution time at 30 sec, In the script itself I...
2
by: W. eWatson | last post by:
I had just finished working with IDLE, and tried to double-click on a py file. It produced an OK dialog with the path to the file and the msg "access denied." All my py files act that way. I...
2
by: pyuser91 | last post by:
Hello, I hope someone can help. I am using Python 2.5.4 (under python(x,y) umbrella) on XP SP3, and running a grammatical evolution program that runs recursions on equations that grow via nested...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.