Thank you, thank you, thank you! :)
That was *exactly* what I needed - works like a charm. I really appreciate
the fast turnaround, too!
Bob
BV> -----Original Message-----
BV> From: Neil Watkiss [mailto:[EMAIL PROTECTED]]
BV> Sent: Monday, February 19, 2001 2:09 PM
BV> To: Bob Vastine-Parker
BV> Cc: '[EMAIL PROTECTED]'
BV> Subject: Re: Inline::Python with .so files
BV>
BV>
BV> On Mon, 19 Feb 2001, Bob Vastine-Parker wrote:
BV>
BV> > Hi All,
BV> >
BV> > Please bear with me - I'm totally new to Python, but
BV> experienced with C and
BV> > Perl.
BV> >
BV> > I have been tasked with creating a method of accessing an
BV> API written in
BV> > Python from Perl. So far, so good - Inline::Python has
BV> been able to do
BV> > everthing that I need, except for one thing: the python
BV> scripts I am using
BV> > are written to use the zlibmodule.so. Unfortunately,
BV> every time I try to use
BV> > Inline::Python with any code that uses .so modules, I get
BV> an error like
BV> > this:
BV> >
BV> > [bob@my1]:~/python$ perl t.pl
BV> > Traceback (innermost last):
BV> > File "<string>", line 12, in ?
BV> > File "summitapi_bob.py", line 22, in ?
BV> > import zlib
BV> > ImportError:
BV> /usr/lib/python1.5/lib-dynload/zlibmodule.so: undefined symbol:
BV> > PyExc_ValueError
BV> > Couldn't parse your Python code.
BV> > at t.pl line 3
BV> > BEGIN failed--compilation aborted at t.pl line 3.
BV> >
BV> > Does anyone know of a way to get around this error, or as
BV> an alternative,
BV> > does anyone know of a way to do a zlib.decompress in
BV> python w/o the .so
BV> > module?
BV>
BV> There's an easy fix. You can either apply this patch to
BV> Inline::Python
BV> (attached) or you can download Inline-Python-0.12 from
BV> CPAN. Be patient, I
BV> just finished uploading it now.
BV>
BV> Later,
BV> Neil
BV>
BV>