[Bug 861258] Re: add-apt-repository crashed with ValueError in raw_decode(): No JSON object could be decoded
Brian Murray
brian at ubuntu.com
Mon Mar 5 17:30:53 UTC 2012
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
ValueError: No JSON object could be decoded
** Changed in: software-properties (Ubuntu)
Importance: Undecided => Medium
** Changed in: software-properties (Ubuntu)
Status: Confirmed => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/861258
Title:
add-apt-repository crashed with ValueError in raw_decode(): No JSON
object could be decoded
Status in “software-properties” package in Ubuntu:
Triaged
Bug description:
I tried to insert a PPA but an error appeared. I tried later but all
worked fine.
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: python-software-properties 0.81.9
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu1
Architecture: i386
Date: Wed Sep 28 10:16:56 2011
ExecutablePath: /usr/bin/add-apt-repository
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/add-apt-repository ppa:webkit-team/ppa
PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:webkit-team/ppa']
SourcePackage: software-properties
Title: add-apt-repository crashed with ValueError in raw_decode(): No JSON object could be decoded
UpgradeStatus: Upgraded to oneiric on 2011-09-26 (1 days ago)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/861258/+subscriptions
More information about the foundations-bugs
mailing list