<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Wed May 29 00:59:53 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/sandbox/public_html/cgi-bin/Story01.py in ()
    510 
    511         displayData( db, project, account, pwd, node, NetworkLimit  )
    512 
    513 
=>  514 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/Story01.py in main()
    509         if ( NetworkLimit < 1 ): NetworkLimit = 100
    510 
=>  511         displayData( db, project, account, pwd, node, NetworkLimit  )
    512 
    513 
global displayData = <function displayData>, db = 'hanyang2022', project = 'hanyang2022', account = 'guest', pwd = 'guest', node = '\xec\xa0\x84\xec\xb0\xa8 ', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xa0\x84\xec\xb0\xa8 ', NetworkLimit=100)
    483         
    484         if( count <= NetworkLimit ):
=>  485                 displayNetwork( nodelist, edgelist, database, project, account, password, node )
    486         else:
    487                 displayList( nodelist, edgelist, database, project, account, password, node )   
global displayNetwork = <function displayNetwork>, nodelist = [{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc804\ucc28.glb', 'label': u'\uc804\ucc28 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc804\ucc28.jpg', 'id': u'\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28', 'label': u'\uc804\ucc28(\u96fb\u8eca)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/place.png', 'id': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28_\ucc28\uace0_\ud130', 'label': u'\uc804\ucc28 \ucc28\uace0 \ud130'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'label': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\uc804\ucc28', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episodeCn.png', 'id': u'E0-704', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E0-704', 'label': u'\u6c49\u57ce\u7684\u6709\u8f68\u7535\u8f66'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10A', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10A', 'label': u'\ucd5c\ucd08\uc758 \uc804\ub4f1\uacfc \uc804\ucc28\uac00 \uc124\uce58\ub418\ub2e4'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc804\ucc28', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc804\ucc28', 'target': u'3d-\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\uc804\ucc28', 'target': u'bib-\uc804\ucc28'}, {'attribute': u'\ubc15\ub824\uc815', 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E0-704', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10A', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10A', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\xa0\x84\xec\xb0\xa8 '
 /home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc804\ucc28.glb', 'label': u'\uc804\ucc28 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc804\ucc28.jpg', 'id': u'\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28', 'label': u'\uc804\ucc28(\u96fb\u8eca)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/place.png', 'id': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28_\ucc28\uace0_\ud130', 'label': u'\uc804\ucc28 \ucc28\uace0 \ud130'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'label': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\uc804\ucc28', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episodeCn.png', 'id': u'E0-704', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E0-704', 'label': u'\u6c49\u57ce\u7684\u6709\u8f68\u7535\u8f66'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10A', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10A', 'label': u'\ucd5c\ucd08\uc758 \uc804\ub4f1\uacfc \uc804\ucc28\uac00 \uc124\uce58\ub418\ub2e4'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc804\ucc28', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc804\ucc28', 'target': u'3d-\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\uc804\ucc28', 'target': u'bib-\uc804\ucc28'}, {'attribute': u'\ubc15\ub824\uc815', 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E0-704', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10A', 'target': u'\uc804\ucc28'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10A', 'target': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xa0\x84\xec\xb0\xa8 ')
    342                 if not line: break
    343                 if( '#YourData' == line.strip()):
=>  344                         printNodes( nodelist, database, project, account, password, node )
    345                         printLinks( edgelist, node, account )
    346                 else:
global printNodes = <function printNodes>, nodelist = [{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc804\ucc28.glb', 'label': u'\uc804\ucc28 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc804\ucc28.jpg', 'id': u'\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28', 'label': u'\uc804\ucc28(\u96fb\u8eca)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/place.png', 'id': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28_\ucc28\uace0_\ud130', 'label': u'\uc804\ucc28 \ucc28\uace0 \ud130'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'label': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\uc804\ucc28', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episodeCn.png', 'id': u'E0-704', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E0-704', 'label': u'\u6c49\u57ce\u7684\u6709\u8f68\u7535\u8f66'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10A', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10A', 'label': u'\ucd5c\ucd08\uc758 \uc804\ub4f1\uacfc \uc804\ucc28\uac00 \uc124\uce58\ub418\ub2e4'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\xa0\x84\xec\xb0\xa8 '
 /home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc804\ucc28.glb', 'label': u'\uc804\ucc28 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc804\ucc28.jpg', 'id': u'\uc804\ucc28', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28', 'label': u'\uc804\ucc28(\u96fb\u8eca)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/place.png', 'id': u'\uc804\ucc28_\ucc28\uace0_\ud130', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc804\ucc28_\ucc28\uace0_\ud130', 'label': u'\uc804\ucc28 \ucc28\uace0 \ud130'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud55c\uc131\uc804\uae30\ud68c\uc0ac', 'label': u'\ud55c\uc131\uc804\uae30\ud68c\uc0ac'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\uc804\ucc28', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episodeCn.png', 'id': u'E0-704', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E0-704', 'label': u'\u6c49\u57ce\u7684\u6709\u8f68\u7535\u8f66'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10A', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10A', 'label': u'\ucd5c\ucd08\uc758 \uc804\ub4f1\uacfc \uc804\ucc28\uac00 \uc124\uce58\ub418\ub2e4'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xec\xa0\x84\xec\xb0\xa8 ')
    225         
    226         #add show-all-story-nodes button
=>  227         if( subjectClass == 'Story' ) :
    228                 print "                 nodesArray.push({"
    229                 print "                         id: 'switch1',"
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"