<type 'exceptions.UnboundLocalError'>
Python 2.7.12: /usr/bin/python
Sat Aug 24 14:47: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/wikiGraphPresenter.py in ()
    589         #https://dh.aks.ac.kr/~sandbox/cgi-bin/wikiGraphPresenter.py?account=edu&script=부용산.lst
    590         #https://dh.aks.ac.kr/~sandbox/cgi-bin/wikiGraphPresenter.py?url=dh.aks.ac.kr/~edu/&script=부용산.lst        
    591         
    592         
=>  593 main()
main = <function main>
 /home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in main()
    582         if direction=="RL": direction="LR"
    583 
=>  584         displayNetwork( account, guestUrl, script, direction )
    585         #displayNetwork( "workshop", "", "TestScript.lst", "Normal" )
    586         #displayNetwork( "workshop", "", "TestScript.lst", "UD" )
global displayNetwork = <function displayNetwork>, account = 'encyves', guestUrl = '', script = 'A053.lst', direction = 'NORMAL'
 /home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in displayNetwork(account='encyves', guestUrl='', script='A053.lst', directionType='NORMAL')
    481 
    482         #----------------------------
=>  483         drawGraph( account, guestUrl, script )
    484         #----------------------------
    485 
global drawGraph = <function drawGraph>, account = 'encyves', guestUrl = '', script = 'A053.lst'
 /home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in drawGraph(account='encyves', guestUrl='', script='A053.lst')
    411         for item in links:
    412                 index = item['relation']
=>  413                 getLinkInfo( relation, index, edgeform ) #edgeform: {index, label, arrow}
    414                 if item['attribute'] != 'null':
    415                         label = edgeform[1]     + ' ('+ item['attribute'] + ')' #relation name or alias + (attribute )
global getLinkInfo = <function getLinkInfo>, relation = [{'alias': 'ekc:hasAdoptedHeir', 'arrow': 'to', 'name': 'A', 'option': 'black'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:isRelatedTo', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:creator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:mentions', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:translator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'owl:sameAs', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:currentLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:hasPart', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:hasOwner', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:hasBrother', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:writer', 'option': '1'}], index = 'A', edgeform = ['A', 'owl:sameAs', 'black', 'to']
 /home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in getLinkInfo(table=[{'alias': 'ekc:hasAdoptedHeir', 'arrow': 'to', 'name': 'A', 'option': 'black'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:isRelatedTo', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:creator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:mentions', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:translator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'owl:sameAs', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:currentLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:hasPart', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:hasOwner', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:hasBrother', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:writer', 'option': '1'}], index='A', list=['A', 'owl:sameAs', 'black', 'to'])
    174                                 
    175         list[0] = index
=>  176         list[1] = label
    177         list[2] = title
    178         list[3] = arrow
list = ['A', 'owl:sameAs', 'black', 'to'], label undefined

<type 'exceptions.UnboundLocalError'>: local variable 'label' referenced before assignment
      args = ("local variable 'label' referenced before assignment",)
      message = "local variable 'label' referenced before assignment"