What are you trying to achieve?:
I am designing a go-nogo task. The following error always crops up, and I am not sure why. I have checked the file names and everything but I am not able to find the error.
do want to run the experiment online. If so, it is best advice to use only “/” instead of “”. Does psychopy look in the proper folder for the stimuli? It looks as if you have a Go_Nogo folder in your Go_Nogo folder. I suggest to use more a informative name such as stimuli to facilitate debugging.
I would eventually shift this experiment to online mode only. I am also not sure why psychopy is going to another folder name Go_Nogo. I also tried to shift the whole folder to the desktop and also change the name of the folder. But still, the same error is showing.
I also checked the code in the compiler. There the path was fine.
thisExp = data.ExperimentHandler(name=expName, version='',
# save a log file for detail verbose info
logFile = logging.LogFile(filename+'.log', level=logging.EXP)
logging.console.setLevel(logging.WARNING) # this outputs to the screen, not a file
This part of the code is where I think the images are called
# set up handler to look after randomisation of conditions etc
UP_DOWN = data.TrialHandler(nReps=1, method='sequential',
thisExp.addLoop(UP_DOWN) # add the loop to the experiment
thisUP_DOWN = UP_DOWN.trialList # so we can initialise stimuli with some values
# abbreviate parameter names if possible (e.g. rgb = thisUP_DOWN.rgb)
I hope this much information may help to look for the problem.
Thanks for your help throughout. But still, my experiment is not working. This time a different error is coming up.
Traceback (most recent call last):
File "F:\GNG\Go-Nogo_lastrun.py", line 537, in <module>
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\window.py", line 910, in flip
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py", line 775, in draw
self.rgb, self.colorSpace, self.contrast)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\basevisual.py", line 439, in _getDesiredRGB
rgb = rgb / 127.5 - 1
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Can you tell me why this error might be showing.