<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Oct 10 20:31:27 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/jisun/public_html/cgi-bin/Story01.py in |
302 |
303 displayNetwork("templateSov.htm", db, project, node) |
304 #displayData( node ) |
305 |
=> 306 main() |
main = <function main> |
/home/jisun/public_html/cgi-bin/Story01.py in main() |
301 return |
302 |
=> 303 displayNetwork("templateSov.htm", db, project, node) |
304 #displayData( node ) |
305 |
global displayNetwork = <function displayNetwork>, db = 's_jisun', project = 'JD2', node = '\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac' |
/home/jisun/public_html/cgi-bin/Story01.py in displayNetwork(template='templateSov.htm', db='s_jisun', project='JD2', node='\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac') |
279 if not line: break |
280 if( '#YourData' == line.strip()): |
=> 281 displayData( db, project, node ) |
282 else: |
283 print line |
global displayData = <function displayData>, db = 's_jisun', project = 'JD2', node = '\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac' |
/home/jisun/public_html/cgi-bin/Story01.py in displayData(database='s_jisun', project='JD2', node='\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac') |
266 db.close() |
267 |
=> 268 printNodes( nodelist, database, project, node ) |
269 printLinks( edgelist, node ) |
270 |
global printNodes = <function printNodes>, nodelist = [{'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\u7d93\u570b\u5927\u5178', 'label': u'\u7d93\u570b\u5927\u5178', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u7d93\u570b\u5927\u5178'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uace0\ub824\uc0ac', 'label': u'\uace0\ub824\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uad6c\ub2f9\uc11c', 'label': u'\uad6c\ub2f9\uc11c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uad6c\ub2f9\uc11c'}, {'class': u'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uae40\ub450\ud5cc', 'label': u'\uae40\ub450\ud5cc', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uae40\ub450\ud5cc'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\u5927\u5178\u6703\u901a', 'label': u'\u5927\u5178\u6703\u901a', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u5927\u5178\u6703\u901a'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0', 'label': u'\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub9cc\uc120\ubb38\ud654\uc0ac\uad00', 'label': u'\ub9cc\uc120\ubb38\ud654\uc0ac\uad00', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub9cc\uc120\ubb38\ud654\uc0ac\uad00'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubbfc\uc2b5', 'label': u'\ubbfc\uc2b5', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubbfc\uc2b5'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubc95\uc81c\uc0ac\ub860\uc9d1', 'label': u'\ubc95\uc81c\uc0ac\ub860\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubc95\uc81c\uc0ac\ub860\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\ub840\ud3b8\ub78c', 'label': u'\uc0ac\ub840\ud3b8\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\ub840\ud3b8\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\uc18c\uc808', 'label': u'\uc0ac\uc18c\uc808', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\uc18c\uc808'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\uc758', 'label': u'\uc0ac\uc758', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\uc758'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc131\uc885\uc2e4\ub85d', 'label': u'\uc131\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc131\uc885\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc138\uc870\uc2e4\ub85d', 'label': u'\uc138\uc870\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc870\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc138\uc885\uc2e4\ub85d', 'label': u'\uc138\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc885\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0', 'label': u'\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc21c\uc790', 'label': u'\uc21c\uc790', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc21c\uc790'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc608\uae30', 'label': u'\uc608\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc608\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc6a9\uc7ac\ucd1d\ud654', 'label': u'\uc6a9\uc7ac\ucd1d\ud654', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc6a9\uc7ac\ucd1d\ud654'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc724\ub9ac\ud559', 'label': u'\uc724\ub9ac\ud559', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc724\ub9ac\ud559'}, ...], database = 's_jisun', project = 'JD2', node = '\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac' |
/home/jisun/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\u7d93\u570b\u5927\u5178', 'label': u'\u7d93\u570b\u5927\u5178', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u7d93\u570b\u5927\u5178'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uace0\ub824\uc0ac', 'label': u'\uace0\ub824\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uad6c\ub2f9\uc11c', 'label': u'\uad6c\ub2f9\uc11c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uad6c\ub2f9\uc11c'}, {'class': u'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uae40\ub450\ud5cc', 'label': u'\uae40\ub450\ud5cc', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uae40\ub450\ud5cc'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\u5927\u5178\u6703\u901a', 'label': u'\u5927\u5178\u6703\u901a', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u5927\u5178\u6703\u901a'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0', 'label': u'\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uad6d\ubb38\ud5cc\ube44\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub9cc\uc120\ubb38\ud654\uc0ac\uad00', 'label': u'\ub9cc\uc120\ubb38\ud654\uc0ac\uad00', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub9cc\uc120\ubb38\ud654\uc0ac\uad00'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubbfc\uc2b5', 'label': u'\ubbfc\uc2b5', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubbfc\uc2b5'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubc95\uc81c\uc0ac\ub860\uc9d1', 'label': u'\ubc95\uc81c\uc0ac\ub860\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubc95\uc81c\uc0ac\ub860\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\ub840\ud3b8\ub78c', 'label': u'\uc0ac\ub840\ud3b8\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\ub840\ud3b8\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\uc18c\uc808', 'label': u'\uc0ac\uc18c\uc808', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\uc18c\uc808'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0ac\uc758', 'label': u'\uc0ac\uc758', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0ac\uc758'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc131\uc885\uc2e4\ub85d', 'label': u'\uc131\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc131\uc885\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc138\uc870\uc2e4\ub85d', 'label': u'\uc138\uc870\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc870\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc138\uc885\uc2e4\ub85d', 'label': u'\uc138\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc885\uc2e4\ub85d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0', 'label': u'\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc18c\ubaa9\uc81c\ub3c4\uae30\uc6d0\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc21c\uc790', 'label': u'\uc21c\uc790', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc21c\uc790'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc608\uae30', 'label': u'\uc608\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc608\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc6a9\uc7ac\ucd1d\ud654', 'label': u'\uc6a9\uc7ac\ucd1d\ud654', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc6a9\uc7ac\ucd1d\ud654'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc724\ub9ac\ud559', 'label': u'\uc724\ub9ac\ud559', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc724\ub9ac\ud559'}, ...], database='s_jisun', project='JD2', subject='\xec\x98\xa4\xeb\xb3\xb5\xec\xa0\x9c\xeb\x8f\x84\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac') |
68 print " nodesArray.push({\n" |
69 print " id: 'switch1',\n" |
=> 70 print " label: '{0} List',\n".format(subjectClass) |
71 print " url: '{0}?db={1}&project={2}&key={3}',\n".format(CategoryUrl, database, project, subjectClass) |
72 print " shape: 'triangle',\n" |
subjectClass undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'subjectClass' referenced before assignment
args =
("local variable 'subjectClass' referenced before assignment",)
message =
"local variable 'subjectClass' referenced before assignment"