<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:15:52 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 = '\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ', 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-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1.glb', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/listing.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'infoUrl': None, 'label': u'\ub300\ud55c\uc81c\uad6d \ud669\uc2e4 \uadf8\ub987'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-021.png', 'id': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1(\u9280\u88fd\uf9e1\u82b1\u6587\u82b1\u7501)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uacf5\uc7a5(\u6f22\u57ce\u7f8e\u8853\u54c1\u88fd\u4f5c\u5de5\u5834)', 'label': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'target': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'3d-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ' |
/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-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1.glb', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/listing.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'infoUrl': None, 'label': u'\ub300\ud55c\uc81c\uad6d \ud669\uc2e4 \uadf8\ub987'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-021.png', 'id': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1(\u9280\u88fd\uf9e1\u82b1\u6587\u82b1\u7501)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uacf5\uc7a5(\u6f22\u57ce\u7f8e\u8853\u54c1\u88fd\u4f5c\u5de5\u5834)', 'label': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'target': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'3d-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'target': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ') |
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-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1.glb', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/listing.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'infoUrl': None, 'label': u'\ub300\ud55c\uc81c\uad6d \ud669\uc2e4 \uadf8\ub987'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-021.png', 'id': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1(\u9280\u88fd\uf9e1\u82b1\u6587\u82b1\u7501)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uacf5\uc7a5(\u6f22\u57ce\u7f8e\u8853\u54c1\u88fd\u4f5c\u5de5\u5834)', 'label': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ' |
/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-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...y?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1.glb', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/listing.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'infoUrl': None, 'label': u'\ub300\ud55c\uc81c\uad6d \ud669\uc2e4 \uadf8\ub987'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\ubb3c\ud488-021.png', 'id': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1', 'label': u'\uc740\uc81c\uc774\ud654\ubb38\ud654\ubcd1(\u9280\u88fd\uf9e1\u82b1\u6587\u82b1\u7501)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uacf5\uc7a5(\u6f22\u57ce\u7f8e\u8853\u54c1\u88fd\u4f5c\u5de5\u5834)', 'label': u'\ud55c\uc131\ubbf8\uc220\ud488\uc81c\uc791\uc18c'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xec\x9d\x80\xec\xa0\x9c\xec\x9d\xb4\xed\x99\x94\xeb\xac\xb8\xed\x99\x94\xeb\xb3\x91 ') |
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"