<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Tue Oct 1 02:03:16 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\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ', 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-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.glb', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c 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/image/2021/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.jpg', 'id': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c(\u767d\u78c1\u6ce2\u6fe4\u6587\u6d17)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750', 'infoUrl': u'https://en.wikipedia.org/wiki/Villeroy_&_Boch', 'label': u'\ube4c\ub808\ub85c\uc774 \uc564 \ubcf4\ud750(Villeroy&Boch)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10D', 'label': u'\uc2dd\ud0c1 \uc704\uc758 \uc0c8\ub85c\uc6b4 \uadf8\ub987-\uc11c\uc591\uc2dd \uc2dd\uae30'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'3d-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ' |
/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-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.glb', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c 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/image/2021/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.jpg', 'id': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c(\u767d\u78c1\u6ce2\u6fe4\u6587\u6d17)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750', 'infoUrl': u'https://en.wikipedia.org/wiki/Villeroy_&_Boch', 'label': u'\ube4c\ub808\ub85c\uc774 \uc564 \ubcf4\ud750(Villeroy&Boch)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10D', 'label': u'\uc2dd\ud0c1 \uc704\uc758 \uc0c8\ub85c\uc6b4 \uadf8\ub987-\uc11c\uc591\uc2dd \uc2dd\uae30'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\ud55c\uc81c\uad6d_\ud669\uc2e4\uadf8\ub987', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'3d-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}, {'attribute': None, 'relation': u'isProducedIn', 'source': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'target': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ') |
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-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.glb', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c 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/image/2021/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.jpg', 'id': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c(\u767d\u78c1\u6ce2\u6fe4\u6587\u6d17)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750', 'infoUrl': u'https://en.wikipedia.org/wiki/Villeroy_&_Boch', 'label': u'\ube4c\ub808\ub85c\uc774 \uc564 \ubcf4\ud750(Villeroy&Boch)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10D', 'label': u'\uc2dd\ud0c1 \uc704\uc758 \uc0c8\ub85c\uc6b4 \uadf8\ub987-\uc11c\uc591\uc2dd \uc2dd\uae30'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ' |
/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-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.glb', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c 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/image/2021/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c.jpg', 'id': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c', 'label': u'\ubc31\uc790\ud30c\ub3c4\ubb34\ub2ac\ub300\uc57c(\u767d\u78c1\u6ce2\u6fe4\u6587\u6d17)'}, {'class': u'Actor', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/office2.png', 'id': u'\ube4c\ub808\ub85c\uc774\uc564\ubcf4\ud750', 'infoUrl': u'https://en.wikipedia.org/wiki/Villeroy_&_Boch', 'label': u'\ube4c\ub808\ub85c\uc774 \uc564 \ubcf4\ud750(Villeroy&Boch)'}, {'class': u'Story', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/episode.png', 'id': u'E2021-R1-10D', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/E2021-R1-10D', 'label': u'\uc2dd\ud0c1 \uc704\uc758 \uc0c8\ub85c\uc6b4 \uadf8\ub987-\uc11c\uc591\uc2dd \uc2dd\uae30'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\xb0\xb1\xec\x9e\x90\xed\x8c\x8c\xeb\x8f\x84\xeb\xac\xb4\xeb\x8a\xac\xeb\x8c\x80\xec\x95\xbc ') |
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"