<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Sat Nov 2 07:41:06 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\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ', 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-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc.glb', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/2022/3D\uc74c\uc2dd/\uc74c\uc2dd-045_\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc.png', 'id': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc(\u4e09\u8272\u6885\u82b1\u8edf\u7d72\u679c)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-010.png', 'id': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': u'150\uac1c', 'relation': u'includes', 'source': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': u'1\ucc992\ucd0c', 'relation': u'hasPart', 'source': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'3d-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ' |
/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-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc.glb', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/2022/3D\uc74c\uc2dd/\uc74c\uc2dd-045_\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc.png', 'id': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc(\u4e09\u8272\u6885\u82b1\u8edf\u7d72\u679c)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-010.png', 'id': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': u'150\uac1c', 'relation': u'includes', 'source': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': u'1\ucc992\ucd0c', 'relation': u'hasPart', 'source': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'3d-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'target': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ') |
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-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc.glb', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/2022/3D\uc74c\uc2dd/\uc74c\uc2dd-045_\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc.png', 'id': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc(\u4e09\u8272\u6885\u82b1\u8edf\u7d72\u679c)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-010.png', 'id': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ' |
/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-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc.glb', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/2022/3D\uc74c\uc2dd/\uc74c\uc2dd-045_\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc.png', 'id': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\uc0bc\uc0c9\ub9e4\ud654\uc5f0\uc0ac\uacfc(\u4e09\u8272\u6885\u82b1\u8edf\u7d72\u679c)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-010.png', 'id': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'label': u'\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ud64d\ub9e4\ud654\uc5f0\uc0ac\uacfc', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xed\x99\x8d\xeb\xa7\xa4\xed\x99\x94\xec\x97\xb0\xec\x82\xac\xea\xb3\xbc ') |
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"