| 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.

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


Linux Mint 19.1, Remmina 1.2

Error list:

##### Running: C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\ #####
Traceback (most recent call last):
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\", line 25, in <module>
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\", line 21, in main
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\", line 94, in run
    keepStim, callStims, frame  = createStim(win=win, info=self.winInfo)
  File "C:\Users\...\Documents\Pruebas\mindset\src\WorkingMemory\", line 27, in createStim
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\", line 209, in __init__
    self.setText(text, log=False)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\", line 354, in setText
    setAttribute(self, 'text', text, log)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\", line 141, in setAttribute
    setattr(self, attrib, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\", line 32, in __set__
    newValue = self.func(obj, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\", line 347, in text
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\", line 499, in _setTextNoShaders
    width=self._wrapWidthPix)  # width of the frame
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\", line 343, in __init__
    self.font = font
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\", line 367, in _set_font
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\", line 869, in end_update
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\", line 956, in _update
    lines = self._get_lines()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\", line 932, in _get_lines
    glyphs = self._get_glyphs()
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\text\", line 1059, in _get_glyphs
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\", line 385, in get_glyphs
    self.glyphs[c] = glyph_renderer.render(c)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\", line 470, in render
    glyph = self.font.create_glyph(image)
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\font\", line 352, in create_glyph
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\image\", line 1636, in create_for_size
  File "c:\users\...\documents\pruebas\lib\site-packages\pyglet\gl\", line 105, in errcheck
    raise GLException(msg) 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\", line 495, in close_on_exit
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\", line 1327, in close
    self.backend.close()  # moved here, dereferencing the window prevents
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\", line 374, in close
    self.gammaRamp = self._origGammaRamp
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\tools\", line 32, in __set__
    newValue = self.func(obj, value)
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\", line 326, in gammaRamp
  File "c:\users\...\documents\pruebas\lib\site-packages\psychopy\visual\backends\", 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

I experience the same or similar problem.
In my case, there are no error messages, psychopy3 just dies quietly…
psychopy2 works, by the way…