<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Thu May 2 18:49:24 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 ()
    521 
    522         displayData( db, project, account, pwd, node, NetworkLimit  )
    523 
    524 
=>  525 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/Story01.py in main()
    520         if ( NetworkLimit < 1 ): NetworkLimit = 100
    521 
=>  522         displayData( db, project, account, pwd, node, NetworkLimit  )
    523 
    524 
global displayData = <function displayData>, db = 'hanyang2022', project = 'hanyang2022', account = 'guest', pwd = 'guest', node = '3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5', NetworkLimit=100)
    494         
    495         if( count <= NetworkLimit ):
=>  496                 displayNetwork( nodelist, edgelist, database, project, account, password, node )
    497         else:
    498                 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-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/~hanyang/glb/\uac74\ubb3c/\ud638\uc870/\ud638\uc870\ub0a8\uce21\uc678\ud589\ub791\ubc0f\ub2f4\uc7a5.glb', 'label': u'\ud638\uc870 \ub0a8\uce21 \uc678\ud589\ub791 \ubc0f \ub2f4\uc7a5 3D \ubaa8\ub378'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/centralOffice.png', 'id': u'\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870(\u6236\u66f9)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ud638\uc870_\uad8c\uc5ed', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870 \uad8c\uc5ed'}], edgelist = [{'attribute': u'3D \ubaa8\ub378', 'relation': u'isShownBy', 'source': u'\ud638\uc870', 'target': u'3d-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud638\uc870_\uad8c\uc5ed', 'target': u'3d-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5'}, {'attribute': None, 'relation': u'isSiteOf', 'source': u'\ud638\uc870_\uad8c\uc5ed', 'target': u'\ud638\uc870'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5'
 /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-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/~hanyang/glb/\uac74\ubb3c/\ud638\uc870/\ud638\uc870\ub0a8\uce21\uc678\ud589\ub791\ubc0f\ub2f4\uc7a5.glb', 'label': u'\ud638\uc870 \ub0a8\uce21 \uc678\ud589\ub791 \ubc0f \ub2f4\uc7a5 3D \ubaa8\ub378'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/centralOffice.png', 'id': u'\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870(\u6236\u66f9)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ud638\uc870_\uad8c\uc5ed', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870 \uad8c\uc5ed'}], edgelist=[{'attribute': u'3D \ubaa8\ub378', 'relation': u'isShownBy', 'source': u'\ud638\uc870', 'target': u'3d-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud638\uc870_\uad8c\uc5ed', 'target': u'3d-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5'}, {'attribute': None, 'relation': u'isSiteOf', 'source': u'\ud638\uc870_\uad8c\uc5ed', 'target': u'\ud638\uc870'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5')
    344                 if not line: break
    345                 if( '#YourData' == line.strip()):
=>  346                         printNodes( nodelist, database, project, account, password, node )
    347                         printLinks( edgelist, node, account )
    348                 else:
global printNodes = <function printNodes>, nodelist = [{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/~hanyang/glb/\uac74\ubb3c/\ud638\uc870/\ud638\uc870\ub0a8\uce21\uc678\ud589\ub791\ubc0f\ub2f4\uc7a5.glb', 'label': u'\ud638\uc870 \ub0a8\uce21 \uc678\ud589\ub791 \ubc0f \ub2f4\uc7a5 3D \ubaa8\ub378'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/centralOffice.png', 'id': u'\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870(\u6236\u66f9)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ud638\uc870_\uad8c\uc5ed', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870 \uad8c\uc5ed'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5'
 /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-\ud638\uc870_\ub0a8\uce21_\uc678\ud589\ub791_\ubc0f_\ub2f4\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/~hanyang/glb/\uac74\ubb3c/\ud638\uc870/\ud638\uc870\ub0a8\uce21\uc678\ud589\ub791\ubc0f\ub2f4\uc7a5.glb', 'label': u'\ud638\uc870 \ub0a8\uce21 \uc678\ud589\ub791 \ubc0f \ub2f4\uc7a5 3D \ubaa8\ub378'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/centralOffice.png', 'id': u'\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870(\u6236\u66f9)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ud638\uc870_\uad8c\uc5ed', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud638\uc870', 'label': u'\ud638\uc870 \uad8c\uc5ed'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='3D-\xed\x98\xb8\xec\xa1\xb0_\xeb\x82\xa8\xec\xb8\xa1_\xec\x99\xb8\xed\x96\x89\xeb\x9e\x91_\xeb\xb0\x8f_\xeb\x8b\xb4\xec\x9e\xa5')
    252         
    253         #add show-all-story-nodes button
=>  254         if( subjectClass == 'Story' ) :
    255                 print "                 nodesArray.push({"
    256                 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"