Error when attempting automatic gamma calibration

MacOS Mojave v10.14.6
Psychopy Version: ‘2020.2.8’
Standard Standalone? y
Photometer: ColorCal MKII.

I wish to perform an automatic gamma calibration using the monitor centre. This worked a couple weeks ago when I was on an older version of PsychoPy but I recently updated to a newer version.

I can pull up the monitor centre from BuilderView, I can click ‘get photometer’ and perform the dark calibration successfully. I can click ‘Gamma Calibration’ but when I click ‘OK’ to begin the ‘auto’ calibration, I get the following error messages:

  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/monitors/MonitorCenter.py”, line 826, in onCalibGammaBtn
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/monitors/calibTools.py”, line 964, in getLumSeries
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py”, line 434, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/backends/__init__.py”, line 74, in getBackend
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/backends/pygletbackend.py”, line 171, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/pyglet/window/__init__.py”, line 648, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/__init__.py”, line 197, in _create
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/pyglet/gl/cocoa.py”, line 300, in attach
AttributeError: ‘NoneType’ object has no attribute ‘setWantsBestResolutionOpenGLSurface_’

Not sure what to do about this so advice would be appreciated!

It looks like something is going wrong with pyglet, some object is being set to None when it shouldn’t be. Can you check your version of Pyglet?

Within the shell it’s 1.5.10

pyglet.version
1.5.10