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


Groups > comp.lang.python > #100254

Re: SystemError in python 2.5.4

From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: SystemError in python 2.5.4
Date 2015-12-11 09:38 +0100
Message-ID <mailman.129.1449823103.12405.python-list@python.org> (permalink)
References <5ad8e3de-4ebb-4d60-b106-cd12fdafc0c3@googlegroups.com>

Show all headers | 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