<type 'exceptions.NameError'> | Python 2.7.12: /usr/bin/python Wed May 21 13:29:07 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/pbrooks/ai/tic-tac-toe/TimeDriver.py in |
195 return random_name |
196 |
=> 197 main() |
198 |
199 |
main = <function main> |
/var/www/pbrooks/ai/tic-tac-toe/TimeDriver.py in main() |
50 # make sure all essential arguments are available |
51 if 'progfile' not in name_values or 'cutoff_time' not in name_values or 'result_prefix' not in name_values: |
=> 52 myExit(output_header+'Did not receive necessary arguments: "progfile" or "cutoff_time" or "result_prefix"\n'+str(name_values)) |
53 progfile = name_values['progfile'] |
54 cutoff_time = float(name_values['cutoff_time']) |
global myExit = <function myExit>, output_header undefined, builtin str = <type 'str'>, name_values = {} |
<type 'exceptions.NameError'>: global name 'output_header' is not defined
args =
("global name 'output_header' is not defined",)
message =
"global name 'output_header' is not defined"