<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Thu Aug 22 17:23:14 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 = '\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac ', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac ', 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-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ud751\ubc18\ub839\ucc29\uc218\ud3ec.glb', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6839', 'label': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601 1884'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6840', 'label': u'\uac11\uc624\uc758\uc81c\uac1c\ud601 1894'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc18c\ub840\ubcf5.png', 'id': u'\uc18c\ub840\ubcf5', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0030024', 'label': u'\uc18c\ub840\ubcf5(\u5c0f\u79ae\u670d)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud751\ubc18\ub839\ucc29\uc218\ud3ec.png', 'id': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec(\u9ed1\u76e4\u9818\u7a84\u8896\u888d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E1-630', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/SemanticWik....py?db=hanyang2022&project=hanyang2022&key=E1-630', 'label': u'\uad00\ubcf5 \uac04\uc18c\ud654\uc758 \uccab \uc2dc\ub3c4'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uc18c\ub840\ubcf5', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'3d-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'E1-630'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E1-630', 'target': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac '
 /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-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ud751\ubc18\ub839\ucc29\uc218\ud3ec.glb', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6839', 'label': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601 1884'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6840', 'label': u'\uac11\uc624\uc758\uc81c\uac1c\ud601 1894'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc18c\ub840\ubcf5.png', 'id': u'\uc18c\ub840\ubcf5', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0030024', 'label': u'\uc18c\ub840\ubcf5(\u5c0f\u79ae\u670d)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud751\ubc18\ub839\ucc29\uc218\ud3ec.png', 'id': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec(\u9ed1\u76e4\u9818\u7a84\u8896\u888d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E1-630', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/SemanticWik....py?db=hanyang2022&project=hanyang2022&key=E1-630', 'label': u'\uad00\ubcf5 \uac04\uc18c\ud654\uc758 \uccab \uc2dc\ub3c4'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uc18c\ub840\ubcf5', 'target': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'3d-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'E1-630'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'target': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E1-630', 'target': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac ')
    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-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ud751\ubc18\ub839\ucc29\uc218\ud3ec.glb', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6839', 'label': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601 1884'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6840', 'label': u'\uac11\uc624\uc758\uc81c\uac1c\ud601 1894'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc18c\ub840\ubcf5.png', 'id': u'\uc18c\ub840\ubcf5', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0030024', 'label': u'\uc18c\ub840\ubcf5(\u5c0f\u79ae\u670d)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud751\ubc18\ub839\ucc29\uc218\ud3ec.png', 'id': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec(\u9ed1\u76e4\u9818\u7a84\u8896\u888d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E1-630', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/SemanticWik....py?db=hanyang2022&project=hanyang2022&key=E1-630', 'label': u'\uad00\ubcf5 \uac04\uc18c\ud654\uc758 \uccab \uc2dc\ub3c4'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac '
 /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-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ud751\ubc18\ub839\ucc29\uc218\ud3ec.glb', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6839', 'label': u'\uac11\uc2e0\uc758\uc81c\uac1c\ud601 1884'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uac11\uc624\uc758\uc81c\uac1c\ud601', 'infoUrl': u'https://folkency.nfm.go.kr/kr/topic/detail/6840', 'label': u'\uac11\uc624\uc758\uc81c\uac1c\ud601 1894'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc18c\ub840\ubcf5.png', 'id': u'\uc18c\ub840\ubcf5', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0030024', 'label': u'\uc18c\ub840\ubcf5(\u5c0f\u79ae\u670d)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud751\ubc18\ub839\ucc29\uc218\ud3ec.png', 'id': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'label': u'\ud751\ubc18\ub839\ucc29\uc218\ud3ec(\u9ed1\u76e4\u9818\u7a84\u8896\u888d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E1-630', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/SemanticWik....py?db=hanyang2022&project=hanyang2022&key=E1-630', 'label': u'\uad00\ubcf5 \uac04\uc18c\ud654\uc758 \uccab \uc2dc\ub3c4'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud751\ubc18\ub839\ucc29\uc218\ud3ec', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xed\x9d\x91\xeb\xb0\x98\xeb\xa0\xb9\xec\xb0\xa9\xec\x88\x98\xed\x8f\xac ')
    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"