Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'skip:/ 10': 0.09; 'thrown': 0.09; 'unhandled': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'suggest': 0.14; 'detected': 0.16; 'exception?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'help;': 0.16; 'ought': 0.16; 'subject:exception': 0.16; 'tool.': 0.16; 'url:redhat': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'mon,': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'logging': 0.26; 'posts': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'reporting': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'gives': 0.31; 'cgi': 0.31; 'though.': 0.31; 'run': 0.32; "can't": 0.35; 'something': 0.35; 'anybody': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'really': 0.36; 'possible': 0.36; 'hat': 0.38; 'issue': 0.38; 'how': 0.40; 'referred': 0.60; 'full': 0.61; 'simply': 0.61; 'myself': 0.63; '30,': 0.65; 'mail,': 0.68; 'url:en-us': 0.68; 'below:': 0.68; 'results': 0.69; 'suspicion': 0.84; 'to:none': 0.92; 'subject:detected': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=wkJQwwO47ED9vv4Hh2OSZS/IjcewE9/Zg0NzOgDEGtw=; b=jHy42mElx8v/4U4Z7ghFptgoSiTEwxPEsU/5tLDwgmuJcVPOyPg/FNx992xUefKrOy 39x9QIIhRcfD+akze2mpK85xljhYJpfm9+HY1GGs3SgEwGUEWJCWIU0YEoNN8P0YG1mx /hwstUMJd2MwBokUqt5WfmZlWsnBqH2eDlkG41340WwIMBe9G5B6C4/aKIedxxHpckoz Vnblhg43rwnaAngMClqXrq+5vzVWVvwQ7qr3bRpOZpFwMxw7V6gkkOCMWjqEqsMdAcIB R84enneppuGL1c3z8xQVbk2Ulzn6i2brL5IvW9jzCJk/tG0ACiWqPyWPmq5XtpMrNvxP LPDA== MIME-Version: 1.0 X-Received: by 10.66.155.102 with SMTP id vv6mr65022855pab.89.1388352873885; Sun, 29 Dec 2013 13:34:33 -0800 (PST) In-Reply-To: <0253dd5f-f8f3-45e7-84b0-92023c0924c9@googlegroups.com> References: <0253dd5f-f8f3-45e7-84b0-92023c0924c9@googlegroups.com> Date: Mon, 30 Dec 2013 08:34:33 +1100 Subject: Re: abrt: detected unhandled Python exception From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388352882 news.xs4all.nl 2975 [2001:888:2000:d::a6]:33387 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62867 On Mon, Dec 30, 2013 at 6:35 AM, wrote: > Hi all, > I am facing a script issue whenever i run my script in /var/log/messages and it gives error something as below: > > > abrt: detected unhandled Python exception in xxxxx.py. > > Can anybody help me figuring out how do i know which line number has thrown the python exception? Google results suggest that this is a Red Hat thing: abrt = Automatic Bug Reporting Tool. https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-abrt.html I'm not a Red Hat person myself (I use Debian), so I can't really much help; but my suspicion is that it'll be logging the full traceback somewhere (some of the posts I found referred to it sending mail, so you might find it in your /var/spool/mail). Alternatively, are you able to simply run the script from the command line? That ought to make the traceback come to your console. Not possible if it's a CGI script or something, though. ChrisA