<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:21:13 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\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ', 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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...ks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.glb', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8(\u5927\u97d3\u5e1d\u570b \u897f\u6d0b\u5f0f \u5c0f\u79ae\u670d \u4e0a\u8863)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', '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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'3d-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'ref-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ' |
/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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...ks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.glb', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8(\u5927\u97d3\u5e1d\u570b \u897f\u6d0b\u5f0f \u5c0f\u79ae\u670d \u4e0a\u8863)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', '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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'3d-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'target': u'ref-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ') |
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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...ks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.glb', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8(\u5927\u97d3\u5e1d\u570b \u897f\u6d0b\u5f0f \u5c0f\u79ae\u670d \u4e0a\u8863)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', '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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ' |
/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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...ks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.glb', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8.png', 'id': u'\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'label': u'\ub300\ud55c\uc81c\uad6d \uc11c\uc591\uc2dd \uc18c\ub840\ubcf5 \ubaa8\ub2dd\ucf54\ud2b8(\u5927\u97d3\u5e1d\u570b \u897f\u6d0b\u5f0f \u5c0f\u79ae\u670d \u4e0a\u8863)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', '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-\ub300\ud55c\uc81c\uad6d_\uc11c\uc591\uc2dd_\uc18c\ub840\ubcf5_\ubaa8\ub2dd\ucf54\ud2b8', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\x8c\x80\xed\x95\x9c\xec\xa0\x9c\xea\xb5\xad_\xec\x84\x9c\xec\x96\x91\xec\x8b\x9d_\xec\x86\x8c\xeb\xa1\x80\xeb\xb3\xb5_\xeb\xaa\xa8\xeb\x8b\x9d\xec\xbd\x94\xed\x8a\xb8 ') |
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"