#Error
--> -->
 
 
UnboundLocalError
Python 3.11.7: /usr/bin/python3
Fri Oct 25 01:17:15 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/tutor/public_html/cgi-bin/gptapi/Story01Gpt.py in <module>
    373         else:
    374                 sayMessage( 4 )
    375 
    376                 
=>  377 main()
main = <function main>
 /home/tutor/public_html/cgi-bin/gptapi/Story01Gpt.py in main()
    363                 return
    364                 
=>  365         storyData = createGptInputData( db, project, account, pwd, node )       
    366         #storyData = createGptInputData( 'studio',  'cocktail', 'guest', 'guest',  'DryMartini' )       
    367         #http://public.aks.ac.kr/~tutor/cgi-bin/gptapi/Story03Gpt.py?db=gwangju&project=gwangju&key=DryMartini&language=script&size=300 
storyData undefined, global createGptInputData = <function createGptInputData>, db = 'Class2024', project = '', account = 'guest', pwd = 'guest', node = ''
 /home/tutor/public_html/cgi-bin/gptapi/Story01Gpt.py in createGptInputData(database='Class2024', project='', account='guest', password='guest', node='')
    265                                 cur.close()
    266                                 db.close()
=>  267                                 sayMessage( 5 )
    268                                 return  
    269         
global sayMessage = <function sayMessage>
 /home/tutor/public_html/cgi-bin/gptapi/Story01Gpt.py in sayMessage(errNo=5)
     32 
     33         print( "#Error<br/>"     )
=>   34         print( "{0}<br/>".format( message ) )
     35         print( "<br/>"   )
     36         print( "#End<br/>"       )      
builtin print = <built-in function print>, "{0}
".format undefined, message undefined

UnboundLocalError: cannot access local variable 'message' where it is not associated with a value
      add_note = <built-in method add_note of UnboundLocalError object>
      args = ("cannot access local variable 'message' where it is not associated with a value",)
      name = None
      with_traceback = <built-in method with_traceback of UnboundLocalError object>