<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Thu Aug 22 17:21: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 = '\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 ', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 ', 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-\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc8fd\uc548\ub9c8.glb', 'label': u'\uc8fd\uc548\ub9c8 3D \ubaa8\ub378'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'label': u'\uace0\uc885 \uad6d\uc7a5 \uc8fd\uc548\ub9c8 \uc0ac\uc9c4'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'label': u'\uace0\uc885 \uad6d\uc7a5 \ud589\ub82c \uc0bd\ud654'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/record.png', 'id': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'label': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9(\u5fa1\u846c\u5100\u5beb\u771e\u5e16)'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885\ud669\uc81c\uc758\ub9c8\uc9c0\ub9c9\uae38.jpg', 'id': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38', 'infoUrl': u'https://museum.seoul.go.kr/www/board/NR_boardView.do?bbsCd=1004&seq=20170220221754740&sso=ok', 'label': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758 \ub9c8\uc9c0\ub9c9 \uae38'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc8fd\uc0b0\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc0b0\ub9c8', 'label': u'\uc8fd\uc0b0\ub9c8(\u7af9\u6563\u99ac)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc8fd\uc548\ub9c8.jpg', 'id': u'\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc548\ub9c8', 'label': u'\uc8fd\uc548\ub9c8(\u7af9\u978d\u99ac)'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc8fd\uc548\ub9c8', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'depicts', 'source': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'target': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4'}, {'attribute': None, 'relation': u'depicts', 'source': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'3d-\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'\uc8fd\uc0b0\ub9c8'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 '
 /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-\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc8fd\uc548\ub9c8.glb', 'label': u'\uc8fd\uc548\ub9c8 3D \ubaa8\ub378'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'label': u'\uace0\uc885 \uad6d\uc7a5 \uc8fd\uc548\ub9c8 \uc0ac\uc9c4'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'label': u'\uace0\uc885 \uad6d\uc7a5 \ud589\ub82c \uc0bd\ud654'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/record.png', 'id': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'label': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9(\u5fa1\u846c\u5100\u5beb\u771e\u5e16)'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885\ud669\uc81c\uc758\ub9c8\uc9c0\ub9c9\uae38.jpg', 'id': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38', 'infoUrl': u'https://museum.seoul.go.kr/www/board/NR_boardView.do?bbsCd=1004&seq=20170220221754740&sso=ok', 'label': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758 \ub9c8\uc9c0\ub9c9 \uae38'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc8fd\uc0b0\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc0b0\ub9c8', 'label': u'\uc8fd\uc0b0\ub9c8(\u7af9\u6563\u99ac)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc8fd\uc548\ub9c8.jpg', 'id': u'\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc548\ub9c8', 'label': u'\uc8fd\uc548\ub9c8(\u7af9\u978d\u99ac)'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc8fd\uc548\ub9c8', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'depicts', 'source': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'target': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4'}, {'attribute': None, 'relation': u'depicts', 'source': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'target': u'\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'3d-\uc8fd\uc548\ub9c8'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uc8fd\uc548\ub9c8', 'target': u'\uc8fd\uc0b0\ub9c8'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 ')
    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-\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc8fd\uc548\ub9c8.glb', 'label': u'\uc8fd\uc548\ub9c8 3D \ubaa8\ub378'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'label': u'\uace0\uc885 \uad6d\uc7a5 \uc8fd\uc548\ub9c8 \uc0ac\uc9c4'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'label': u'\uace0\uc885 \uad6d\uc7a5 \ud589\ub82c \uc0bd\ud654'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/record.png', 'id': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'label': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9(\u5fa1\u846c\u5100\u5beb\u771e\u5e16)'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885\ud669\uc81c\uc758\ub9c8\uc9c0\ub9c9\uae38.jpg', 'id': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38', 'infoUrl': u'https://museum.seoul.go.kr/www/board/NR_boardView.do?bbsCd=1004&seq=20170220221754740&sso=ok', 'label': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758 \ub9c8\uc9c0\ub9c9 \uae38'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc8fd\uc0b0\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc0b0\ub9c8', 'label': u'\uc8fd\uc0b0\ub9c8(\u7af9\u6563\u99ac)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc8fd\uc548\ub9c8.jpg', 'id': u'\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc548\ub9c8', 'label': u'\uc8fd\uc548\ub9c8(\u7af9\u978d\u99ac)'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 '
 /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-\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc8fd\uc548\ub9c8.glb', 'label': u'\uc8fd\uc548\ub9c8 3D \ubaa8\ub378'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\uc8fd\uc548\ub9c8_\uc0ac\uc9c4', 'label': u'\uace0\uc885 \uad6d\uc7a5 \uc8fd\uc548\ub9c8 \uc0ac\uc9c4'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654.jpg', 'id': u'\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885_\uad6d\uc7a5_\ud589\ub82c_\uc0bd\ud654', 'label': u'\uace0\uc885 \uad6d\uc7a5 \ud589\ub82c \uc0bd\ud654'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/record.png', 'id': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9', 'label': u'\uc5b4\uc7a5\uc758\uc0ac\uc9c4\ucca9(\u5fa1\u846c\u5100\u5beb\u771e\u5e16)'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uace0\uc885\ud669\uc81c\uc758\ub9c8\uc9c0\ub9c9\uae38.jpg', 'id': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758_\ub9c8\uc9c0\ub9c9_\uae38', 'infoUrl': u'https://museum.seoul.go.kr/www/board/NR_boardView.do?bbsCd=1004&seq=20170220221754740&sso=ok', 'label': u'\uc804\uc2dc-\uace0\uc885\ud669\uc81c\uc758 \ub9c8\uc9c0\ub9c9 \uae38'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc8fd\uc0b0\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc0b0\ub9c8', 'label': u'\uc8fd\uc0b0\ub9c8(\u7af9\u6563\u99ac)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc8fd\uc548\ub9c8.jpg', 'id': u'\uc8fd\uc548\ub9c8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc8fd\uc548\ub9c8', 'label': u'\uc8fd\uc548\ub9c8(\u7af9\u978d\u99ac)'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xec\xa3\xbd\xec\x95\x88\xeb\xa7\x88 ')
    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"