<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Wed May 29 01:49:41 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 = '\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\xec\x9e\xa5 ', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\xec\x9e\xa5 ', 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-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...h.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5.glb', 'label': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-007.png', 'id': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'label': u'\uace0\uc885 \ub9dd\uc721\uc21c\xb7\uc989\uc704 40\uc8fc\ub144 \uae30\ub150\uc7a5'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\uae30\ub150\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \uae30\ub150\uc7a5'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc784\uc778\ub144\uc9c4\uc5f0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc784\uc778\ub144\uc9c4\uc5f0', 'label': u'\uc784\uc778\ub144 11\uc6d4 \uc9c4\uc5f0 (1902.11 \uace0\uc885 39)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'infoUrl': None, 'label': u'\ud0dc\ud669\uc81c \uc608\ubcf5(\u592a\u7687\u5e1d \uf9b6\u670d)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01D', 'label': u'\ud2b9\ubcc4\ud55c \ub0a0\uc5d0 \uc81c\uc791\ub418\ub294 \uae30\ub150\uc7a5'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'3d-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'\uc784\uc778\ub144\uc9c4\uc5f0'}, {'attribute': None, 'relation': u'includes', 'source': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01D', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\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-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...h.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5.glb', 'label': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-007.png', 'id': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'label': u'\uace0\uc885 \ub9dd\uc721\uc21c\xb7\uc989\uc704 40\uc8fc\ub144 \uae30\ub150\uc7a5'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\uae30\ub150\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \uae30\ub150\uc7a5'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc784\uc778\ub144\uc9c4\uc5f0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc784\uc778\ub144\uc9c4\uc5f0', 'label': u'\uc784\uc778\ub144 11\uc6d4 \uc9c4\uc5f0 (1902.11 \uace0\uc885 39)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'infoUrl': None, 'label': u'\ud0dc\ud669\uc81c \uc608\ubcf5(\u592a\u7687\u5e1d \uf9b6\u670d)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01D', 'label': u'\ud2b9\ubcc4\ud55c \ub0a0\uc5d0 \uc81c\uc791\ub418\ub294 \uae30\ub150\uc7a5'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'3d-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'target': u'\uc784\uc778\ub144\uc9c4\uc5f0'}, {'attribute': None, 'relation': u'includes', 'source': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01D', 'target': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\xec\x9e\xa5 ')
    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-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...h.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5.glb', 'label': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-007.png', 'id': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'label': u'\uace0\uc885 \ub9dd\uc721\uc21c\xb7\uc989\uc704 40\uc8fc\ub144 \uae30\ub150\uc7a5'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\uae30\ub150\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \uae30\ub150\uc7a5'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc784\uc778\ub144\uc9c4\uc5f0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc784\uc778\ub144\uc9c4\uc5f0', 'label': u'\uc784\uc778\ub144 11\uc6d4 \uc9c4\uc5f0 (1902.11 \uace0\uc885 39)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'infoUrl': None, 'label': u'\ud0dc\ud669\uc81c \uc608\ubcf5(\u592a\u7687\u5e1d \uf9b6\u670d)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01D', 'label': u'\ud2b9\ubcc4\ud55c \ub0a0\uc5d0 \uc81c\uc791\ub418\ub294 \uae30\ub150\uc7a5'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\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-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...h.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5.glb', 'label': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-007.png', 'id': u'\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\ub9dd\uc721\uc21c\ub4f1\uadf940\uc8fc\ub144\uae30\ub150\uc7a5', 'label': u'\uace0\uc885 \ub9dd\uc721\uc21c\xb7\uc989\uc704 40\uc8fc\ub144 \uae30\ub150\uc7a5'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uae30\ub150\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\uae30\ub150\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \uae30\ub150\uc7a5'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc784\uc778\ub144\uc9c4\uc5f0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc784\uc778\ub144\uc9c4\uc5f0', 'label': u'\uc784\uc778\ub144 11\uc6d4 \uc9c4\uc5f0 (1902.11 \uace0\uc885 39)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\ud0dc\ud669\uc81c_\uc608\ubcf5', 'infoUrl': None, 'label': u'\ud0dc\ud669\uc81c \uc608\ubcf5(\u592a\u7687\u5e1d \uf9b6\u670d)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01D', 'label': u'\ud2b9\ubcc4\ud55c \ub0a0\uc5d0 \uc81c\uc791\ub418\ub294 \uae30\ub150\uc7a5'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xea\xb3\xa0\xec\xa2\x85\xeb\xa7\x9d\xec\x9c\xa1\xec\x88\x9c\xeb\x93\xb1\xea\xb7\xb940\xec\xa3\xbc\xeb\x85\x84\xea\xb8\xb0\xeb\x85\x90\xec\x9e\xa5 ')
    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"