Created
February 12, 2010 17:41
-
-
Save mikitebeka/302789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> import saucerc.controller.server as s | |
| >>> s.get_last_version () | |
| --------------------------------------------------------------------------- | |
| ValueError Traceback (most recent call last) | |
| /home/miki/<ipython console> in <module>() | |
| /home/miki/work/sauce-rc-private/sauce-rc-windows/saucerc/controller/server.py in get_last_version() | |
| 90 def get_last_version(): | |
| 91 url = "http://saucelabs.com/versions.json?id=%s" % get_id() | |
| ---> 92 data = json.load(urlopen(url)) | |
| 93 retval = data["Sauce RC"] | |
| 94 if platform == "darwin": | |
| /usr/lib/python2.6/json/__init__.pyc in load(fp, encoding, cls, object_hook, parse_float, parse_int, parse_constant, **kw) | |
| 265 encoding=encoding, cls=cls, object_hook=object_hook, | |
| 266 parse_float=parse_float, parse_int=parse_int, | |
| --> 267 parse_constant=parse_constant, **kw) | |
| 268 | |
| 269 | |
| /usr/lib/python2.6/json/__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, **kw) | |
| 305 parse_int is None and parse_float is None and | |
| 306 parse_constant is None and not kw): | |
| --> 307 return _default_decoder.decode(s) | |
| 308 if cls is None: | |
| 309 cls = JSONDecoder | |
| /usr/lib/python2.6/json/decoder.pyc in decode(self, s, _w) | |
| 317 | |
| 318 """ | |
| --> 319 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) | |
| 320 end = _w(s, end).end() | |
| 321 if end != len(s): | |
| /usr/lib/python2.6/json/decoder.pyc in raw_decode(self, s, **kw) | |
| 334 kw.setdefault('context', self) | |
| 335 try: | |
| --> 336 obj, end = self._scanner.iterscan(s, **kw).next() | |
| 337 except StopIteration: | |
| 338 raise ValueError("No JSON object could be decoded") | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 181 end = _w(s, end + 1).end() | |
| 182 try: | |
| --> 183 value, end = iterscan(s, idx=end, context=context).next() | |
| 184 except StopIteration: | |
| 185 raise ValueError(errmsg("Expecting object", s, end)) | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 181 end = _w(s, end + 1).end() | |
| 182 try: | |
| --> 183 value, end = iterscan(s, idx=end, context=context).next() | |
| 184 except StopIteration: | |
| 185 raise ValueError(errmsg("Expecting object", s, end)) | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 196 end += 1 | |
| 197 if nextchar != '"': | |
| --> 198 raise ValueError(errmsg("Expecting property name", s, end - 1)) | |
| 199 object_hook = getattr(context, 'object_hook', None) | |
| 200 if object_hook is not None: | |
| ValueError: Expecting property name: line 12 column 9 (char 420) | |
| >>> s.get_last_version () | |
| --------------------------------------------------------------------------- | |
| ValueError Traceback (most recent call last) | |
| /home/miki/<ipython console> in <module>() | |
| /home/miki/work/sauce-rc-private/sauce-rc-windows/saucerc/controller/server.py in get_last_version() | |
| 90 def get_last_version(): | |
| 91 url = "http://saucelabs.com/versions.json?id=%s" % get_id() | |
| ---> 92 data = json.load(urlopen(url)) | |
| 93 retval = data["Sauce RC"] | |
| 94 if platform == "darwin": | |
| /usr/lib/python2.6/json/__init__.pyc in load(fp, encoding, cls, object_hook, parse_float, parse_int, parse_constant, **kw) | |
| 265 encoding=encoding, cls=cls, object_hook=object_hook, | |
| 266 parse_float=parse_float, parse_int=parse_int, | |
| --> 267 parse_constant=parse_constant, **kw) | |
| 268 | |
| 269 | |
| /usr/lib/python2.6/json/__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, **kw) | |
| 305 parse_int is None and parse_float is None and | |
| 306 parse_constant is None and not kw): | |
| --> 307 return _default_decoder.decode(s) | |
| 308 if cls is None: | |
| 309 cls = JSONDecoder | |
| /usr/lib/python2.6/json/decoder.pyc in decode(self, s, _w) | |
| 317 | |
| 318 """ | |
| --> 319 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) | |
| 320 end = _w(s, end).end() | |
| 321 if end != len(s): | |
| /usr/lib/python2.6/json/decoder.pyc in raw_decode(self, s, **kw) | |
| 334 kw.setdefault('context', self) | |
| 335 try: | |
| --> 336 obj, end = self._scanner.iterscan(s, **kw).next() | |
| 337 except StopIteration: | |
| 338 raise ValueError("No JSON object could be decoded") | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 181 end = _w(s, end + 1).end() | |
| 182 try: | |
| --> 183 value, end = iterscan(s, idx=end, context=context).next() | |
| 184 except StopIteration: | |
| 185 raise ValueError(errmsg("Expecting object", s, end)) | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 181 end = _w(s, end + 1).end() | |
| 182 try: | |
| --> 183 value, end = iterscan(s, idx=end, context=context).next() | |
| 184 except StopIteration: | |
| 185 raise ValueError(errmsg("Expecting object", s, end)) | |
| /usr/lib/python2.6/json/scanner.pyc in iterscan(self, string, idx, context) | |
| 53 action = actions[m.lastindex] | |
| 54 if action is not None: | |
| ---> 55 rval, next_pos = action(m, context) | |
| 56 if next_pos is not None and next_pos != matchend: | |
| 57 # "fast forward" the scanner | |
| /usr/lib/python2.6/json/decoder.pyc in JSONObject(match, context, _w) | |
| 196 end += 1 | |
| 197 if nextchar != '"': | |
| --> 198 raise ValueError(errmsg("Expecting property name", s, end - 1)) | |
| 199 object_hook = getattr(context, 'object_hook', None) | |
| 200 if object_hook is not None: | |
| ValueError: Expecting property name: line 12 column 9 (char 420) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment