<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Sat Nov 2 07:38:30 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 = '1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ', 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'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.png', 'id': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0(1900\u5e74\u5236\u5ea6 \u594f\u4efb\u5b98 \u5927\u79ae\u670d \u88b4)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...s.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.glb', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0 3D \ubaa8\ub378'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'isShownBy', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'bibliography', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ' |
/home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.png', 'id': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0(1900\u5e74\u5236\u5ea6 \u594f\u4efb\u5b98 \u5927\u79ae\u670d \u88b4)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...s.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.glb', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0 3D \ubaa8\ub378'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'isShownBy', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'bibliography', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'target': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ') |
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'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.png', 'id': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0(1900\u5e74\u5236\u5ea6 \u594f\u4efb\u5b98 \u5927\u79ae\u670d \u88b4)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...s.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.glb', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0 3D \ubaa8\ub378'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ' |
/home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.png', 'id': u'1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0(1900\u5e74\u5236\u5ea6 \u594f\u4efb\u5b98 \u5927\u79ae\u670d \u88b4)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...s.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0.glb', 'label': u'1900\ub144\uc81c\ub3c4 \uc8fc\uc784\uad00 \ub300\ub840\ubcf5 \ubc14\uc9c0 3D \ubaa8\ub378'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-1900\ub144\uc81c\ub3c4_\uc8fc\uc784\uad00_\ub300\ub840\ubcf5_\ubc14\uc9c0', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='1900\xeb\x85\x84\xec\xa0\x9c\xeb\x8f\x84_\xec\xa3\xbc\xec\x9e\x84\xea\xb4\x80_\xeb\x8c\x80\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xb0\x94\xec\xa7\x80 ') |
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"