| <type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Sun Dec 14 17:09:31 2025 |
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 = 'hanyang2021', project = 'hanyang', account = 'guest', pwd = 'guest', node = '\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ', NetworkLimit = 100 |
| /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2021', project='hanyang', account='guest', password='guest', node='\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ', 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'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\ub0b4\ubd80', 'label': u'\uad81\ub0b4\ubd80(\u5bae\u5167\u5e9c)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uaddc\uc7a5\uac01', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uaddc\uc7a5\uac01', 'label': u'\uaddc\uc7a5\uac01(\u594e\u7ae0\u95a3)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'infoUrl': u'http://encykorea.aks.ac.kr/Contents/Item/E0014768', 'label': u'\uaddc\uc7a5\uac01\ub300\uc81c(\u594e\u7ae0\u95a3\u5f85\u5236)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac(\u594e\u7ae0\u95a3\u76f4\u5b78\u58eb)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\ud559\uc0ac(\u594e\u7ae0\u95a3\u5b78\u58eb)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uae30\ub85d\ud654/PIC5683.png', 'id': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'label': u'\ubcf8\uc544\uc804\ub3c4 \u300a\u672c\u8859\u5168\u5716\u300b \ud638\uc870'}], edgelist = [{'attribute': None, 'relation': u'hasPart', 'source': u'\uad81\ub0b4\ubd80', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uaddc\uc7a5\uac01 ', 'target': u'\uad81\ub0b4\ubd80'}, {'attribute': None, 'relation': u'currentLocation', 'source': u'\uaddc\uc7a5\uac01', 'target': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uaddc\uc7a5\uac01', 'target': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'currentLocation', 'source': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'target': u'\uaddc\uc7a5\uac01'}], database = 'hanyang2021', project = 'hanyang', account = 'guest', password = 'guest', node = '\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ' |
| /home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\ub0b4\ubd80', 'label': u'\uad81\ub0b4\ubd80(\u5bae\u5167\u5e9c)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uaddc\uc7a5\uac01', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uaddc\uc7a5\uac01', 'label': u'\uaddc\uc7a5\uac01(\u594e\u7ae0\u95a3)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'infoUrl': u'http://encykorea.aks.ac.kr/Contents/Item/E0014768', 'label': u'\uaddc\uc7a5\uac01\ub300\uc81c(\u594e\u7ae0\u95a3\u5f85\u5236)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac(\u594e\u7ae0\u95a3\u76f4\u5b78\u58eb)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\ud559\uc0ac(\u594e\u7ae0\u95a3\u5b78\u58eb)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uae30\ub85d\ud654/PIC5683.png', 'id': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'label': u'\ubcf8\uc544\uc804\ub3c4 \u300a\u672c\u8859\u5168\u5716\u300b \ud638\uc870'}], edgelist=[{'attribute': None, 'relation': u'hasPart', 'source': u'\uad81\ub0b4\ubd80', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uaddc\uc7a5\uac01 ', 'target': u'\uad81\ub0b4\ubd80'}, {'attribute': None, 'relation': u'currentLocation', 'source': u'\uaddc\uc7a5\uac01', 'target': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\uaddc\uc7a5\uac01', 'target': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isOfficialPostOf', 'source': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'currentLocation', 'source': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'target': u'\uaddc\uc7a5\uac01'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'target': u'\uaddc\uc7a5\uac01'}], database='hanyang2021', project='hanyang', account='guest', password='guest', node='\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ') |
| 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'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\ub0b4\ubd80', 'label': u'\uad81\ub0b4\ubd80(\u5bae\u5167\u5e9c)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uaddc\uc7a5\uac01', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uaddc\uc7a5\uac01', 'label': u'\uaddc\uc7a5\uac01(\u594e\u7ae0\u95a3)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'infoUrl': u'http://encykorea.aks.ac.kr/Contents/Item/E0014768', 'label': u'\uaddc\uc7a5\uac01\ub300\uc81c(\u594e\u7ae0\u95a3\u5f85\u5236)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac(\u594e\u7ae0\u95a3\u76f4\u5b78\u58eb)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\ud559\uc0ac(\u594e\u7ae0\u95a3\u5b78\u58eb)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uae30\ub85d\ud654/PIC5683.png', 'id': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'label': u'\ubcf8\uc544\uc804\ub3c4 \u300a\u672c\u8859\u5168\u5716\u300b \ud638\uc870'}], database = 'hanyang2021', project = 'hanyang', account = 'guest', password = 'guest', node = '\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ' |
| /home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uad81\ub0b4\ubd80', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\ub0b4\ubd80', 'label': u'\uad81\ub0b4\ubd80(\u5bae\u5167\u5e9c)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/Encyves/Graph/icons/centralOffice.png', 'id': u'\uaddc\uc7a5\uac01', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uaddc\uc7a5\uac01', 'label': u'\uaddc\uc7a5\uac01(\u594e\u7ae0\u95a3)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ub300\uc81c', 'infoUrl': u'http://encykorea.aks.ac.kr/Contents/Item/E0014768', 'label': u'\uaddc\uc7a5\uac01\ub300\uc81c(\u594e\u7ae0\u95a3\u5f85\u5236)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\uc9c1\ud559\uc0ac(\u594e\u7ae0\u95a3\u76f4\u5b78\u58eb)'}, {'class': u'Concept', 'iconUrl': None, 'id': u'\uaddc\uc7a5\uac01\ud559\uc0ac', 'infoUrl': None, 'label': u'\uaddc\uc7a5\uac01\ud559\uc0ac(\u594e\u7ae0\u95a3\u5b78\u58eb)'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uae30\ub85d\ud654/PIC5683.png', 'id': u'\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubcf8\uc544\uc804\ub3c4-\ud638\uc870', 'label': u'\ubcf8\uc544\uc804\ub3c4 \u300a\u672c\u8859\u5168\u5716\u300b \ud638\uc870'}], database='hanyang2021', project='hanyang', account='guest', password='guest', subject='\xea\xb7\x9c\xec\x9e\xa5\xea\xb0\x81 ') |
| 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"