socket.error: [Errno 107] Transport endpoint is not connected (Gentoo)
See original GitHub issueI got this error when trying to run ps4drv on Gentoo. The entire trace is :
ds4drv
[info][controller 1] Created devices /dev/input/js2 (joystick) /dev/input/event10 (evdev)
[info][bluetooth] Scanning for devices
[info][bluetooth] Found device A4:15:66:6F:3B:A0
Traceback (most recent call last):
File "/usr/bin/ds4drv", line 9, in <module>
load_entry_point('ds4drv==0.3.0', 'console_scripts', 'ds4drv')()
File "/usr/lib64/python2.7/site-packages/ds4drv/__main__.py", line 325, in main
for device in backend.devices:
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 117, in devices
device = self.find_device()
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 106, in find_device
return BluetoothDS4Device.connect(bdaddr)
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 34, in connect
return cls(addr, ctl_socket, int_socket)
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 41, in __init__
super(BluetoothDS4Device, self).__init__(addr, "bluetooth")
File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 70, in __init__
self.set_operational()
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 66, in set_operational
self.set_led(255, 255, 255)
File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 82, in set_led
self._control()
File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 75, in _control
flash_led2=self._led_flash[1], **kwargs)
File "/usr/lib64/python2.7/site-packages/ds4drv/device.py", line 130, in control
self.write_report(report_id, pkt)
File "/usr/lib64/python2.7/site-packages/ds4drv/backends/bluetooth.py", line 63, in write_report
self.ctl_sock.sendall(hid + data)
File "/usr/lib64/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 107] Transport endpoint is not connected
bluez version is 4.101
Issue Analytics
- State:
- Created 10 years ago
- Comments:38 (14 by maintainers)
Top Results From Across the Web
(solve) Local directory:Transport endpoint is not connected
This is the message you get when you mount something with sshfs and the connection breaks. What does your /etc/mtab say about /usb/mediastick?...
Read more >1207 (error handling in --inetd mode can caused a tight loop)
there seems to be a race somewhere in the --inetd socket handling - I think ... Transport endpoint is not connected (errno=107) messages-20190728.gz:Jul...
Read more >Simple socket error : OSError: [Errno 107] Transport endpoint ...
I am trying to remake some old, really bad code that I wrote. In that code it had functionality to send data to...
Read more >[Python-checkins] buildbot failure in x86 gentoo 3.x
... in close_request request.shutdown(socket.SHUT_WR) socket.error: [Errno 107] Transport endpoint is not connected Traceback (most recent call last): File ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just experienced the “Transport endpoint is not connected” error. I have 2 dongles. The first one works fine and it’s a bluetooth 4.0 usb dongle. The second one gives me the transport error and it’s a bluetooth 2.0 usb dongle.
The fact is that standard pairing is also problematic because it asks for a PIN, which does not happen to be necessary with the other device.
I managed to pair it using bluetoothctl after enabling the agent:
And then “ds4drv --hidraw” worked fine.
Recap:
I’ve read a lot of docs && I suppose that it’s due to bluetooth dongle… It has bluetooth 2.1