I had the same error while doing homework for my college class. The error occured after my file got imported by the other testing file given by the professor and nothing is working. I got it fixed after I checked "Initialize Program Counter to global main" option in the settings menu. Thanks to Jesse Victor's answer.