<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:23:15 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 = '\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ', 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-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4.glb', 'label': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-034.png', 'id': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'label': u'\uace0\uc885 \uac00\uc0c1\uc874\ud638 \uc625\ubcf4-\uc218\uac15\ud0dc\ud669\uc81c\ubcf4(\u9ad8\u5b97 \u52a0\u4e0a\u5c0a\u865f \u7389\u5bf6-\u58fd\u5eb7\u592a\u7687\u5e1d\u5bf6)'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc625\ubcf4', 'infoUrl': None, 'label': u'\uc625\ubcf4'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655.png', 'id': u'\uc870\uc120_\uace0\uc885', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0003939', 'label': u'\uace0\uc885(\u9ad8\u5b97 1852~1919)'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'3d-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4'}, {'attribute': None, 'relation': u'type', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uc625\ubcf4'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uc870\uc120_\uace0\uc885'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ' |
/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-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4.glb', 'label': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-034.png', 'id': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'label': u'\uace0\uc885 \uac00\uc0c1\uc874\ud638 \uc625\ubcf4-\uc218\uac15\ud0dc\ud669\uc81c\ubcf4(\u9ad8\u5b97 \u52a0\u4e0a\u5c0a\u865f \u7389\u5bf6-\u58fd\u5eb7\u592a\u7687\u5e1d\u5bf6)'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc625\ubcf4', 'infoUrl': None, 'label': u'\uc625\ubcf4'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655.png', 'id': u'\uc870\uc120_\uace0\uc885', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0003939', 'label': u'\uace0\uc885(\u9ad8\u5b97 1852~1919)'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'3d-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4'}, {'attribute': None, 'relation': u'type', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uc625\ubcf4'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'target': u'\uc870\uc120_\uace0\uc885'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ') |
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-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4.glb', 'label': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-034.png', 'id': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'label': u'\uace0\uc885 \uac00\uc0c1\uc874\ud638 \uc625\ubcf4-\uc218\uac15\ud0dc\ud669\uc81c\ubcf4(\u9ad8\u5b97 \u52a0\u4e0a\u5c0a\u865f \u7389\u5bf6-\u58fd\u5eb7\u592a\u7687\u5e1d\u5bf6)'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc625\ubcf4', 'infoUrl': None, 'label': u'\uc625\ubcf4'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655.png', 'id': u'\uc870\uc120_\uace0\uc885', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0003939', 'label': u'\uace0\uc885(\u9ad8\u5b97 1852~1919)'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ' |
/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-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4.glb', 'label': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4 3D \ubaa8\ub378'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-034.png', 'id': u'\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uace0\uc885\uac00\uc0c1\uc874\ud638\uc625\ubcf4', 'label': u'\uace0\uc885 \uac00\uc0c1\uc874\ud638 \uc625\ubcf4-\uc218\uac15\ud0dc\ud669\uc81c\ubcf4(\u9ad8\u5b97 \u52a0\u4e0a\u5c0a\u865f \u7389\u5bf6-\u58fd\u5eb7\u592a\u7687\u5e1d\u5bf6)'}, {'class': u'Object', 'iconUrl': None, 'id': u'\uc625\ubcf4', 'infoUrl': None, 'label': u'\uc625\ubcf4'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc778\ubb3c/\uc655.png', 'id': u'\uc870\uc120_\uace0\uc885', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0003939', 'label': u'\uace0\uc885(\u9ad8\u5b97 1852~1919)'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xea\xb3\xa0\xec\xa2\x85\xea\xb0\x80\xec\x83\x81\xec\xa1\xb4\xed\x98\xb8\xec\x98\xa5\xeb\xb3\xb4 ') |
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"