TypeError: 'NoneType' object is not callable

My experiment is a memory experiment. Now I have encountered a problem that the picture previously learned in the learning phase is missing in the following memory test phase. In the test phase, there should be one target picture and three distractors. However, the distracting object picture can be presented perfectly while the target picture is missing. I am confused. Hoping for a clear solution. Thanks for your time and patience.

Psychopy script:

Generating PsychoPy script...

################# Running: D:\psychopy\RWO_LTM\Exp1_lastrun.py #################
14434.6278     INFO     Loaded monitor calibration from ['2021_02_20 15:59']
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
0.8265     WARNING     We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
2.2242     WARNING     Font Manager failed to load file C:\Windows\Fonts\方正粗黑宋简体.ttf
2.6496     WARNING     Font Manager failed to load file C:\Windows\Fonts\方正粗黑宋简体.ttf
9.5333     WARNING     Couldn't measure a consistent frame rate.
  - Is your graphics card set to sync to vertical blank?
  - Are you running other processes on your computer?

9.9200     WARNING     Requested image 'instr\\startpage_prac' not found but similar filename 'instr\\startpage_prac.jpg' exists. This will be used instead but changing the filename is advised.
10.0938     WARNING     t of last frame was 561.01ms (=1/1)
10.1333     WARNING     t of last frame was 39.51ms (=1/25)
10.2789     WARNING     t of last frame was 20.33ms (=1/49)
10.3007     WARNING     t of last frame was 21.76ms (=1/45)
10.4319     WARNING     Multiple dropped frames have occurred - I'll stop bothering you about them!
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x00000283846ECDA0>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x000002838473B080>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method TextStim.__del__ of <psychopy.visual.text.TextStim object at 0x00000283846ECFD0>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\text.py", line 240, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x00000283885F54A8>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method TextStim.__del__ of <psychopy.visual.text.TextStim object at 0x0000028387FE9CC0>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\text.py", line 240, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x0000028388605AC8>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x000002838861B048>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x000002838861B2E8>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x000002838861B240>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
Exception ignored in: <bound method ImageStim.__del__ of <psychopy.visual.image.ImageStim object at 0x000002838861B128>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 239, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
TypeError: 'NoneType' object is not callable
##### Experiment ended. #####

Here is my conditional file information. One is for learning phase, and the other one is for test phase.

Schematic diagram of testing phase:

Hello,

The are a couple of warnings you should solve.

  1. some fonts can‘t be loaded
  2. you call the the picture instr\startpage_prac.jpg by using the reference instr\startpage_prac. You need to add the proper extension.
  3. is your graphics card set to vertical sync? Turn it off.

The error is probably a coding error. Do you mind to upload a toy-version of your experiment, e.g. *.psyexp, some stimuli, *.xlsx

Best wishes Jens

1 Like