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

Systemerror using Python 3.10 #73

Closed
SvenZHB opened this issue Dec 30, 2021 · 1 comment
Closed

Systemerror using Python 3.10 #73

SvenZHB opened this issue Dec 30, 2021 · 1 comment

Comments

@SvenZHB
Copy link

SvenZHB commented Dec 30, 2021

Using Python 3.10 on Manjaro (Arch) throws an error using the software.

Traceback (most recent call last): File "/usr/local/bin/bluetooth_battery", line 33, in <module> sys.exit(load_entry_point('bluetooth-battery==1.3.2', 'console_scripts', 'bluetooth_battery')()) File "/usr/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 163, in main print("Battery level for {} is {}".format(device, str(query))) File "/usr/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 93, in __str__ return "{:.0%}".format(self._perform_query() / 100) File "/usr/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 105, in _perform_query sock.send(b"+BRSF: 1024") File "/usr/lib/python3.10/site-packages/bluetooth_battery/bluetooth_battery.py", line 66, in send return super().send(b"\r\n" + data + b"\r\n") File "<string>", line 3, in send SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

@TheWeirdDev
Copy link
Owner

Duplicate of #71 (It's a pybluez bug and you have to wait for them to fix it).

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

2 participants