Runtime error - import *

Windows 11
psychopy standalone 2024.1.4

Just to quickly share an experience in case it helps others. I was updating an old experiement from a couple of years ago and it crashed at runtime. The error message was only partly helpful:

    def run(expInfo, thisExp, win, globalClock=None, thisSession=None):
    ^
SyntaxError: import * only allowed at module level

It turned out to be that, as this was an eyetracker experiment, I had a line in a code component as follows:

from TobiiTrackerV2 import *

which is illegal in Python 3 (as the code component code is now executed from within a routine I believe)

I’ve not fixed it yet (just commented out the code) - advice welcomed :slight_smile: but thought I’d mention it for others