<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:21: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 = '1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ', 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'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-020.png', 'id': u'1\ud47c\ud669\ub3d9\ud654', 'infoUrl': None, 'label': u'\ud669\ub3d9\ud654 1\ud47c'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1\ud47c\ud669\ub3d9\ud654', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-1\ud47c\ud669\ub3d9\ud654.glb', 'label': u'1\ud47c\ud669\ub3d9\ud654 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0033149', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840(\u65b0\u5f0f\u8ca8\u5e63\u689d\u4f8b) 1891'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/government_office.png', 'id': u'\uc778\ucc9c\uc804\ud658\uad6d', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0049771', 'label': u'\uc778\ucc9c\uc804\ud658\uad6d(\u4ec1\u5ddd\u5178\u571c\u5c40)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-02C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-02C', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840\uc758 \uc81c\uc815 \uc2dc\ub3c4'}], edgelist = [{'attribute': None, 'relation': u'isShownBy', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'3d-1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isInfluencedBy', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'\uc778\ucc9c\uc804\ud658\uad6d'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-1\ud47c\ud669\ub3d9\ud654', 'target': u'1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'\uc778\ucc9c\uc804\ud658\uad6d'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ' |
/home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-020.png', 'id': u'1\ud47c\ud669\ub3d9\ud654', 'infoUrl': None, 'label': u'\ud669\ub3d9\ud654 1\ud47c'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1\ud47c\ud669\ub3d9\ud654', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-1\ud47c\ud669\ub3d9\ud654.glb', 'label': u'1\ud47c\ud669\ub3d9\ud654 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0033149', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840(\u65b0\u5f0f\u8ca8\u5e63\u689d\u4f8b) 1891'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/government_office.png', 'id': u'\uc778\ucc9c\uc804\ud658\uad6d', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0049771', 'label': u'\uc778\ucc9c\uc804\ud658\uad6d(\u4ec1\u5ddd\u5178\u571c\u5c40)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-02C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-02C', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840\uc758 \uc81c\uc815 \uc2dc\ub3c4'}], edgelist=[{'attribute': None, 'relation': u'isShownBy', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'3d-1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isInfluencedBy', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'1\ud47c\ud669\ub3d9\ud654', 'target': u'\uc778\ucc9c\uc804\ud658\uad6d'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-1\ud47c\ud669\ub3d9\ud654', 'target': u'1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'1\ud47c\ud669\ub3d9\ud654'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R0-02C', 'target': u'\uc778\ucc9c\uc804\ud658\uad6d'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ') |
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'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-020.png', 'id': u'1\ud47c\ud669\ub3d9\ud654', 'infoUrl': None, 'label': u'\ud669\ub3d9\ud654 1\ud47c'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1\ud47c\ud669\ub3d9\ud654', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-1\ud47c\ud669\ub3d9\ud654.glb', 'label': u'1\ud47c\ud669\ub3d9\ud654 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0033149', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840(\u65b0\u5f0f\u8ca8\u5e63\u689d\u4f8b) 1891'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/government_office.png', 'id': u'\uc778\ucc9c\uc804\ud658\uad6d', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0049771', 'label': u'\uc778\ucc9c\uc804\ud658\uad6d(\u4ec1\u5ddd\u5178\u571c\u5c40)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-02C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-02C', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840\uc758 \uc81c\uc815 \uc2dc\ub3c4'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ' |
/home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-020.png', 'id': u'1\ud47c\ud669\ub3d9\ud654', 'infoUrl': None, 'label': u'\ud669\ub3d9\ud654 1\ud47c'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1\ud47c\ud669\ub3d9\ud654', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-1\ud47c\ud669\ub3d9\ud654.glb', 'label': u'1\ud47c\ud669\ub3d9\ud654 3D \ubaa8\ub378'}, {'class': u'Event', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/sandglass.png', 'id': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0033149', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840(\u65b0\u5f0f\u8ca8\u5e63\u689d\u4f8b) 1891'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7a5\uc18c/government_office.png', 'id': u'\uc778\ucc9c\uc804\ud658\uad6d', 'infoUrl': u'https://encykorea.aks.ac.kr/Article/E0049771', 'label': u'\uc778\ucc9c\uc804\ud658\uad6d(\u4ec1\u5ddd\u5178\u571c\u5c40)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R0-02C', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R0-02C', 'label': u'\uc2e0\uc2dd\ud654\ud3d0\uc870\ub840\uc758 \uc81c\uc815 \uc2dc\ub3c4'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='1\xed\x91\xbc\xed\x99\xa9\xeb\x8f\x99\xed\x99\x94 ') |
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"