<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Fri Nov 15 15:16:42 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/soohyeon/public_html/cgi-bin/Story02.py in |
257 |
258 displayNetwork("templateSov.htm", db, project, node) |
259 #displayData( node ) |
260 |
=> 261 main() |
main = <function main> |
/home/soohyeon/public_html/cgi-bin/Story02.py in main() |
256 return |
257 |
=> 258 displayNetwork("templateSov.htm", db, project, node) |
259 #displayData( node ) |
260 |
global displayNetwork = <function displayNetwork>, db = 's_soohyeon', project = 'silchahawyen', node = '\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4' |
/home/soohyeon/public_html/cgi-bin/Story02.py in displayNetwork(template='templateSov.htm', db='s_soohyeon', project='silchahawyen', node='\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4') |
234 if not line: break |
235 if( '#YourData' == line.strip()): |
=> 236 displayData( db, project, node ) |
237 else: |
238 print line |
global displayData = <function displayData>, db = 's_soohyeon', project = 'silchahawyen', node = '\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4' |
/home/soohyeon/public_html/cgi-bin/Story02.py in displayData(database='s_soohyeon', project='silchahawyen', node='\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4') |
221 db.close() |
222 |
=> 223 printNodes( nodelist, database, project, node ) |
224 printLinks( edgelist, node ) |
225 |
global printNodes = <function printNodes>, nodelist = [], database = 's_soohyeon', project = 'silchahawyen', node = '\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4' |
/home/soohyeon/public_html/cgi-bin/Story02.py in printNodes(nodelist=[], database='s_soohyeon', project='silchahawyen', subject='\xec\x84\x9d\xea\xb0\x80\xec\x84\xb8\xec\xa1\xb4') |
67 print " nodesArray.push({\n" |
68 print " id: 'switch1',\n" |
=> 69 print " label: '{0} List',\n".format(subjectClass) |
70 print " url: '{0}?db={1}&project={2}&key={3}',\n".format(CategoryUrl, database, project, subjectClass) |
71 print " shape: 'triangle',\n" |
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"