Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19850

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <SRS0=etDS3j=AO=inqvista.com=inq1ltd@eigbox.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.082
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'received:verizon.net': 0.07; 'line).': 0.09; 'this:': 0.15; 'received:10.20.55.1': 0.16; 'received:bosimpout01.eigbox.net': 0.16; 'received:east.verizon.net': 0.16; 'wrote:': 0.16; '(which': 0.19; '(most': 0.21; 'feb': 0.22; 'header:In-Reply-To:1': 0.22; 'traceback': 0.24; 'code': 0.25; 'module': 0.26; 'up.': 0.26; 'skip:" 30': 0.28; 'script': 0.28; 'closing': 0.30; 'fri,': 0.30; 'terminate': 0.30; 'andrew': 0.32; 'it.': 0.33; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'last):': 0.34; 'something': 0.35; 'file': 0.35; 'charset:us-ascii': 0.36; 'but': 0.37; 'subject:with': 0.38; 'sometimes': 0.38; 'open': 0.38; 'received:71': 0.38; 'subject:: ': 0.39; 'move': 0.40; 'to:addr:python.org': 0.40; 'most': 0.60; 'your': 0.61; 'header:Received:6': 0.61; 'bottom': 0.63; 'blank': 0.74; 'below..': 0.84; 'received:10.20.18.15': 0.84; 'received:66.96.187': 0.84; 'received:bosauthsmtp15.eigbox.net': 0.84
X-EN-OrigOutIP 10.20.18.15
X-EN-IMPSID VcHJ1i0050KWaAJ01cHJb1
From inq1ltd <inq1ltd@inqvista.com>
To python-list@python.org
Subject Re: Script randomly exits for seemingly no reason with strange traceback
Date Fri, 03 Feb 2012 19:15:30 -0500
User-Agent KMail/4.7.2 (Linux/2.6.37.6-0.11-desktop; KDE/4.7.2; i686; ; )
In-Reply-To <4f2c6cec$0$29989$c3e8da3$5496439d@news.astraweb.com>
References <mailman.5415.1328300143.27778.python-list@python.org> <4f2c6cec$0$29989$c3e8da3$5496439d@news.astraweb.com>
MIME-Version 1.0
Content-Transfer-Encoding 7Bit
Content-Type text/plain; charset="us-ascii"
X-EN-UserInfo ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195
X-EN-AuthUser inq1ltd@inqvista.com
Sender inq1ltd <inq1ltd@inqvista.com>
X-EN-OrigIP 71.246.145.198
X-EN-OrigHost pool-71-246-145-198.rich.east.verizon.net
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5424.1328318382.27778.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1328318382 news.xs4all.nl 6850 [2001:888:2000:d::a6]:35483
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19850

Show key headers only | View raw


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 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).

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Script randomly exits for seemingly no reason with strange traceback Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-03 14:14 -0600
  Re: Script randomly exits for seemingly no reason with strange traceback Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-03 23:25 +0000
    Re: Script randomly exits for seemingly no reason with strange traceback inq1ltd <inq1ltd@inqvista.com> - 2012-02-03 19:15 -0500
      Re: Script randomly exits for seemingly no reason with strange traceback Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-04 02:47 +0000
    Re: Script randomly exits for seemingly no reason with strange traceback Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-04 10:32 -0600
      Re: Script randomly exits for seemingly no reason with strange traceback Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-04 17:06 +0000
        Re: Script randomly exits for seemingly no reason with strange traceback Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-04 12:13 -0600
    Re: Script randomly exits for seemingly no reason with strange traceback Chris Angelico <rosuav@gmail.com> - 2012-02-05 07:43 +1100
      Re: Script randomly exits for seemingly no reason with strange traceback John Nagle <nagle@animats.com> - 2012-02-15 13:28 -0800
        Re: Script randomly exits for seemingly no reason with strange traceback Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-15 15:41 -0600

csiph-web