psychopy.org | Reference | Downloads | Github

Can't run any experiment - Program looking for an irrelevant file


#1

If this template helps then use it. If not then just delete and start from scratch.

OS Win10:
PsychoPy version 1.85.3):
**Standard Standalone? y

Whatever I do - this is what I get:

File “D:\Gal’s Documents\Python\random.py”, line 1, in
from random import random, randint, seed
ImportError: cannot import name random

This file has no relevance and is actually no longer on my computer.

Any ideas?


#2

PsychoPy is trying to find a module called random, which it does need, in order to shuffle conditions etc. I think you’ve called your script random.py but it’s trying to import the python module random, but then it finds itself because it is also called random, and gets confused. Try giving your script a new name.

Jon

NB Please don’t post your question multiple times!