Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-15 Thread John Nagle
On 2/4/2012 12:43 PM, Chris Angelico wrote: On Sun, Feb 5, 2012 at 3:32 AM, Andrew Bergbahamutzero8...@gmail.com wrote: On 2/3/2012 9:15 PM, Chris Angelico wrote: Do you call on potentially-buggy external modules? It imports one module that does little more than define a few simple

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-15 Thread Andrew Berg
On 2/15/2012 3:28 PM, John Nagle wrote: Are you doing a conditional import, one that takes place after load time? If you do an import within a function or class, it is executed when the code around it executes. If you import a file with a syntax error during execution, you could get the

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-04 Thread Andrew Berg
On 2/3/2012 5:25 PM, Steven D'Aprano wrote: Which version of Python, which version of Windows? I keep that information in my signature for every post I make to this list. CPython 3.2.2 | Windows NT 6.1.7601.17640 If you upgrade Python, does the problem go away? I use the most recent stable

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-04 Thread Steven D'Aprano
On Sat, 04 Feb 2012 10:32:25 -0600, Andrew Berg wrote: On 2/3/2012 5:25 PM, Steven D'Aprano wrote: Which version of Python, which version of Windows? I keep that information in my signature for every post I make to this list. CPython 3.2.2 | Windows NT 6.1.7601.17640 Why so you do. Did you

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-04 Thread Andrew Berg
On 2/4/2012 11:06 AM, Steven D'Aprano wrote: I suggest you raise an issue on the bug tracker. If you can't reproduce the bug, it's unlikely to be fixed, but you might get lucky. Since I can't narrow it down to any specific circumstance or code, I'll gather information from a build of the

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-04 Thread Chris Angelico
On Sun, Feb 5, 2012 at 3:32 AM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2/3/2012 9:15 PM, Chris Angelico wrote: Do you call on potentially-buggy external modules? It imports one module that does little more than define a few simple functions. There's certainly no (intentional)

Script randomly exits for seemingly no reason with strange traceback

2012-02-03 Thread Andrew Berg
It's a rare occurrence, but sometimes my script will terminate and I get this: Traceback (most recent call last): File C:\path\to\script\script.py, line 992, in module That's it. And the line number is always the last line of the file (which in my case is a blank line). I have not seen this on

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-03 Thread Steven D'Aprano
On Fri, 03 Feb 2012 14:14:57 -0600, Andrew Berg wrote: It's a rare occurrence, but sometimes my script will terminate and I get this: Traceback (most recent call last): File C:\path\to\script\script.py, line 992, in module That's it. And the line number is always the last line of the

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-03 Thread inq1ltd
Check your code in that module for open parenthesis something like below.. Most likely your code is looking for the closing parenthesis. Start at the bottom and move up. pink = str(self.RecordKey[2] --missing ) jimonlinux On Fri, 03 Feb 2012 14:14:57 -0600, Andrew Berg wrote: It's

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-03 Thread Steven D'Aprano
On Fri, 03 Feb 2012 19:15:30 -0500, inq1ltd wrote: Check your code in that module for open parenthesis something like below.. Most likely your code is looking for the closing parenthesis. Start at the bottom and move up. pink = str(self.RecordKey[2] --missing ) If that were the case,

Re: Script randomly exits for seemingly no reason with strange traceback

2012-02-03 Thread Chris Angelico
On Sat, Feb 4, 2012 at 7:14 AM, Andrew Berg bahamutzero8...@gmail.com wrote: It's a rare occurrence, but sometimes my script will terminate and I get this: Traceback (most recent call last):  File C:\path\to\script\script.py, line 992, in module Do you call on potentially-buggy external