Re: pycurl import problem with Python 2.2.2
Date: 06 Jan 2003 09:29:21 -0800
On Mon, 2003-01-06 at 03:41, Kjetil Jacobsen wrote:
> On Thu, 2003-01-02 at 19:57, Bryan Richard wrote:
> > When I attempt to import pycurl I get the following,
> > Python 2.2.2 (#1, Nov 14 2002, 14:17:59)
> > [GCC 2.95.3 20010315 (SuSE)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import pycurl
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > ImportError: /usr/local/lib/python2.2/site-packages/pycurl.so: undefined
> > symbol: curl_multi_cleanup
> > >>>
> > Pycurl 7.10.2 with Python 2.2.2. I've seen in the docs that it was built
> > for 2.2.1 but I don't think Python is the problem.
> > Also running the lastest libcurl,
> > root -> /usr/local/bin/ $ ./curl-config --version
> > libcurl 7.10.2
> > I suspect I have something config'd wonky but I can't really say what it
> > is. Any ideas?
> have you tried building pycurl with curl-config set explicitly?
> for instance, to use the curl-config installed in /usr/local/bin:
> python setup.py install --curl-config=/usr/local/bin/curl-config
> if this does not help, try doing:
> ldd /usr/local/lib/python2.2/site-packages/pycurl.so
> ... to check that pycurl.so is linked with the correct libraries.
> - kjetil
I had some rouge libcurl libraries that curl-config didn't now about the
make file seems to have been able to find. The pycurl build needed the
path to curl-config but didn't seem to use the information it returned.
I knew there was a problem with the libcurl versioning because when I
tried to directly import libcurl it would fail but then I could import
pycurl without errors.
In any case, I blew away all old .so, rebuilt everything and it's
working like a charm now.
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2003-01-06