Hi,

> >>>>
> >>>> I don't know what libproxy can do.
> >>>> I tried the example python code:
> >>>> http://code.google.com/p/libproxy/wiki/HowTo
> >>>>
> >>>> % /usr/bin/python2.6 a.py
> >>>> Traceback (most recent call last):
> >>>> File "a.py", line 3, in <module>
> >>>> import libproxy
> >>>> File "/usr/lib/python2.6/vendor-packages/libproxy.py", line 38, in 
> >>>> <module>
> >>>> raise ImportError, "Unable to import libproxy!?!?"
> >>>> ImportError: Unable to import libproxy!?!?
> >>>>
> >>>>
> >>>> Are there something wrong?
> >>>> Does any application use /usr/lib/libproxy/0.2.3/plugins/gnome.so ?
> >>>>
> >>>> Thanks,
> >>>> fujiwara
> >>>>

This seems to be a bug of python.
ctypes.util.find_library() does not work correctly.
I've submitted a patch for libproxy python binding to avoid the use of
find_library.

You can now try the following python sample code with python2.6:

////////////////////////////////////////////////////

import libproxy

URL = "http://www.google.com";

pf = libproxy.ProxyFactory()
for proxy in pf.getProxies(URL):
  print proxy

////////////////////////////////////////////////////

I also filed a bug to bugs.python.org. The link is:
http://bugs.python.org/issue5289

Regards,

Ke



Reply via email to