<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Sun Nov 3 18:18:18 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 = 'E068.lst', direction = 'NORMAL' |
/home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in displayNetwork(account='encyves', guestUrl='', script='E068.lst', directionType='NORMAL') |
481 |
482 #---------------------------- |
=> 483 drawGraph( account, guestUrl, script ) |
484 #---------------------------- |
485 |
global drawGraph = <function drawGraph>, account = 'encyves', guestUrl = '', script = 'E068.lst' |
/home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in drawGraph(account='encyves', guestUrl='', script='E068.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': 'black', 'arrow': 'to', 'name': 'edm:isRelatedTo', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:currentLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:isDerivativeOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:creator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:publisher', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:contributor', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:provenance', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:type', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:hasPart', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:isPartOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:references', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:isReferencedBy', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'owl:sameAs', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'foaf:member', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'foaf:knows', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:formerLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:isNamesakeOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:depicts', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:isDepictedIn', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:mentions', 'option': '1'}, ...], index = 'ekc:isLineageKinOf', edgeform = ['ekc:isLineageKinOf', 'ekc:hasDaughter', 'black', 'to'] |
/home/sandbox/public_html/cgi-bin/wikiGraphPresenter.py in getLinkInfo(table=[{'alias': 'black', 'arrow': 'to', 'name': 'edm:isRelatedTo', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:currentLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'edm:isDerivativeOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:creator', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:publisher', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:contributor', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:provenance', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:type', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:hasPart', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:isPartOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:references', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'dcterms:isReferencedBy', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'owl:sameAs', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'foaf:member', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'foaf:knows', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:formerLocation', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:isNamesakeOf', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:depicts', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:isDepictedIn', 'option': '1'}, {'alias': 'black', 'arrow': 'to', 'name': 'ekc:mentions', 'option': '1'}, ...], index='ekc:isLineageKinOf', list=['ekc:isLineageKinOf', 'ekc:hasDaughter', 'black', 'to']) |
174 |
175 list[0] = index |
=> 176 list[1] = label |
177 list[2] = title |
178 list[3] = arrow |
list = ['ekc:isLineageKinOf', 'ekc:hasDaughter', '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"