<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 1 22:07:45 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\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0' |
/home/jisun/public_html/cgi-bin/Story01.py in displayNetwork(template='templateSov.htm', db='s_jisun', project='JD2', node='\xec\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0') |
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\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0' |
/home/jisun/public_html/cgi-bin/Story01.py in displayData(database='s_jisun', project='JD2', node='\xec\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0') |
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'\uac00\uc871\uc81c\ub3c4\uc804\uc9d1', 'label': u'\uac00\uc871\uc81c\ub3c4\uc804\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uac00\uc871\uc81c\ub3c4\uc804\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uacbd\uad6d\ub300\uc804', 'label': u'\uacbd\uad6d\ub300\uc804', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uacbd\uad6d\ub300\uc804'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uacbd\uad6d\ub300\uc804\uc5ed\ud574', 'label': u'\uacbd\uad6d\ub300\uc804\uc5ed\ud574', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uacbd\uad6d\ub300\uc804\uc5ed\ud574'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870', 'label': u'\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870'}, {'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'\uaddc\uc0ac', 'label': u'\uaddc\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uaddc\uc0ac'}, {'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'\uae40\ub9bd\uc2dc\uc9d1', 'label': u'\uae40\ub9bd\uc2dc\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uae40\ub9bd\uc2dc\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub09c\uacc4\uc720\uace0', 'label': u'\ub09c\uacc4\uc720\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub09c\uacc4\uc720\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub300\ub3d9\uc6b4\uc625', 'label': u'\ub300\ub3d9\uc6b4\uc625', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub300\ub3d9\uc6b4\uc625'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0', 'label': u'\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uba85\ub960', 'label': u'\uba85\ub960', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uba85\ub960'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubd81\uc0ac', 'label': u'\ubd81\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubd81\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ube44\uad00\uc7a1\uae30', 'label': u'\ube44\uad00\uc7a1\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ube44\uad00\uc7a1\uae30'}, {'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'\uc0bc\uad6d\uc0ac\uae30', 'label': u'\uc0bc\uad6d\uc0ac\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc0ac\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0bc\uad6d\uc720\uc0ac', 'label': u'\uc0bc\uad6d\uc720\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc720\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0bc\uad6d\uc9c0', 'label': u'\uc0bc\uad6d\uc9c0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc9c0'}, {'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\uc885\uc2e4\ub85d', 'label': u'\uc138\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc885\uc2e4\ub85d'}, ...], database = 's_jisun', project = 'JD2', node = '\xec\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0' |
/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'\uac00\uc871\uc81c\ub3c4\uc804\uc9d1', 'label': u'\uac00\uc871\uc81c\ub3c4\uc804\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uac00\uc871\uc81c\ub3c4\uc804\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uacbd\uad6d\ub300\uc804', 'label': u'\uacbd\uad6d\ub300\uc804', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uacbd\uad6d\ub300\uc804'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uacbd\uad6d\ub300\uc804\uc5ed\ud574', 'label': u'\uacbd\uad6d\ub300\uc804\uc5ed\ud574', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uacbd\uad6d\ub300\uc804\uc5ed\ud574'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870', 'label': u'\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\ub3c4\uacbd\uc7a1\uc18d\uc870'}, {'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'\uaddc\uc0ac', 'label': u'\uaddc\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uaddc\uc0ac'}, {'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'\uae40\ub9bd\uc2dc\uc9d1', 'label': u'\uae40\ub9bd\uc2dc\uc9d1', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uae40\ub9bd\uc2dc\uc9d1'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub09c\uacc4\uc720\uace0', 'label': u'\ub09c\uacc4\uc720\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub09c\uacc4\uc720\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub300\ub3d9\uc6b4\uc625', 'label': u'\ub300\ub3d9\uc6b4\uc625', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub300\ub3d9\uc6b4\uc625'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0', 'label': u'\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub300\ub9ac\uc6d0\ud310\ub840\uc694\uc9c0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uba85\ub960', 'label': u'\uba85\ub960', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uba85\ub960'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubd81\uc0ac', 'label': u'\ubd81\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubd81\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ube44\uad00\uc7a1\uae30', 'label': u'\ube44\uad00\uc7a1\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ube44\uad00\uc7a1\uae30'}, {'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'\uc0bc\uad6d\uc0ac\uae30', 'label': u'\uc0bc\uad6d\uc0ac\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc0ac\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0bc\uad6d\uc720\uc0ac', 'label': u'\uc0bc\uad6d\uc720\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc720\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc0bc\uad6d\uc9c0', 'label': u'\uc0bc\uad6d\uc9c0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc0bc\uad6d\uc9c0'}, {'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\uc885\uc2e4\ub85d', 'label': u'\uc138\uc885\uc2e4\ub85d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc138\uc885\uc2e4\ub85d'}, ...], database='s_jisun', project='JD2', subject='\xec\xa1\xb0\xec\x84\xa0\xec\xb2\xa9\xec\xa0\x9c\xec\x82\xac_\xec\x86\x8c\xea\xb3\xa0') |
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"