Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: SystemError in python 2.5.4 Date: Thu, 10 Dec 2015 22:37:48 +1100 Lines: 22 Message-ID: References: <5ad8e3de-4ebb-4d60-b106-cd12fdafc0c3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 4D6Oofhf2IKfRZktl/CsxQmExhaIGe2+Pf5FphMJhIEQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'skip:\\ 40': 0.09; 'python': 0.10; '2.7': 0.13; 'subject:python': 0.14; 'argument': 0.15; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'all,': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'supported': 0.27; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'code': 0.30; 'error.': 0.31; 'older': 0.32; 'getting': 0.33; 'this?': 0.34; 'running': 0.34; 'received:google.com': 0.35; "isn't": 0.35; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'received:209': 0.38; 'note:': 0.66; '2.7.': 0.84; 'chrisa': 0.84; 'to:none': 0.91; 'on?': 0.91 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=qMjyoJH/DsBKtaD6Tqxe/pmywhuXAb1129vGrzdgskg=; b=paV1sfC4DjC7ym9AqlUDHPwJda8L98L+//ohMO1+ezjbE5F7RkyCvFuKb7o3Isalve TCVm7vflO8GAHRskBetNkr0/rt9Eo5vaaMWqY2WybZUAKipu1QAIxSx7zQliDZErC7xF xUXgLBF0H7NRMvIysrDVB14x20uYqO3RVB6YFkRioC8felcQUOIKcB5voAQThnxeuruX kpk3yB6AYlgY47lPyZwxEy47wKREBIHfLQ9GGkFa3ONWo3HgTlK9SvZ82r/hV+K/UOyq wgOWVFV65gWNLOQrWxXVrzJPalQiEwfAcXDwweQwwqzSv6izDCMjSlhlzWDA+rP0F/BM olrg== X-Received: by 10.107.3.163 with SMTP id e35mr10143364ioi.157.1449747468153; Thu, 10 Dec 2015 03:37:48 -0800 (PST) In-Reply-To: <5ad8e3de-4ebb-4d60-b106-cd12fdafc0c3@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100229 On Thu, Dec 10, 2015 at 10:29 PM, Palpandi wrote: > Hi All, > > I am getting the error mentioned below in python 2.5.4. > > SystemError: \loewis\25\python\Objects\longobject.c:225: bad argument to internal function. > > I also ran the same code in python 2.7. > There I am not getting this error. > > I don't know which causes this error. Any solution for this? > > Note: The error is coming from the method call findall(path). > Interesting! What platform (OS, etc) are you running this on? Python 2.5 isn't supported any more, so you might have to talk to Red Hat or someone. Alternatively, given that 2.7 doesn't have this problem, can you simply write it off as an issue with the older Python, and use 2.7 instead? ChrisA