| Reference | Downloads | Github

Typeerror: cannot convert 'int' object to byte



I am running Anaconda spyder 3.6, 64 bit and psychopy 1.90.1 via (pip install psychopy) on windows 10 64 bit. I am getting above mentioned error. I have tried with pyglet 1.2.2, 1.2.4 and 1.3.1, but still same error. I am putting the error trace back. Does anyone is having any idea about this problem?
Traceback (most recent call last):

File "<ipython-input-10-1d8bff329d88>", line 2, in <module>
extra_info=exp_info, iti=1, t_inter_blocks=1, outdir=outfile)

 File "<ipython-input-4-942a2dbc6c26>", line 57, in run_experiment
win = visual.Window(fullscr=True, size=(1920, 1080), monitor='laptop') #TODO: handle in a different way the screen resolution

  File "C:\Users\ravikumar.mevada\Anaconda3\lib\site-packages\psychopy\visual\", line 375, in __init__
self.backend = backends.getBackend(win=self, *args, **kwargs)

 File "C:\Users\ravikumar.mevada\Anaconda3\lib\site-packages\psychopy\visual\backends\", line 32, in getBackend
return Backend(win, *args, **kwargs)

File "C:\Users\ravikumar.mevada\Anaconda3\lib\site-packages\psychopy\visual\backends\", line 223, in __init__
self._origGammaRamp = self.getGammaRamp()

File "C:\Users\ravikumar.mevada\Anaconda3\lib\site-packages\psychopy\visual\backends\", line 322, in getGammaRamp
return getGammaRamp(self.screenID, self.xDisplay)

File "C:\Users\ravikumar.mevada\Anaconda3\lib\site-packages\psychopy\visual\backends\", line 332, in screenID
_screenID = 0xFFFFFFFF & int.from_bytes(scrBytes, byteorder='little')

TypeError: cannot convert 'int' object to bytes