<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:29:57 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 = '\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ', 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-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uba85\uc131\ud669\ud6c4_\uae08\ucc45.glb', 'label': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uae08\ucc45', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0079771', 'label': u'\uae08\ucc45(\uf90a\u518a)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655\ube44.png', 'id': u'\uba85\uc131\ud669\ud6c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4', 'label': u'\uba85\uc131\ud669\ud6c4(\u660e\u6210\u7687\u540e 1851~1895)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'label': u'\uba85\uc131\ud669\ud6c4 \uae08\ucc45(\u660e\u6210\u7687\u540e\uf90a\u518a)'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'3d-\uba85\uc131\ud669\ud6c4_\uae08\ucc45'}, {'attribute': None, 'relation': u'type', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uae08\ucc45'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uba85\uc131\ud669\ud6c4'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ' |
/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-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uba85\uc131\ud669\ud6c4_\uae08\ucc45.glb', 'label': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uae08\ucc45', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0079771', 'label': u'\uae08\ucc45(\uf90a\u518a)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655\ube44.png', 'id': u'\uba85\uc131\ud669\ud6c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4', 'label': u'\uba85\uc131\ud669\ud6c4(\u660e\u6210\u7687\u540e 1851~1895)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'label': u'\uba85\uc131\ud669\ud6c4 \uae08\ucc45(\u660e\u6210\u7687\u540e\uf90a\u518a)'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'3d-\uba85\uc131\ud669\ud6c4_\uae08\ucc45'}, {'attribute': None, 'relation': u'type', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uae08\ucc45'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'target': u'\uba85\uc131\ud669\ud6c4'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ') |
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-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uba85\uc131\ud669\ud6c4_\uae08\ucc45.glb', 'label': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uae08\ucc45', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0079771', 'label': u'\uae08\ucc45(\uf90a\u518a)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655\ube44.png', 'id': u'\uba85\uc131\ud669\ud6c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4', 'label': u'\uba85\uc131\ud669\ud6c4(\u660e\u6210\u7687\u540e 1851~1895)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'label': u'\uba85\uc131\ud669\ud6c4 \uae08\ucc45(\u660e\u6210\u7687\u540e\uf90a\u518a)'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ' |
/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-\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uba85\uc131\ud669\ud6c4_\uae08\ucc45.glb', 'label': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uae08\ucc45', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0079771', 'label': u'\uae08\ucc45(\uf90a\u518a)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655\ube44.png', 'id': u'\uba85\uc131\ud669\ud6c4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4', 'label': u'\uba85\uc131\ud669\ud6c4(\u660e\u6210\u7687\u540e 1851~1895)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\uba85\uc131\ud669\ud6c4_\uae08\ucc45.jpg', 'id': u'\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uba85\uc131\ud669\ud6c4_\uae08\ucc45', 'label': u'\uba85\uc131\ud669\ud6c4 \uae08\ucc45(\u660e\u6210\u7687\u540e\uf90a\u518a)'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\xaa\x85\xec\x84\xb1\xed\x99\xa9\xed\x9b\x84_\xea\xb8\x88\xec\xb1\x85 ') |
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"