post the cap file, or a screenshot of your event sheet and a paste of your python
it could be any number of problems.
here's some questions which would be helpful in troubleshooting if you decide not post it
what is 'File "gmdat" does not exist' , and what does it have to do with what follows
is the function that makes the message box appear made with events then?, and the function object? is it called from events
is it python that calls it?
make sure your python is in events, if you don't want it to run every tick, one time things like defining python functions, etc should be done in start of layout.
The function object and python functions of course let you run them once, or any time they are called. There is another error somewhere.
before we figure out why python won't respond to the [1] text object, lets try to get rid of the nonstop creation of text objects.