<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Tue Oct 1 02:03:01 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\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\xea\xb8\xb0 ', 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\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\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-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.glb', 'label': u'\ubc31\uc0c9_\ub450\ub8e8\ub9c8\uae30 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30(\u767d\u8272\u5468\u8863)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc0c1\ubcf5-\u55aa\u670d', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\uc0c1\ubcf5(\u55aa\u670d)', 'label': u'\uc0c1\ubcf5(\u55aa\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'https://museum.dankook.ac.kr/web/museum/-15?p_p_...0299&_Relic_WAR_museumportlet_action=view_message', 'label': u'\uc18c\uc0c9 \ub450\ub8e8\ub9c8\uae30'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'3d-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uc0c1\ubcf5-\u55aa\u670d', 'target': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xb0\xb1\xec\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\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-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.glb', 'label': u'\ubc31\uc0c9_\ub450\ub8e8\ub9c8\uae30 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30(\u767d\u8272\u5468\u8863)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc0c1\ubcf5-\u55aa\u670d', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\uc0c1\ubcf5(\u55aa\u670d)', 'label': u'\uc0c1\ubcf5(\u55aa\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'https://museum.dankook.ac.kr/web/museum/-15?p_p_...0299&_Relic_WAR_museumportlet_action=view_message', 'label': u'\uc18c\uc0c9 \ub450\ub8e8\ub9c8\uae30'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'3d-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'bibliography', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'target': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uc0c1\ubcf5-\u55aa\u670d', 'target': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xb0\xb1\xec\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\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-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.glb', 'label': u'\ubc31\uc0c9_\ub450\ub8e8\ub9c8\uae30 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30(\u767d\u8272\u5468\u8863)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc0c1\ubcf5-\u55aa\u670d', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\uc0c1\ubcf5(\u55aa\u670d)', 'label': u'\uc0c1\ubcf5(\u55aa\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'https://museum.dankook.ac.kr/web/museum/-15?p_p_...0299&_Relic_WAR_museumportlet_action=view_message', 'label': u'\uc18c\uc0c9 \ub450\ub8e8\ub9c8\uae30'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xb0\xb1\xec\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\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-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelVi...py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.glb', 'label': u'\ubc31\uc0c9_\ub450\ub8e8\ub9c8\uae30 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30(\u767d\u8272\u5468\u8863)'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc0c1\ubcf5-\u55aa\u670d', 'infoUrl': u'http://dh.aks.ac.kr/sillokwiki/index.php/\uc0c1\ubcf5(\u55aa\u670d)', 'label': u'\uc0c1\ubcf5(\u55aa\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30.png', 'id': u'DKUM-\uc18c\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': u'https://museum.dankook.ac.kr/web/museum/-15?p_p_...0299&_Relic_WAR_museumportlet_action=view_message', 'label': u'\uc18c\uc0c9 \ub450\ub8e8\ub9c8\uae30'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-\ubc31\uc0c9\ub450\ub8e8\ub9c8\uae30', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\xb0\xb1\xec\x83\x89\xeb\x91\x90\xeb\xa3\xa8\xeb\xa7\x88\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"