| ValueError | Python 2.4.3: /usr/bin/python Fri May 16 22:57:59 2008 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/www/cgi-bin/ck-pageserver.cgi |
| 2 |
| 3 import CK |
| 4 CK.handle () |
| 5 |
| 6 # vim:set ai expandtab ts=4: |
| CK = <module 'CK' from '/usr/lib/python2.4/site-packages/CK/__init__.pyc'>, CK.handle = <function handle> |
| /usr/lib/python2.4/site-packages/CK/pageutils.py in handle() |
| 129 servable = page (localfile, cfg, path_info) |
| 130 servable.start_session () |
| 131 servable.process () |
| 132 print "Status: %s" % servable.status |
| 133 for hdr in servable.headers: |
| servable = <CK.pageutils.page instance>, servable.process = <bound method page.process of <CK.pageutils.page instance>> |
| /usr/lib/python2.4/site-packages/CK/pageutils.py in process(self=<CK.pageutils.page instance>) |
| 738 buf = self.orig |
| 739 buf = self.process_pageatts (buf) |
| 740 buf = self.process_plugins (buf) |
| 741 buf = self.process_markdown (buf) |
| 742 message = self.apply_embargoes () # may set self.status to non-200 value |
| buf = '\n\n\n\n{{ plugin: alumnibrowser }}\n', self = <CK.pageutils.page instance>, self.process_plugins = <bound method page.process_plugins of <CK.pageutils.page instance>> |
| /usr/lib/python2.4/site-packages/CK/pageutils.py in process_plugins(self=<CK.pageutils.page instance>, txt='\n\n\n\n{{ plugin: alumnibrowser }}\n') |
| 864 match = PLUGINRE.search (txt) |
| 865 while match: |
| 866 txt = PLUGINRE.sub (call_plugin (match.groups()[0]), txt, 1) |
| 867 match = PLUGINRE.search (txt) |
| 868 return txt |
| txt = '\n\n\n\n{{ plugin: alumnibrowser }}\n', global PLUGINRE = <_sre.SRE_Pattern object>, PLUGINRE.sub = <built-in method sub of _sre.SRE_Pattern object>, call_plugin = <function call_plugin>, match = <_sre.SRE_Match object>, match.groups = <built-in method groups of _sre.SRE_Match object> |
| /usr/lib/python2.4/site-packages/CK/pageutils.py in call_plugin(pluginstr='alumnibrowser ') |
| 854 try: |
| 855 plugin_func = getattr (plugins, plugin_name) |
| 856 retval = plugin_func (self, plugin_args) |
| 857 except AttributeError: |
| 858 retval = "ERROR: PLUGIN '%s' NOT FOUND" % plugin_name |
| retval undefined, plugin_func = <function alumnibrowser>, self = <CK.pageutils.page instance>, plugin_args = '' |
| /srv/www.hss.caltech.edu/www/__commons__/local_plugins/alumnibrowser.py in alumnibrowser(p=<CK.pageutils.page instance>, params='') |
| 142 |
| 143 if p.path_info: |
| 144 return do_profile (p) |
| 145 else: |
| 146 return do_list (p) |
| do_profile = <function do_profile>, p = <CK.pageutils.page instance> |
| /srv/www.hss.caltech.edu/www/__commons__/local_plugins/alumnibrowser.py in do_profile(p=<CK.pageutils.page instance>) |
| 93 |
| 94 def do_profile (p): |
| 95 a = lookup (p.path_info[0]) |
| 96 if a is None: |
| 97 p.status = 404 |
| a undefined, global lookup = <function lookup>, p = <CK.pageutils.page instance>, p.path_info = ['legros__patrick'] |
| /srv/www.hss.caltech.edu/www/__commons__/local_plugins/alumnibrowser.py in lookup(username='legros__patrick') |
| 42 f = file ('/home/hssbot/database/grad.tab', 'r') |
| 43 for line in f: |
| 44 a = row2alum (line.split ("\t")) |
| 45 if a.linkablename() == username: |
| 46 return a |
| a = <local_plugins.alumnibrowser.alum instance>, global row2alum = <function row2alum>, line = '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n', line.split = <built-in method split of str object> |
| /srv/www.hss.caltech.edu/www/__commons__/local_plugins/alumnibrowser.py in row2alum(row=['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\r\n']) |
| 49 def row2alum (row): |
| 50 a = alum () |
| 51 a.lname, a.fname = row[1].split (', ') |
| 52 a.mname = '' |
| 53 a.email = row[3] |
| a = <local_plugins.alumnibrowser.alum instance>, a.lname = '', a.fname = '', row = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\r\n'], ].split undefined |
ValueError: need more than 1 value to unpack
args =
('need more than 1 value to unpack',)