<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Sat Nov 2 07:29:07 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\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\xec\x9e\xa5 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\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-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.glb', 'label': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ud0dc\uadf9\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ud0dc\uadf9\uc7a5', 'label': u'\ud0dc\uadf9\uc7a5(\u592a\u6975\u7ae0)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.jpg', 'id': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'label': u'\ud6c8\uacf5\uc77c\ub4f1 \ud0dc\uadf9\ub300\uc218\uc7a5(\u52f3\u529f\u4e00\u7b49\u592a\u6975\u5927\u7d8f\u7ae0)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01B', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5\uc758 \uc885\ub958'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud0dc\uadf9\uc7a5', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'target': u'3d-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01B', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\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-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.glb', 'label': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ud0dc\uadf9\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ud0dc\uadf9\uc7a5', 'label': u'\ud0dc\uadf9\uc7a5(\u592a\u6975\u7ae0)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.jpg', 'id': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'label': u'\ud6c8\uacf5\uc77c\ub4f1 \ud0dc\uadf9\ub300\uc218\uc7a5(\u52f3\u529f\u4e00\u7b49\u592a\u6975\u5927\u7d8f\u7ae0)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01B', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5\uc758 \uc885\ub958'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud0dc\uadf9\uc7a5', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'target': u'3d-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01B', 'target': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xed\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\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-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.glb', 'label': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ud0dc\uadf9\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ud0dc\uadf9\uc7a5', 'label': u'\ud0dc\uadf9\uc7a5(\u592a\u6975\u7ae0)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.jpg', 'id': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'label': u'\ud6c8\uacf5\uc77c\ub4f1 \ud0dc\uadf9\ub300\uc218\uc7a5(\u52f3\u529f\u4e00\u7b49\u592a\u6975\u5927\u7d8f\u7ae0)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01B', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5\uc758 \uc885\ub958'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xed\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\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-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...rl=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.glb', 'label': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ud0dc\uadf9\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ud0dc\uadf9\uc7a5', 'label': u'\ud0dc\uadf9\uc7a5(\u592a\u6975\u7ae0)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5.jpg', 'id': u'\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud6c8\uacf5\uc77c\ub4f1_\ud0dc\uadf9\ub300\uc218\uc7a5', 'label': u'\ud6c8\uacf5\uc77c\ub4f1 \ud0dc\uadf9\ub300\uc218\uc7a5(\u52f3\u529f\u4e00\u7b49\u592a\u6975\u5927\u7d8f\u7ae0)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01B', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01B', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5\uc758 \uc885\ub958'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xed\x9b\x88\xea\xb3\xb5\xec\x9d\xbc\xeb\x93\xb1_\xed\x83\x9c\xea\xb7\xb9\xeb\x8c\x80\xec\x88\x98\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"