Faculty of Engineering: Department of Computing

Your Name Here

Contact Information:

Email: <USERNAME AT SPAMFREE doc DOT ic DOT ac DOT uk>

Selected Publications

--> -->

ValueError

No JSON object could be decoded

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0xb33850>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0xc42050>
    • self = <MoinMoin.request.request_cgi.Request object at 0xb33850>
    • self.page = <MoinMoin.Page.Page object at 0xca2710>
    • self.page.page_name = u'HomepageTemplate'
  2. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'HomepageTemplate', request=<MoinMoin.request.request_cgi.Request object at 0xb33850>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xcc0a90>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xca39e0>, 'format': u'wiki', 'formatargs': u'', 'language': 'en', 'lines': 3}
  4. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xcc0a90>, request=<MoinMoin.request.request_cgi.Request object at 0xb33850>, body=u'== Your Name Here ==\n\n===== Contact Information:... List >]]\n\n----\nCategoryHomepage, CategoryPeople\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 3})

    1. 1287 try:
    2. 1288 code = self.loadCache(request)
    3. 1289 self.execute(request, parser, code)
    4. 1290 except Exception, e:
    5. 1291 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object at 0xcc0a90>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0xcc0a90>>
    • request = <MoinMoin.request.request_cgi.Request object at 0xb33850>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xcc9680>
    • code = <code object <module> at 0x9f9eb8, file "HomepageTemplate", line 2>
  5. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0xcc0a90>, request=<MoinMoin.request.request_cgi.Request object at 0xb33850>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xcc9680>, code=<code object <module> at 0x9f9eb8, file "HomepageTemplate", line 2>)

    1. 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1319 try:
    3. 1320 exec code
    4. 1321 except "CacheNeedsUpdate": # convert the exception
    5. 1322 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0x9f9eb8, file "HomepageTemplate", line 2>
  6. /export/www/dse/public_html/dsewiki/cgi-bin/HomepageTemplate in ()

  7. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0xcc95f0>, macro_obj=<MoinMoin.macro.Macro instance at 0xcc98c0>, name=u'ShowPublicationsUser', args=u'USERNAME,5,GroupByType', markup=u'<<ShowPublicationsUser(USERNAME,5,GroupByType)>>')

    1. 308 # call the macro
    2. 309 try:
    3. 310 return macro_obj.execute(name, args)
    4. 311 except ImportError, err:
    5. 312 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0xcc98c0>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xcc98c0>>
    • name = u'ShowPublicationsUser'
    • args = u'USERNAME,5,GroupByType'
  8. /vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xcc98c0>, macro_name=u'ShowPublicationsUser', args=u'USERNAME,5,GroupByType')

    1. 126 else:
    2. 127 raise ImportError("Cannot load macro %s" % macro_name)
    3. 128 return execute(self, args)
    4. 129
    5. 130 def _m_lang(self, text):
    • execute = <function execute at 0xa29938>
    • self = <MoinMoin.macro.Macro instance at 0xcc98c0>
    • args = u'USERNAME,5,GroupByType'
  9. /vol/www/dse/private/share/dsewiki/data/plugin/macro/ShowPublicationsUser.py in execute (macro=<MoinMoin.macro.Macro instance at 0xcc98c0>, args=[u'USERNAME', u'5', u'GroupByType'])

    1. 72 other_count = 0
    2. 73
    3. 74 main = simplejson.load(urllib.urlopen(url))
    4. 75
    5. 76 pubs = main["publications"]
    • main undefined
    • global simplejson = <module 'wikiconfig.p_6c6a0e5fbb58f06f0b3d537908...ewiki/data/plugin/macro/simplejson/__init__.pyc'>
    • simplejson.load = <function load at 0xe522a8>
    • global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>
    • urllib.urlopen = <function urlopen at 0x8c88c0>
    • url = u'http://pubs.doc.ic.ac.uk/authors/USERNAME/'
  10. /vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/__init__.py in load (fp=<addinfourl at 139876995100472 whose fp = <socket._fileobject object at 0x9f9de8>>, encoding=None, cls=None, object_hook=None, **kw={})

    1. 239 """
    2. 240 return loads(fp.read(),
    3. 241 encoding=encoding, cls=cls, object_hook=object_hook, **kw)
    4. 242
    5. 243 def loads(s, encoding=None, cls=None, object_hook=None, **kw):
    • encoding = None
    • cls = None
    • object_hook = None
    • kw = {}
  11. /vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/__init__.py in loads (s='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n', encoding=None, cls=None, object_hook=None, **kw={})

    1. 260 """
    2. 261 if cls is None and encoding is None and object_hook is None and not kw:
    3. 262 return _default_decoder.decode(s)
    4. 263 if cls is None:
    5. 264 cls = JSONDecoder
    • global _default_decoder = <wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4e810>
    • _default_decoder.decode = <bound method JSONDecoder.decode of <wikiconfig....mplejson.decoder.JSONDecoder object at 0xe4e810>>
    • s = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n'
  12. /vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/decoder.py in decode (self=<wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4e810>, s='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n', _w=<built-in method match of _sre.SRE_Pattern object at 0xd359c0>)

    1. 249 instance containing a JSON document)
    2. 250 """
    3. 251 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    4. 252 end = _w(s, end).end()
    5. 253 if end != len(s):
    • obj undefined
    • end undefined
    • self = <wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4e810>
    • self.raw_decode = <bound method JSONDecoder.raw_decode of <wikicon...mplejson.decoder.JSONDecoder object at 0xe4e810>>
    • s = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n'
    • idx undefined
    • _w = <built-in method match of _sre.SRE_Pattern object at 0xd359c0>
    • ).end undefined
  13. /vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/decoder.py in raw_decode (self=<wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4e810>, s='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n', **kw={'context': <wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4e810>, 'idx': 0})

    1. 268 obj, end = self._scanner.iterscan(s, **kw).next()
    2. 269 except StopIteration:
    3. 270 raise ValueError("No JSON object could be decoded")
    4. 271 return obj, end
    5. 272
    • builtin ValueError = <type 'exceptions.ValueError'>

ValueError

No JSON object could be decoded

  • args = ('No JSON object could be decoded',)
  • message = 'No JSON object could be decoded'

System Details

  • Date: Thu, 21 Mar 2013 01:08:25 +0000
  • Platform: Linux albatross 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008 x86_64
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.3 (release)