psychopy.org | Reference | Downloads | Github

Local and remote session

I had interesting issue and decided to share it with the community.

I run experiment with some visual stims, created in code mode @ windows8 . Then later i connected to this computer via RDP from linux and seen in my remote session running experiment. But when I tried run this (and some other) experiments in my remote session at the once, I received errors. So, I can run experiment on the machine in local session and, after initialize of display, I can follow it in remote session.

Enviromnent:
Windows 8 64x, python 3.7,requirements.txt contains:

PyQt5==5.13.0
pyglet==1.3.2
PsychoPy==3.1.5
wxPython==4.0.6

Linux Mint 19.1, Remmina 1.2

Error list:

##### Running: C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\main.py #####
Traceback (most recent call last):
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\main.py", line 25, in <module>
    main()
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\main.py", line 21, in main
    wm.run()
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\WorkingMemory.py", line 94, in run
    keepStim, callStims, frame  = createStim(win=win, info=self.winInfo)
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\stimuli.py", line 27, in createStim
    pos=KEEP_STIMULUS['pos'])
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\text.py", line 209, in __init__
    self.setText(text, log=False)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\text.py", line 354, in setText
    setAttribute(self, 'text', text, log)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\attributetools.py", line 141, in setAttribute
    setattr(self, attrib, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\attributetools.py", line 32, in __set__
    newValue = self.func(obj, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\text.py", line 347, in text
    self._setTextNoShaders(text)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\text.py", line 499, in _setTextNoShaders
    width=self._wrapWidthPix)  # width of the frame
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\text.py", line 343, in __init__
    self.font = font
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\text.py", line 367, in _set_font
    self._layout.end_update()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\layout.py", line 869, in end_update
    self._update()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\layout.py", line 956, in _update
    lines = self._get_lines()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\layout.py", line 932, in _get_lines
    glyphs = self._get_glyphs()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\layout.py", line 1059, in _get_glyphs
    glyphs.extend(font.get_glyphs(text[start:end]))
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\base.py", line 385, in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\win32.py", line 470, in render
    glyph = self.font.create_glyph(image)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\base.py", line 352, in create_glyph
    self.texture_internalformat)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\image\__init__.py", line 1636, in create_for_size
    blank)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\gl\lib.py", line 105, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: b'valor no v\xe1lido'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\window.py", line 495, in close_on_exit
    self.close()
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\window.py", line 1327, in close
    self.backend.close()  # moved here, dereferencing the window prevents
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 374, in close
    self.gammaRamp = self._origGammaRamp
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\attributetools.py", line 32, in __set__
    newValue = self.func(obj, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 326, in gammaRamp
    xDisplay=self.xDisplay)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\gamma.py", line 91, in setGammaRamp
2.1373     WARNING     Import Error: No module named 'psychtoolbox'. Using event module for keyboard component.
4.8669     WARNING     Monitor specification not found. Creating a temporary one...
4.8706     WARNING     User requested fullscreen with size [1366  768], but screen is actually [1920, 1080]. Using actual size
    assert success, 'SetDeviceGammaRamp failed'
AssertionError: SetDeviceGammaRamp failed