<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Mon Nov 25 00:28:58 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\xed\x83\x91\xed\x8c\x8c\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\xa1\xb0\xec\x84\xa0\xed\x83\x91\xed\x8c\x8c\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\xa1\xb0\xec\x84\xa0\xed\x83\x91\xed\x8c\x8c\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\xa1\xb0\xec\x84\xa0\xed\x83\x91\xed\x8c\x8c\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'\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8', 'label': u'\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8'}, {'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'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uace0\uc720\uc12d', 'label': u'\uace0\uc720\uc12d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\uc720\uc12d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uacbd\uc7a1\uae30', 'label': u'\ub3d9\uacbd\uc7a1\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uacbd\uc7a1\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uacbd\uc7a1\uae30\uac04\uc624', 'label': u'\ub3d9\uacbd\uc7a1\uae30\uac04\uc624', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uacbd\uc7a1\uae30\uac04\uc624'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c', 'label': u'\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book', 'label': u'\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44', 'label': u'\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44'}, {'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'\uc804\uace0\uac11', 'label': u'\uc804\uace0\uac11', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc804\uace0\uac11'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\ub3c4\ubcf4', 'label': u'\uc870\uc120\uac74\ucd95\ub3c4\ubcf4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\ub3c4\ubcf4'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\uc0ac\ub860', 'label': u'\uc870\uc120\uac74\ucd95\uc0ac\ub860', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\uc0ac\ub860'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0', 'label': u'\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uace0\uc801\ub3c4\ubcf4', 'label': u'\uc870\uc120\uace0\uc801\ub3c4\ubcf4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uace0\uc801\ub3c4\ubcf4'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c', 'label': u'\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\ubd88\uad50\ud1b5\uc0ac', 'label': u'\uc870\uc120\ubd88\uad50\ud1b5\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\ubd88\uad50\ud1b5\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uc0ac\uac15\uc88c', 'label': u'\uc870\uc120\uc0ac\uac15\uc88c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uc0ac\uac15\uc88c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uc120\uad50\uc0ac', 'label': u'\uc870\uc120\uc120\uad50\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uc120\uad50\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc9c0\ub098\uac74\ucd95\uc0ac', 'label': u'\uc9c0\ub098\uac74\ucd95\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc9c0\ub098\uac74\ucd95\uc0ac'}, ...], database = 's_jisun', project = 'JD2', node = '\xec\xa1\xb0\xec\x84\xa0\xed\x83\x91\xed\x8c\x8c\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'\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8', 'label': u'\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\u6176\u5c1a\u5317\u9053\u6176\u5dde\u90e1\u6771\u9762\u666e\u9580\u91cc\u53e4\u58b3\u53ca\u6176\u5c71\u90e1\u30fb\u6e05\u9053\u90e1\u30fb\u91d1\u6cc9\u90e1\u30fb\u5c1a\u5dde\u90e1\u4e26\u6176\u5c1a\u5357\u9053\u6881\u5c71\u90e1\u30fb\u6771\u83b1\u90e1\u8af8\u907a\u8e5f\u8abf\u67fb\u5831\u544a\u66f8'}, {'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'Person', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Person.png', 'id': u'\uace0\uc720\uc12d', 'label': u'\uace0\uc720\uc12d', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uace0\uc720\uc12d'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uacbd\uc7a1\uae30', 'label': u'\ub3d9\uacbd\uc7a1\uae30', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uacbd\uc7a1\uae30'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uacbd\uc7a1\uae30\uac04\uc624', 'label': u'\ub3d9\uacbd\uc7a1\uae30\uac04\uc624', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uacbd\uc7a1\uae30\uac04\uc624'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c', 'label': u'\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ub3d9\uad6d\uc5ec\uc9c0\uc2b9\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book', 'label': u'\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubc31\uc81c\uc0ac\uc5f0\uad6c-Book'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44', 'label': u'\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\ubd80\uc11d\uc0ac\uc6d0\uc735\uad6d\uc0ac\ube44'}, {'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'\uc804\uace0\uac11', 'label': u'\uc804\uace0\uac11', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc804\uace0\uac11'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\ub3c4\ubcf4', 'label': u'\uc870\uc120\uac74\ucd95\ub3c4\ubcf4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\ub3c4\ubcf4'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\uc0ac\ub860', 'label': u'\uc870\uc120\uac74\ucd95\uc0ac\ub860', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\uc0ac\ub860'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0', 'label': u'\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uac74\ucd95\uc870\uc0ac\ubcf4\uace0'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uace0\uc801\ub3c4\ubcf4', 'label': u'\uc870\uc120\uace0\uc801\ub3c4\ubcf4', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uace0\uc801\ub3c4\ubcf4'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c', 'label': u'\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uae08\uc11d\ubb38\ucd1d\ub78c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\ubd88\uad50\ud1b5\uc0ac', 'label': u'\uc870\uc120\ubd88\uad50\ud1b5\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\ubd88\uad50\ud1b5\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uc0ac\uac15\uc88c', 'label': u'\uc870\uc120\uc0ac\uac15\uc88c', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uc0ac\uac15\uc88c'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc870\uc120\uc120\uad50\uc0ac', 'label': u'\uc870\uc120\uc120\uad50\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc870\uc120\uc120\uad50\uc0ac'}, {'class': u'Book', 'icon': u'http://dh.aks.ac.kr/~nkh/images/icon_Book.png', 'id': u'\uc9c0\ub098\uac74\ucd95\uc0ac', 'label': u'\uc9c0\ub098\uac74\ucd95\uc0ac', 'url': u'http://dh.aks.ac.kr/~nkh/wiki/index.php/\uc9c0\ub098\uac74\ucd95\uc0ac'}, ...], database='s_jisun', project='JD2', subject='\xec\xa1\xb0\xec\x84\xa0\xed\x83\x91\xed\x8c\x8c\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"