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


Groups > comp.lang.python > #100254

Re: SystemError in python 2.5.4

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: SystemError in python 2.5.4
Date Fri, 11 Dec 2015 09:38:10 +0100
Lines 25
Message-ID <mailman.129.1449823103.12405.python-list@python.org> (permalink)
References <5ad8e3de-4ebb-4d60-b106-cd12fdafc0c3@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de dLIfWA8IPRMXD3mFWYwdQwGwUOyTvqLufMiTPHCTf/0Q==
Cancel-Lock sha1:27MxEC/RBSAeXw4BLj0FYgVAtC8=
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; '"c"': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:\\ 40': 0.09; 'python': 0.10; 'subject:python': 0.14; 'argument': 0.15; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'looked': 0.16; 'parameter': 0.22; '(this': 0.24; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'error': 0.27; 'function': 0.28; 'code': 0.30; 'version,': 0.30; 'error.': 0.31; 'getting': 0.33; 'case,': 0.34; 'this?': 0.34; 'gets': 0.35; 'level': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'received:org': 0.37; 'charset :us-ascii': 0.37; 'wrong': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'received:de': 0.40; 'your': 0.60; 'caused': 0.61; 'received:217': 0.66; 'note:': 0.66; '2.5.4': 0.84; '2.7.': 0.84; 'from.': 0.93
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pd9e08198.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100254

Show key headers only | View raw


Palpandi <palpandi111@gmail.com> writes:

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

I do not have the code for Python 2.5.4 around - therefore,
I looked into that for Python 2.4.6. Based on this (older) version,
the "SystemError" above may come from the "PyLong_AsLong" function
(converting a Python "long" into a "C" "long"). In this case,
the error would be caused by provding a wrong parameter
(neither Python "int" nor Python "long") to "PyLong_AsLong".

At your place, I would have a look at the Python 2.5.4 code
and check there where precisely the "SystemError" comes from.
Then I would try to find out why it gets wrong (this might
require the use of a "C" level debugger).

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


Thread

SystemError in python 2.5.4 Palpandi <palpandi111@gmail.com> - 2015-12-10 03:29 -0800
  Re: SystemError in python 2.5.4 Chris Angelico <rosuav@gmail.com> - 2015-12-10 22:37 +1100
    Re: SystemError in python 2.5.4 Palpandi <palpandi111@gmail.com> - 2015-12-10 05:14 -0800
      Re: SystemError in python 2.5.4 Chris Angelico <rosuav@gmail.com> - 2015-12-11 00:25 +1100
  Re: SystemError in python 2.5.4 Steven D'Aprano <steve@pearwood.info> - 2015-12-11 19:21 +1100
  Re: SystemError in python 2.5.4 dieter <dieter@handshake.de> - 2015-12-11 09:38 +0100

csiph-web