Another way to recreate the same Traceback reliably is to use a nonexistent lp user and ppa. For example:
In [6]: ppa.get_ppa_info_from_lp('curiousgeorge', 'forthemanwiththeyellowhat')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/scratch/<ipython-input-6-01397e6b7db0> in <module>()
----> 1 ppa.get_ppa_info_from_lp('curiousgeorge', 'forthemanwiththeyellowhat')
/usr/lib/python2.7/dist-packages/softwareproperties/ppa.pyc in get_ppa_info_from_lp(owner_name, ppa_name)
81 curl.close()
82 lp_page = callback.contents
---> 83 return json.loads(lp_page)
84
85 class AddPPASigningKeyThread(Thread):
/usr/lib/python2.7/json/__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
324 parse_int is None and parse_float is None and
325 parse_constant is None and object_pairs_hook is None and not kw):
--> 326 return _default_decoder.decode(s)
327 if cls is None:
328 cls = JSONDecoder
/usr/lib/python2.7/json/decoder.pyc in decode(self, s, _w)
364
365 """
--> 366 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
367 end = _w(s, end).end()
368 if end != len(s):
/usr/lib/python2.7/json/decoder.pyc in raw_decode(self, s, idx)
382 obj, end = self.scan_once(s, idx)
383 except StopIteration:
--> 384 raise ValueError("No JSON object could be decoded")
385 return obj, end
Another way to recreate the same Traceback reliably is to use a nonexistent lp user and ppa. For example:
In [6]: ppa.get_ ppa_info_ from_lp( 'curiousgeorge' , 'forthemanwitht heyellowhat' ) ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- <ipython- input-6- 01397e6b7db0> in <module>() ppa_info_ from_lp( 'curiousgeorge' , 'forthemanwitht heyellowhat' )
-------
ValueError Traceback (most recent call last)
/scratch/
----> 1 ppa.get_
/usr/lib/ python2. 7/dist- packages/ softwarepropert ies/ppa. pyc in get_ppa_ info_from_ lp(owner_ name, ppa_name) yThread( Thread) :
81 curl.close()
82 lp_page = callback.contents
---> 83 return json.loads(lp_page)
84
85 class AddPPASigningKe
/usr/lib/ python2. 7/json/ __init_ _.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) decoder. decode( s)
324 parse_int is None and parse_float is None and
325 parse_constant is None and object_pairs_hook is None and not kw):
--> 326 return _default_
327 if cls is None:
328 cls = JSONDecoder
/usr/lib/ python2. 7/json/ decoder. pyc in decode(self, s, _w)
364
365 """
--> 366 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
367 end = _w(s, end).end()
368 if end != len(s):
/usr/lib/ python2. 7/json/ decoder. pyc in raw_decode(self, s, idx)
382 obj, end = self.scan_once(s, idx)
383 except StopIteration:
--> 384 raise ValueError("No JSON object could be decoded")
385 return obj, end
ValueError: No JSON object could be decoded