<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Tue Oct 1 01:54:00 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\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ', 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-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.glb', 'label': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/Ontology:EKC_2022:Relation', 'label': u'\uae40\uad6c \uc0ac\ud615 \uc911\uc9c0 1896'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/palace1.png', 'id': u'\ub355\uc218\uad81', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81', 'label': u'\ub355\uc218\uad81(\u5fb7\u58fd\u5bae)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'label': u'\ub355\uc218\uad81 \uad81\ub0b4\ubd80'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.jpg', 'id': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'label': u'\uc5d0\ub9ad\uc190 \ubcbd\uac78\uc774\ud615 \uc790\uc11d\uc2dd \uc804\ud654\uae30'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2022/\uc804\ud654.jpg', 'id': u'\uc804\ud654', 'infoUrl': u'https://ko.wikipedia.org/wiki/\uc804\ud654', 'label': u'\uc804\ud654'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10B', 'label': u'\ub355\ub960\ud48d(\u5fb7\u5f8b\u98a8), \uc6b0\ub9ac\ub098\ub77c \ucd5c\ucd08\uc758 \uc804\ud654\uae30'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'3d-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0'}, {'attribute': None, 'relation': u'formerLocation', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\ub355\uc218\uad81'}, {'attribute': None, 'relation': u'type', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uc804\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10B', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10B', 'target': u'\uc804\ud654'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ' |
/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-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.glb', 'label': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/Ontology:EKC_2022:Relation', 'label': u'\uae40\uad6c \uc0ac\ud615 \uc911\uc9c0 1896'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/palace1.png', 'id': u'\ub355\uc218\uad81', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81', 'label': u'\ub355\uc218\uad81(\u5fb7\u58fd\u5bae)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'label': u'\ub355\uc218\uad81 \uad81\ub0b4\ubd80'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.jpg', 'id': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'label': u'\uc5d0\ub9ad\uc190 \ubcbd\uac78\uc774\ud615 \uc790\uc11d\uc2dd \uc804\ud654\uae30'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2022/\uc804\ud654.jpg', 'id': u'\uc804\ud654', 'infoUrl': u'https://ko.wikipedia.org/wiki/\uc804\ud654', 'label': u'\uc804\ud654'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10B', 'label': u'\ub355\ub960\ud48d(\u5fb7\u5f8b\u98a8), \uc6b0\ub9ac\ub098\ub77c \ucd5c\ucd08\uc758 \uc804\ud654\uae30'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'3d-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0'}, {'attribute': None, 'relation': u'formerLocation', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\ub355\uc218\uad81'}, {'attribute': None, 'relation': u'type', 'source': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'target': u'\uc804\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10B', 'target': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10B', 'target': u'\uc804\ud654'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ') |
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-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.glb', 'label': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/Ontology:EKC_2022:Relation', 'label': u'\uae40\uad6c \uc0ac\ud615 \uc911\uc9c0 1896'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/palace1.png', 'id': u'\ub355\uc218\uad81', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81', 'label': u'\ub355\uc218\uad81(\u5fb7\u58fd\u5bae)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'label': u'\ub355\uc218\uad81 \uad81\ub0b4\ubd80'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.jpg', 'id': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'label': u'\uc5d0\ub9ad\uc190 \ubcbd\uac78\uc774\ud615 \uc790\uc11d\uc2dd \uc804\ud654\uae30'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2022/\uc804\ud654.jpg', 'id': u'\uc804\ud654', 'infoUrl': u'https://ko.wikipedia.org/wiki/\uc804\ud654', 'label': u'\uc804\ud654'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10B', 'label': u'\ub355\ub960\ud48d(\u5fb7\u5f8b\u98a8), \uc6b0\ub9ac\ub098\ub77c \ucd5c\ucd08\uc758 \uc804\ud654\uae30'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ' |
/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-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.glb', 'label': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uae40\uad6c\uc0ac\ud615\uc911\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/Ontology:EKC_2022:Relation', 'label': u'\uae40\uad6c \uc0ac\ud615 \uc911\uc9c0 1896'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/palace1.png', 'id': u'\ub355\uc218\uad81', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81', 'label': u'\ub355\uc218\uad81(\u5fb7\u58fd\u5bae)'}, {'class': u'Architecture', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub355\uc218\uad81_\uad81\ub0b4\ubd80', 'label': u'\ub355\uc218\uad81 \uad81\ub0b4\ubd80'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30.jpg', 'id': u'\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc5d0\ub9ad\uc190_\ubcbd\uac78\uc774\ud615_\uc790\uc11d\uc2dd_\uc804\ud654\uae30', 'label': u'\uc5d0\ub9ad\uc190 \ubcbd\uac78\uc774\ud615 \uc790\uc11d\uc2dd \uc804\ud654\uae30'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2022/\uc804\ud654.jpg', 'id': u'\uc804\ud654', 'infoUrl': u'https://ko.wikipedia.org/wiki/\uc804\ud654', 'label': u'\uc804\ud654'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10B', 'label': u'\ub355\ub960\ud48d(\u5fb7\u5f8b\u98a8), \uc6b0\ub9ac\ub098\ub77c \ucd5c\ucd08\uc758 \uc804\ud654\uae30'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xec\x97\x90\xeb\xa6\xad\xec\x86\x90_\xeb\xb2\xbd\xea\xb1\xb8\xec\x9d\xb4\xed\x98\x95_\xec\x9e\x90\xec\x84\x9d\xec\x8b\x9d_\xec\xa0\x84\xed\x99\x94\xea\xb8\xb0 ') |
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"