Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem compiling Secret Labs RexExp module in pyamazon package

2 views
Skip to first unread message

Robert Oschler

unread,
Aug 28, 2002, 3:41:46 PM8/28/02
to
I'm trying to run pyamazon.py, the Python package for interfacing with
Amazon's SOAP server. I'm a Python newbie, but an experienced C++ and
Delphi programmer, and I belive that xml.dom, which is used by pyamazon,
uses Secret Lab's RegExp package for it's parsing code. Unfortunately, when
__init__.py runs I'm getting an exception when xml.dom tries to use Secret
Labs sre.py module to compile the global regex pattern called
g_numCharEntityPattern, which is equal to "&#(/d+);". I'm getting a
"Sequence out of range: list index out of range" exception when
sre_compile.py tries to process the a "for op,av in pattern" statement.
There is only one item in the sequence 'pattern' yet somehow __getitem__ is
being passed an index of 1 which would exceed the sequence bounds. Seeing
as it is a "for .. in .." statement which does not use an index variable, I
don't see how this is possible.

I'm not looking for anyone to give me a source code correction. What I
would like is to know how to do one of the following: contact the makers of
xml.dom or Secret Labs and report this? Learn if this is a known problem
due to some Python configuration issue that I need to follow up on. Etc.
In other words what I should generally do to hunt this down and fix it?

thx


Robert Oschler

unread,
Aug 28, 2002, 3:43:42 PM8/28/02
to

"Robert Oschler" <Osc...@earthlink.net> wrote in message
news:xy9b9.33935$Hd4.7...@e3500-atl1.usenetserver.com...
<snip>

Forgot to mention, I'm running Python 2.1.1 compiled with GCC 2.95.3 running
on SuSE Linux 7.3 Pro.

thx


Martin v. Loewis

unread,
Sep 2, 2002, 1:59:20 AM9/2/02
to
"Robert Oschler" <Osc...@earthlink.net> writes:

> I'm not looking for anyone to give me a source code correction. What I
> would like is to know how to do one of the following: contact the makers of
> xml.dom or Secret Labs and report this? Learn if this is a known problem
> due to some Python configuration issue that I need to follow up on. Etc.
> In other words what I should generally do to hunt this down and fix it?

Posting to this group is a good starting point. I'm surprised you are
getting such an error. If I do

Python 2.1.3 (#2, Aug 27 2002, 09:38:37)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile("&#(/d+);")
<SRE_Pattern object at 0x8188e28>

it works fine for me, on Python 2.1.3. Are you saying that this fails
for you? Could you try Python 2.1.3?

Regards,
Martin

0 new messages