<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Tue May 28 16:48:35 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 = '12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 ', NetworkLimit = 100
 /home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 ', 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/12\ub4f1\uc801\uc758.png', 'id': u'12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/12\ub4f1\uc801\uc758', 'label': u'12\ub4f1\uc801\uc758(\u5341\u4e8c\u7b49\u7fdf\u8863)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-12\ub4f1\uc801\uc758.glb', 'label': u'12\ub4f1\uc801\uc758 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc801\uc758-\ud669\ud6c4', 'infoUrl': None, 'label': u'\uc801\uc758(\u7fdf\u8863)-\ud669\ud6c4'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/~tutor/Images/TC/RC/xs/RC180_xs.png', 'id': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'label': u'\ud669\ud6c4\uc758 \ub300\ub840\ubcf5(\u5927\u79ae\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0054-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100540000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c54\ud638: \ud669\ud6c4 \uc801\uc758'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0067-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100670000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c67\ud638: \uc801\uc758\ubcf8 \ubc0f \ud3d0\uc2ac\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub35518424.png', 'id': u'NPM-\ucc3d\ub35518424', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=638LJE', 'label': u'12\ub4f1 \uc801\uc758\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub3559898.png', 'id': u'NPM-\ucc3d\ub3559898', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=637LJE', 'label': u'\uc801\uc758 \ucc44\uc0c9\ubcf8'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist = [{'attribute': None, 'relation': u'isShownBy', 'source': u'12\ub4f1\uc801\uc758', 'target': u'3d-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'sameAs', 'source': u'12\ub4f1\uc801\uc758', 'target': u'\uc801\uc758-\ud669\ud6c4'}, {'attribute': None, 'relation': u'bibliography', 'source': u'12\ub4f1\uc801\uc758', 'target': u'bib-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'G00-0054-0000'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'G00-0067-0000'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'NPM-\ucc3d\ub35518424'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'NPM-\ucc3d\ub3559898'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'12\ub4f1\uc801\uc758', 'target': u'ref-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-12\ub4f1\uc801\uc758', 'target': u'12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'target': u'12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'target': u'\uc801\uc758-\ud669\ud6c4'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 '
 /home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/12\ub4f1\uc801\uc758.png', 'id': u'12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/12\ub4f1\uc801\uc758', 'label': u'12\ub4f1\uc801\uc758(\u5341\u4e8c\u7b49\u7fdf\u8863)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-12\ub4f1\uc801\uc758.glb', 'label': u'12\ub4f1\uc801\uc758 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc801\uc758-\ud669\ud6c4', 'infoUrl': None, 'label': u'\uc801\uc758(\u7fdf\u8863)-\ud669\ud6c4'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/~tutor/Images/TC/RC/xs/RC180_xs.png', 'id': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'label': u'\ud669\ud6c4\uc758 \ub300\ub840\ubcf5(\u5927\u79ae\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0054-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100540000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c54\ud638: \ud669\ud6c4 \uc801\uc758'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0067-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100670000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c67\ud638: \uc801\uc758\ubcf8 \ubc0f \ud3d0\uc2ac\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub35518424.png', 'id': u'NPM-\ucc3d\ub35518424', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=638LJE', 'label': u'12\ub4f1 \uc801\uc758\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub3559898.png', 'id': u'NPM-\ucc3d\ub3559898', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=637LJE', 'label': u'\uc801\uc758 \ucc44\uc0c9\ubcf8'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], edgelist=[{'attribute': None, 'relation': u'isShownBy', 'source': u'12\ub4f1\uc801\uc758', 'target': u'3d-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'sameAs', 'source': u'12\ub4f1\uc801\uc758', 'target': u'\uc801\uc758-\ud669\ud6c4'}, {'attribute': None, 'relation': u'bibliography', 'source': u'12\ub4f1\uc801\uc758', 'target': u'bib-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'G00-0054-0000'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'G00-0067-0000'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'NPM-\ucc3d\ub35518424'}, {'attribute': None, 'relation': u'isRelatedTo', 'source': u'12\ub4f1\uc801\uc758', 'target': u'NPM-\ucc3d\ub3559898'}, {'attribute': None, 'relation': u'onlineReference', 'source': u'12\ub4f1\uc801\uc758', 'target': u'ref-12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-12\ub4f1\uc801\uc758', 'target': u'12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'target': u'12\ub4f1\uc801\uc758'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'target': u'\uc801\uc758-\ud669\ud6c4'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 ')
    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/12\ub4f1\uc801\uc758.png', 'id': u'12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/12\ub4f1\uc801\uc758', 'label': u'12\ub4f1\uc801\uc758(\u5341\u4e8c\u7b49\u7fdf\u8863)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-12\ub4f1\uc801\uc758.glb', 'label': u'12\ub4f1\uc801\uc758 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc801\uc758-\ud669\ud6c4', 'infoUrl': None, 'label': u'\uc801\uc758(\u7fdf\u8863)-\ud669\ud6c4'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/~tutor/Images/TC/RC/xs/RC180_xs.png', 'id': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'label': u'\ud669\ud6c4\uc758 \ub300\ub840\ubcf5(\u5927\u79ae\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0054-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100540000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c54\ud638: \ud669\ud6c4 \uc801\uc758'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0067-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100670000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c67\ud638: \uc801\uc758\ubcf8 \ubc0f \ud3d0\uc2ac\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub35518424.png', 'id': u'NPM-\ucc3d\ub35518424', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=638LJE', 'label': u'12\ub4f1 \uc801\uc758\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub3559898.png', 'id': u'NPM-\ucc3d\ub3559898', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=637LJE', 'label': u'\uc801\uc758 \ucc44\uc0c9\ubcf8'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 '
 /home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/12\ub4f1\uc801\uc758.png', 'id': u'12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/12\ub4f1\uc801\uc758', 'label': u'12\ub4f1\uc801\uc758(\u5341\u4e8c\u7b49\u7fdf\u8863)'}, {'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-12\ub4f1\uc801\uc758', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\ubcf5\uc2dd/3D-12\ub4f1\uc801\uc758.glb', 'label': u'12\ub4f1\uc801\uc758 3D \ubaa8\ub378'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/clothing2.png', 'id': u'\uc801\uc758-\ud669\ud6c4', 'infoUrl': None, 'label': u'\uc801\uc758(\u7fdf\u8863)-\ud669\ud6c4'}, {'class': u'Clothing', 'iconUrl': u'http://dh.aks.ac.kr/~tutor/Images/TC/RC/xs/RC180_xs.png', 'id': u'\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ud669\ud6c4\uc758_\ub300\ub840\ubcf5', 'label': u'\ud669\ud6c4\uc758 \ub300\ub840\ubcf5(\u5927\u79ae\u670d)'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/bibIndex.png', 'id': u'bib-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'\ucc38\uace0\ubb38\ud5cc'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0054-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100540000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c54\ud638: \ud669\ud6c4 \uc801\uc758'}, {'class': u'Heritage', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/chaLogo.png', 'id': u'G00-0067-0000', 'infoUrl': u'https://www.heritage.go.kr/heri/cul/culSelectDetail.do?ccbaCpno=1481100670000', 'label': u'\uad6d\uac00\ubbfc\uc18d\ubb38\ud654\uc7ac \uc81c67\ud638: \uc801\uc758\ubcf8 \ubc0f \ud3d0\uc2ac\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub35518424.png', 'id': u'NPM-\ucc3d\ub35518424', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=638LJE', 'label': u'12\ub4f1 \uc801\uc758\ubcf8'}, {'class': u'Record', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/image/2021/NPM-\ucc3d\ub3559898.png', 'id': u'NPM-\ucc3d\ub3559898', 'infoUrl': u'https://www.gogung.go.kr/searchView.do?cultureSeq=637LJE', 'label': u'\uc801\uc758 \ucc44\uc0c9\ubcf8'}, {'class': u'Index', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/webResource.png', 'id': u'ref-12\ub4f1\uc801\uc758', 'infoUrl': None, 'label': u'WWW \ucc38\uc870 \uc790\uc6d0'}], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='12\xeb\x93\xb1\xec\xa0\x81\xec\x9d\x98 ')
    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"