You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyBluez is not under active development but we are seeking new contributors
to investigate bugs and submit patches.
System
Fedora Linux 38
x86_64
3.11
0.23
Issue
s = bluetooth.BluetoothSocket(RFCOMM) s.connect((self.device['host'], self.device['port'])) creates unusable socket object which throws: bluetooth.btcommon.BluetoothError: [Errno 14] Bad address It should create the same (or functionally equivalent) socket object to: s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM) s.connect((self.device['host'], self.device['port'])) However, using BluetoothSocket(RFCOMM) results in a socket which throws an exception whenever a write is attempted whereas the socket object works. Version-Release number of selected component (if applicable): python3-bluez-0.23-10.fc38.x86_64 How reproducible: ALways Steps to Reproduce: 1. s = bluetooth.BluetoothSocket(RFCOMM) 2. s.connect(mac_address, port) 3. s.send("foo") Actual results: bluetooth.btcommon.BluetoothError: [Errno 14] Bad address Expected results: Success (no exception) Additional info: This is code that has been working on Fedora for a decade. It works on Fedora 35. I just upgraded to 38. I have not tried Fedora 36 & 37.
Collapse All Comments Expand All Comments Add Comment
s = bluetooth.BluetoothSocket(RFCOMM)
s.connect((self.device['host'], self.device['port']))
creates unusable socket object which throws:
bluetooth.btcommon.BluetoothError: [Errno 14] Bad address
It should create the same (or functionally equivalent) socket object to:
s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
s.connect((self.device['host'], self.device['port']))
However, using BluetoothSocket(RFCOMM) results in a socket which throws an exception whenever a write is attempted whereas the socket object works.
Version-Release number of selected component (if applicable):
python3-bluez-0.23-10.fc38.x86_64
How reproducible:
ALways
Steps to Reproduce:
s = bluetooth.BluetoothSocket(RFCOMM)
s.connect(mac_address, port)
s.send("foo")
Actual results:
bluetooth.btcommon.BluetoothError: [Errno 14] Bad address
Expected results:
Success (no exception)
Additional info:
This is code that has been working on Fedora for a decade. It works on Fedora 35. I just upgraded to 38. I have not tried Fedora 36 & 37.
[Collapse All Comments](https://bugzilla.redhat.com/show_bug.cgi?id=2185336#)
[Expand All Comments](https://bugzilla.redhat.com/show_bug.cgi?id=2185336#)
PyBluez is not under active development but we are seeking new contributors
to investigate bugs and submit patches.
System
Issue
s = bluetooth.BluetoothSocket(RFCOMM)
s.connect((self.device['host'], self.device['port']))
creates unusable socket object which throws:
bluetooth.btcommon.BluetoothError: [Errno 14] Bad address
It should create the same (or functionally equivalent) socket object to:
s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
s.connect((self.device['host'], self.device['port']))
However, using BluetoothSocket(RFCOMM) results in a socket which throws an exception whenever a write is attempted whereas the socket object works.
Version-Release number of selected component (if applicable):
python3-bluez-0.23-10.fc38.x86_64
How reproducible:
ALways
Steps to Reproduce:
Actual results:
bluetooth.btcommon.BluetoothError: [Errno 14] Bad address
Expected results:
Success (no exception)
Additional info:
This is code that has been working on Fedora for a decade. It works on Fedora 35. I just upgraded to 38. I have not tried Fedora 36 & 37.
Add Comment
The text was updated successfully, but these errors were encountered: