<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Nov 28 12:10:29 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\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)' |
/home/jisun/public_html/cgi-bin/Story01.py in displayNetwork(template='templateSov.htm', db='s_jisun', project='JD2', node='\xec\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)') |
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\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)' |
/home/jisun/public_html/cgi-bin/Story01.py in displayData(database='s_jisun', project='JD2', node='\xec\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)') |
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'\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'\uace0\ub824\uc0ac\uc808\uc694', 'label': u'\uace0\ub824\uc0ac\uc808\uc694', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\uc0ac\uc808\uc694'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uba85\uc0ac', 'label': u'\uba85\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uba85\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc5ec\uc0ac\uc81c\uac15', 'label': u'\uc5ec\uc0ac\uc81c\uac15', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc5ec\uc0ac\uc81c\uac15'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc6a9\ube44\uc5b4\ucc9c\uac00', 'label': u'\uc6a9\ube44\uc5b4\ucc9c\uac00', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc6a9\ube44\uc5b4\ucc9c\uac00'}, {'class': u'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uc774\uc0c1\ubc31', 'label': u'\uc774\uc0c1\ubc31', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc774\uc0c1\ubc31'}, {'class': u'Volume', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Volume.png', 'id': u'\uc9c4\ub2e8\ud559\ubcf4_4', 'label': u'\uc9c4\ub2e8\ud559\ubcf4_4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc9c4\ub2e8\ud559\ubcf4_4'}], database = 's_jisun', project = 'JD2', node = '\xec\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)' |
/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'\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'\uace0\ub824\uc0ac\uc808\uc694', 'label': u'\uace0\ub824\uc0ac\uc808\uc694', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\ub824\uc0ac\uc808\uc694'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uba85\uc0ac', 'label': u'\uba85\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uba85\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc5ec\uc0ac\uc81c\uac15', 'label': u'\uc5ec\uc0ac\uc81c\uac15', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc5ec\uc0ac\uc81c\uac15'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc6a9\ube44\uc5b4\ucc9c\uac00', 'label': u'\uc6a9\ube44\uc5b4\ucc9c\uac00', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc6a9\ube44\uc5b4\ucc9c\uac00'}, {'class': u'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uc774\uc0c1\ubc31', 'label': u'\uc774\uc0c1\ubc31', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc774\uc0c1\ubc31'}, {'class': u'Volume', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Volume.png', 'id': u'\uc9c4\ub2e8\ud559\ubcf4_4', 'label': u'\uc9c4\ub2e8\ud559\ubcf4_4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc9c4\ub2e8\ud559\ubcf4_4'}], database='s_jisun', project='JD2', subject='\xec\x9d\xb4\xec\xa1\xb0\xea\xb1\xb4\xea\xb5\xad\xec\x9d\x98_\xec\x97\xb0\xea\xb5\xac(1)') |
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"