If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win 10 64 bit
PsychoPy version (e.g. 1.84.x): 3.1.2
Standard Standalone? (y/n) If not then what?:y
**What are you trying to achieve?:**I want to input a UUID.UUID4 into the participant field of the Experiment Settings pop up window
**What did you try to make it work?:**I tried the suggestions provided by first using “import uuid” in the code view (didn’t work) and in the Python commands code input (didn’t work). The import uuid disappears from Coder View when the program is run. The Python commands code input retains the import uuid and the code for inputting the uuid.uuid4 into the participant field. The code is ‘Participant’: str(uuid.uuid4()). I have tried it with a colon, an equal sign, and with square brackets. None of the combinations worked.
What specifically went wrong when you tried that?:
This window pops up without the uuid
followed by this error message:
NOTE: When I input the code into the Coder View and run it, it works perfectly. For some unknown reason I cannot get the code to work in the Builder View. Please help. I have submitted this problem before without a resolution. Any help would be appreciated.
Include pasted full error message if possible. “That didn’t work” is not enough information.