TobiiGlassesPyController icon indicating copy to clipboard operation
TobiiGlassesPyController copied to clipboard

issue sock.setsockopt - suggested correction

Open Soraya28 opened this issue 2 years ago • 2 comments

https://github.com/ddetommaso/TobiiGlassesPyController/blob/11542ba0c4a08152c27a7d738f7a2e002c97f407/tobiiglassesctrl/controller.py#L193

Hi everyone,

Thanks a lot for this very useful toolbox.

I have come across an issue line 193 that I have corrected, see below. Otherwise, everything is working fine !

Issue : TypeError: a bytes-like object is required, not 'str'

Correction suggested : sock.setsockopt(socket.SOL_SOCKET, 25, (self.iface_name+'\0').encode())

Soraya28 avatar Jul 19 '22 16:07 Soraya28

Hi @Soraya28,

many thanks for your suggestion. Please can you tell us the operating system and the Python version in which you encountered the issue?

ddetommaso avatar Jul 20 '22 09:07 ddetommaso

Hi @ddetommaso

Sorry, of course.

Os : Windows 11 Python : 3.9.12

Soraya28 avatar Jul 20 '22 12:07 Soraya28