psychopy.org | Reference | Downloads | Github

Never ending errors after downloading new version

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

OS (e.g. Win10): Win10pro

PsychoPy version (e.g. 1.84.x): 2021.1.4 (v2021.1)

Standard Standalone? (y/n) If not then what?: yes (downloaded straight from the web)

What are you trying to achieve?:
& What did you try to make it work?:
& What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
→ All answered in time order specifically with the error code below:

I’ve been using Psychopy3 (v2020.2.10) on my old lap-top and there was actually no problem at all.

As I’ve recently bought a new lap-top, I’ve downloaded the recent version of Psychopy & Python.

Opening the “Psychopy program” is no problem.
I can even build my experiment on the builder.
I was trying to show a class how to use Psychopy, so I made a very simple task as below:

I only have 6-7 audio files in “.wav” and uploaded them using a loop (excel file uploaded).

When I click on the “run experiment”, the insert-box for “Participants” appears.
However after typing in any name and as I press enter an error message appears.

The first error message was this:

1060.3271 INFO Loaded monitor calibration from [‘2021_05_09 13:50’]
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
4.8513 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).
35.5479 WARNING User requested fullscreen with size [1024 768], but screen is actually [1920, 1080]. Using actual size

To Solve:

  1. I went to “Preferences” and changed the order as following:
    [PTB, sounddevice, pyo, pygame]

  2. I’ve realized that my computer setting for the screen size is somehow fixed to [1920, 1080] and can’t change it.

So I changed the screen setting on my Psychopy builder to [1920, 1080] as following:

After doing the above 1 & 2, I clicked on the run experiment again and entered a participant name.

Then a gray screen(ish) appears for a few seconds and shuts down again, leaving the following error message:

742.7404 INFO Loaded monitor calibration from [‘2021_05_03 10:14’]
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
3.5975 WARNING Trying to use a framebuffer object but GL_EXT_framebuffer_object is not supported. Disabled
3.5975 WARNING Trying to use a framebuffer object but GL_ARB_texture_float is not supported. Disabling
6.5626 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?

6.8390 WARNING t of last frame was 30.10ms (=1/33)
6.8862 WARNING t of last frame was 31.23ms (=1/32)
6.9163 WARNING t of last frame was 30.12ms (=1/33)
6.9474 WARNING t of last frame was 31.04ms (=1/32)
6.9786 WARNING Multiple dropped frames have occurred - I’ll stop bothering you about them!
9.2737 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?

Traceback (most recent call last):
File “C:\Users\mimi\Documents\Sample\audio_sample_lastrun.py”, line 211, in
win.flip()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\window.py”, line 1044, in flip
thisStim.draw()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 837, in draw
GL.glActiveTexture(GL.GL_TEXTURE1)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\gl\lib_wgl.py”, line 107, in call
return self.func(*args, **kwargs)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\gl\lib.py”, line 64, in MissingFunction

Now I’m really stuck…

Funny thing is the same error message appeared on many of my students this semester.
(especially the above number 1&2 problems)

I’ve been doing this “Psychopy introduction” almost every semester,
but this semester is quite unusual…

Can someone please help me?? :sob: :sob: :sob:

Thank you very much for your help!!!

OK so this is a warning and it shouldn’t actually stop your experiment running (it is just warning you the actual window is a different size). If you click on sound_1 and disable the component in the testing tab does the experiment run? (this will pin down if it is specifically an issue with sound) - please try putting your audio prefs back to as they were first.

Thanks,
Becca

Dear Becca,

thank you very much for your reply.

As I also wrote above, the error codes regarding the PTB and screen size were “kind of” fixed.
My another problem is the following error code:

742.7404 INFO Loaded monitor calibration from [‘2021_05_03 10:14’]
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
3.5975 WARNING Trying to use a framebuffer object but GL_EXT_framebuffer_object is not supported. Disabled
3.5975 WARNING Trying to use a framebuffer object but GL_ARB_texture_float is not supported. Disabling
6.5626 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?

6.8390 WARNING t of last frame was 30.10ms (=1/33)
6.8862 WARNING t of last frame was 31.23ms (=1/32)
6.9163 WARNING t of last frame was 30.12ms (=1/33)
6.9474 WARNING t of last frame was 31.04ms (=1/32)
6.9786 WARNING Multiple dropped frames have occurred - I’ll stop bothering you about them!
9.2737 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?

Traceback (most recent call last):
File “C:\Users\mimi\Documents\Sample\audio_sample_lastrun.py”, line 211, in
win.flip()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\window.py”, line 1044, in flip
thisStim.draw()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 837, in draw
GL.glActiveTexture(GL.GL_TEXTURE1)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\gl\lib_wgl.py”, line 107, in call
return self.func(*args, **kwargs)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\gl\lib.py”, line 64, in MissingFunction

This is where I’m really stuck with… :sob:

Have any ideas…?

Thank you!!!
MiJung

When you run that, if you click on the “line 211 in win.flip()” in the std out what is happening in the latrun.py file at that point in time? that will help us figure out where things are going wrong

Thanks