<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:10:26 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\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\xec\x9e\xa5 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\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-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.glb', 'label': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\ud6c8\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.jpg', 'id': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'label': u'\ub300\ud6c8\uc704 \uc11c\uc131\ub300\ud6c8\uc7a5(\u5927\u52f3\u4f4d\u745e\u661f\u5927\u52f3\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'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01C', 'label': u'\ud6c8\uc7a5\uc758 \ud615\ud0dc\uc640 \uc774\ub984\uc5d0 \ub2f4\uae34 \uc758\ubbf8'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'3d-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'type', 'source': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01B', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isPreviousInSequenceTo', 'source': u'E2021-R0-01B', 'target': u'E2021-R0-01C'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01C', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\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-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.glb', 'label': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\ud6c8\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.jpg', 'id': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'label': u'\ub300\ud6c8\uc704 \uc11c\uc131\ub300\ud6c8\uc7a5(\u5927\u52f3\u4f4d\u745e\u661f\u5927\u52f3\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'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01C', 'label': u'\ud6c8\uc7a5\uc758 \ud615\ud0dc\uc640 \uc774\ub984\uc5d0 \ub2f4\uae34 \uc758\ubbf8'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'3d-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'type', 'source': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'target': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01B', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}, {'attribute': None, 'relation': u'isPreviousInSequenceTo', 'source': u'E2021-R0-01B', 'target': u'E2021-R0-01C'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-01C', 'target': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\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-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.glb', 'label': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\ud6c8\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.jpg', 'id': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'label': u'\ub300\ud6c8\uc704 \uc11c\uc131\ub300\ud6c8\uc7a5(\u5927\u52f3\u4f4d\u745e\u661f\u5927\u52f3\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'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01C', 'label': u'\ud6c8\uc7a5\uc758 \ud615\ud0dc\uc640 \uc774\ub984\uc5d0 \ub2f4\uae34 \uc758\ubbf8'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\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-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.glb', 'label': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud6c8\uc7a5', 'infoUrl': u'https://ko.wikipedia.org/wiki/\ub300\ud55c\uc81c\uad6d\uc758_\ud6c8\uc7a5', 'label': u'\ub300\ud55c\uc81c\uad6d \ud6c8\uc7a5'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5.jpg', 'id': u'\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud6c8\uc704_\uc11c\uc131\ub300\ud6c8\uc7a5', 'label': u'\ub300\ud6c8\uc704 \uc11c\uc131\ub300\ud6c8\uc7a5(\u5927\u52f3\u4f4d\u745e\u661f\u5927\u52f3\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'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-01C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-01C', 'label': u'\ud6c8\uc7a5\uc758 \ud615\ud0dc\uc640 \uc774\ub984\uc5d0 \ub2f4\uae34 \uc758\ubbf8'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\x8c\x80\xed\x9b\x88\xec\x9c\x84_\xec\x84\x9c\xec\x84\xb1\xeb\x8c\x80\xed\x9b\x88\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"