"UnboundLocalError: local variable 'os' referenced before assignment"

Update: if I set useVersion back to v2022.1.0 (one of the previous versions this experiment passed through), the error does not occur and I am able to run the experiment normally. However, this version is on the list of versions to avoid… so I’d rather avoid it if possible.