[BangPypers] Python-yql error
JAGANADH G
jaganadhg at gmail.com
Sat Oct 16 10:59:37 CEST 2010
On Thu, Oct 14, 2010 at 7:03 PM, Anand Balachandran Pillai <
abpillai at gmail.com> wrote:
> Runs fine for me.
>
> Python 2.7 (r27:82500, Oct 8 2010, 14:07:56)
> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import yql
> >>> y = yql.Public()
> >>> y.execute('select * from flickr.photos.search where text="panda" limit
> 3')
> <yql.YQLObj object at 0xb7b50f8c>
> >>>
>
> Btw, the traceback seems to indicate you have installed httplib2
> on top of the standard httplib which comes with Python.
>
>
> 1. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in connect(self
> )
> 2. 734 sock = socket.socket(socket.AF_INET, socket.
> SOCK_STREAM)
> 3. 735 if self.timeout is not None:
> 4. --> 736 sock.settimeout(self.timeout)
> 5. 737 sock.connect((self.host, self.port))
> 6. 738 ssl = socket.ssl(sock, self.key_file, self.cert_file)
>
> Try removing httplib2 and see if it works.
>
>
I removed the httplib2. Now I am getting this error
In [1]: import yql
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/jaganadhg/Desktop/music/<ipython console> in <module>()
/usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.py in
<module>()
25 from urlparse import urlparse
26 from urllib import urlencode
---> 27 from httplib2 import Http
28
29 from yql.utils import get_http_method
ImportError: No module named httplib2
In [2]:
--
**********************************
JAGANADH G
http://jaganadhg.freeflux.net/blog
More information about the BangPypers
mailing list