Anandha Gopalan
Post-Doctoral Research Associate
Contact Information:
Email: axgopala AT 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.
/vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0xb33810>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0xc43050>
- self = <MoinMoin.request.request_cgi.Request object at 0xb33810>
- self.page = <MoinMoin.Page.Page object at 0xca36d0>
- self.page.page_name = u'axgopala'
/vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'axgopala', request=<MoinMoin.request.request_cgi.Request object at 0xb33810>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xcc0a50>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1199 format_args=pi['formatargs'],
- 1200 do_cache=do_cache,
- 1201 start_line=pi['lines'])
- 1202
- 1203 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xca49e0>, 'format': u'wiki', 'formatargs': u'', 'language': 'en', 'lines': 3}
/vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xcc0a50>, request=<MoinMoin.request.request_cgi.Request object at 0xb33810>, body=u'Anandha Gopalan\n\nPost-Doctoral Research Associat... List >]]\n\n----\nCategoryHomepage, CategoryPeople\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 3})
- 1287 try:
- 1288 code = self.loadCache(request)
- 1289 self.execute(request, parser, code)
- 1290 except Exception, e:
- 1291 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page object at 0xcc0a50>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0xcc0a50>>
- request = <MoinMoin.request.request_cgi.Request object at 0xb33810>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xcc9680>
- code = <code object <module> at 0xcbc558, file "axgopala", line 2>
/vol/www-virtual/dse/private/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0xcc0a50>, request=<MoinMoin.request.request_cgi.Request object at 0xb33810>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xcc9680>, code=<code object <module> at 0xcbc558, file "axgopala", line 2>)
- 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1319 try:
- 1320 exec code
- 1321 except "CacheNeedsUpdate": # convert the exception
- 1322 raise Exception("CacheNeedsUpdate")
- code = <code object <module> at 0xcbc558, file "axgopala", line 2>
/export/www/dse/public_html/dsewiki/cgi-bin/axgopala in
() /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)>>')
- 308 # call the macro
- 309 try:
- 310 return macro_obj.execute(name, args)
- 311 except ImportError, err:
- 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'
/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')
- 126 else:
- 127 raise ImportError("Cannot load macro %s" % macro_name)
- 128 return execute(self, args)
- 129
- 130 def _m_lang(self, text):
- execute = <function execute at 0x9fa9b0>
- self = <MoinMoin.macro.Macro instance at 0xcc98c0>
- args = u'USERNAME,5,GroupByType'
/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'])
- 72 other_count = 0
- 73
- 74 main = simplejson.load(urllib.urlopen(url))
- 75
- 76 pubs = main["publications"]
- main undefined
- global simplejson = <module 'wikiconfig.p_6c6a0e5fbb58f06f0b3d537908...ewiki/data/plugin/macro/simplejson/__init__.pyc'>
- simplejson.load = <function load at 0xe52320>
- 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/'
/vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/__init__.py in load (fp=<addinfourl at 140370045288104 whose fp = <socket._fileobject object at 0x9f9ed8>>, encoding=None, cls=None, object_hook=None, **kw={})
- 239 """
- 240 return loads(fp.read(),
- 241 encoding=encoding, cls=cls, object_hook=object_hook, **kw)
- 242
- 243 def loads(s, encoding=None, cls=None, object_hook=None, **kw):
- encoding = None
- cls = None
- object_hook = None
- kw = {}
/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={})
- 260 """
- 261 if cls is None and encoding is None and object_hook is None and not kw:
- 262 return _default_decoder.decode(s)
- 263 if cls is None:
- 264 cls = JSONDecoder
- global _default_decoder = <wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4f710>
- _default_decoder.decode = <bound method JSONDecoder.decode of <wikiconfig....mplejson.decoder.JSONDecoder object at 0xe4f710>>
- s = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tra...ttom:0}));\n };\n //]]>\n</script>\n</body>\n</html>\n'
/vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/decoder.py in decode (self=<wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4f710>, 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 0xd36ad0>)
- 249 instance containing a JSON document)
- 250 """
- 251 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- 252 end = _w(s, end).end()
- 253 if end != len(s):
- obj undefined
- end undefined
- self = <wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4f710>
- self.raw_decode = <bound method JSONDecoder.raw_decode of <wikicon...mplejson.decoder.JSONDecoder object at 0xe4f710>>
- 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 0xd36ad0>
- ).end undefined
/vol/www/dse/private/share/dsewiki/data/plugin/macro/simplejson/decoder.py in raw_decode (self=<wikiconfig.p_6c6a0e5fbb58f06f0b3d537908fce9356f...implejson.decoder.JSONDecoder object at 0xe4f710>, 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 0xe4f710>, 'idx': 0})
- 268 obj, end = self._scanner.iterscan(s, **kw).next()
- 269 except StopIteration:
- 270 raise ValueError("No JSON object could be decoded")
- 271 return obj, end
- 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: Wed, 20 Mar 2013 23:35:39 +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)

