I couldn't make the suggested virtual environment work (#204) and resorted to ipython on ubuntu itself.
But then, I'm stuck on retrieving trends in chapter 1 example 2.
URLError Traceback (most recent call last)
in ()
10 # to the URL itself as a special case keyword argument.
11
---> 12 world_trends = twitter_api.trends.place(_id=WORLD_WOE_ID)
13 us_trends = twitter_api.trends.place(_id=US_WOE_ID)
14
/home/skyvory/anaconda/lib/python2.7/site-packages/twitter/api.pyc in **call**(self, **kwargs)
201 dot = "."
202 uriBase = "http%s://%s/%s%s%s" % (
--> 203 secure_str, self.domain, uri, dot, self.format)
204
205 # Check if argument tells whether img is already base64 encoded
/home/skyvory/anaconda/lib/python2.7/site-packages/twitter/api.pyc in _handle_response(self, req, uri, arg_data, _timeout)
208 b64_convert = not kwargs.pop("_base64")
209 if b64_convert:
--> 210 import base64
211
212 # Catch media arguments to handle oauth query differently for multipart
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in urlopen(url, data, timeout, cafile, capath, cadefault, context)
152 else:
153 opener = _opener
--> 154 return opener.open(url, data, timeout)
155
156 def install_opener(opener):
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in open(self, fullurl, data, timeout)
429 req = meth(req)
430
--> 431 response = self._open(req, data)
432
433 # post-process response
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in _open(self, req, data)
447 protocol = req.get_type()
448 result = self._call_chain(self.handle_open, protocol, protocol +
--> 449 '_open', req)
450 if result:
451 return result
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in _call_chain(self, chain, kind, meth_name, _args)
407 func = getattr(handler, meth_name)
408
--> 409 result = func(_args)
410 if result is not None:
411 return result
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in https_open(self, req)
1238 def https_open(self, req):
1239 return self.do_open(httplib.HTTPSConnection, req,
-> 1240 context=self._context)
1241
1242 https_request = AbstractHTTPHandler.do_request_
/home/skyvory/anaconda/lib/python2.7/urllib2.pyc in do_open(self, http_class, req, **http_conn_args)
1195 except socket.error, err: # XXX what error?
1196 h.close()
-> 1197 raise URLError(err)
1198 else:
1199 try:
URLError:
I couldn't make the suggested virtual environment work (#204) and resorted to ipython on ubuntu itself.
But then, I'm stuck on retrieving trends in chapter 1 example 2.
URLError Traceback (most recent call last)