psychopy.org | Reference | Downloads | Github

Cannot run experiments on Virtual Machine

Hello. I am trying to run my experiments on a virtual machine. I can open up Psychopy and see the builder and coder views. However, I can get no experiments to work. Below is the error from a simple “display text for one second” experiment.
Any help would be great!
Thank you,
Jason

Welcome to PsychoPy3!
v2020.1.2
##################### Running: /home/jason/Desktop/test.py #####################
Traceback (most recent call last):
File “/home/jason/Desktop/test.py”, line 71, in
units=‘norm’)
File “/home/jason/.psychopy3/versions/psychopy/visual/window.py”, line 375, in init
self.backend = backends.getBackend(win=self, *args, **kwargs)
File “/home/jason/.psychopy3/versions/psychopy/visual/backends/init.py”, line 32, in getBackend
return Backend(win, *args, **kwargs)
File “/home/jason/.psychopy3/versions/psychopy/visual/backends/pygletbackend.py”, line 101, in init
defDisp = pyglet.window.get_platform().get_default_display()
AttributeError: module ‘pyglet.window’ has no attribute ‘get_platform’
Exception ignored in: <bound method Window.del of <psychopy.visual.window.Window object at 0x7f9a74137668>>
Traceback (most recent call last):
File “/home/jason/.psychopy3/versions/psychopy/visual/window.py”, line 478, in del
self.close()
File “/home/jason/.psychopy3/versions/psychopy/visual/window.py”, line 1124, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: ‘NoneType’ object has no attribute ‘close’

Experiment ended.