<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:28:11 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\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ', 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-\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ucca0\uc81c\uc81c\uacfc\uae30.glb', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c', 'infoUrl': u'https://www.youtube.com/watch?v=h18LhobEoAE', 'label': u'\uc11c\uc591\uc2dd \uc5f0\ud68c'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ucca0\uc81c\uc81c\uacfc\uae30.jpg', 'id': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ucca0\uc81c\uc81c\uacfc\uae30', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'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-\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'3d-\ucca0\uc81c\uc81c\uacfc\uae30'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\ucca0\uc81c\uc81c\uacfc\uae30'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xec\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ' |
/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-\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ucca0\uc81c\uc81c\uacfc\uae30.glb', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c', 'infoUrl': u'https://www.youtube.com/watch?v=h18LhobEoAE', 'label': u'\uc11c\uc591\uc2dd \uc5f0\ud68c'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ucca0\uc81c\uc81c\uacfc\uae30.jpg', 'id': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ucca0\uc81c\uc81c\uacfc\uae30', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'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-\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'3d-\ucca0\uc81c\uc81c\uacfc\uae30'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'target': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'E2021-R1-10D', 'target': u'\ucca0\uc81c\uc81c\uacfc\uae30'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xec\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ') |
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-\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ucca0\uc81c\uc81c\uacfc\uae30.glb', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c', 'infoUrl': u'https://www.youtube.com/watch?v=h18LhobEoAE', 'label': u'\uc11c\uc591\uc2dd \uc5f0\ud68c'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ucca0\uc81c\uc81c\uacfc\uae30.jpg', 'id': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ucca0\uc81c\uc81c\uacfc\uae30', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'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 = '\xec\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ' |
/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-\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubb3c\ud488/3D-\ucca0\uc81c\uc81c\uacfc\uae30.glb', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30 3D \ubaa8\ub378'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uc11c\uc591\uc2dd_\uc5f0\ud68c', 'infoUrl': u'https://www.youtube.com/watch?v=h18LhobEoAE', 'label': u'\uc11c\uc591\uc2dd \uc5f0\ud68c'}, {'class': u'Object', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ucca0\uc81c\uc81c\uacfc\uae30.jpg', 'id': u'\ucca0\uc81c\uc81c\uacfc\uae30', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ucca0\uc81c\uc81c\uacfc\uae30', 'label': u'\ucca0\uc81c\uc81c\uacfc\uae30'}, {'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='\xec\xb2\xa0\xec\xa0\x9c\xec\xa0\x9c\xea\xb3\xbc\xea\xb8\xb0 ') |
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"