Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use the controller with ethernet connection #40

Open
HAJEKEL opened this issue Aug 30, 2024 · 0 comments
Open

Not able to use the controller with ethernet connection #40

HAJEKEL opened this issue Aug 30, 2024 · 0 comments

Comments

@HAJEKEL
Copy link

HAJEKEL commented Aug 30, 2024

When I try to connect to Tobii via ethernet cable, I get the following error.

TobiiGlassesController("fe80::52bc:2e3e:d916:f34e%enp0s31f6")
[DEBUG]: Connecting to the Tobii Pro Glasses 2 ...
[DEBUG]: Disconnecting to the Tobii Pro Glasses 2
Exception ignored in: <function TobiiGlassesController.del at 0x7926aa4a0430>
Traceback (most recent call last):
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 100, in del
self.close()
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 314, in close
self.disconnect()
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 116, in disconnect
self.data_socket.close()
AttributeError: 'TobiiGlassesController' object has no attribute 'data_socket'
Traceback (most recent call last):
File "", line 1, in
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 96, in init
if self.connect(timeout = timeout) is False:
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 104, in connect
self.data_socket = self.mksock()
File "/home/henk/.local/lib/python3.10/site-packages/tobiiglassesctrl/controller.py", line 187, in mksock
sock.setsockopt(socket.SOL_SOCKET, 25, self.iface_name+'\0')
TypeError: a bytes-like object is required, not 'str'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant