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
I'm developing the bleak-compatible backend based on built-in _cb module. It is almost done, discover, connection, notifying and value reading works, but in the end I encountered an unexpected problem, it looks like _cb.Peripheral. write_characteristic_value(...) has a C-level bug that raises SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
self.client.write_gatt_char(
File "/private/var/mobile/Containers/Shared/AppGroup/FE817F0D-F288-48F8-A509-E7559374B783/Pythonista3/Documents/site-packages/bleak/__init__.py", line 723, in write_gatt_char
await self._backend.write_gatt_char(characteristic, data, response)
File "/private/var/mobile/Containers/Shared/AppGroup/FE817F0D-F288-48F8-A509-E7559374B783/Pythonista3/Documents/site-packages/bleak_pythonista/backend/pythonistacb/client.py", line 278, in write_gatt_char
await self._delegate.write_characteristic(
File "/private/var/mobile/Containers/Shared/AppGroup/FE817F0D-F288-48F8-A509-E7559374B783/Pythonista3/Documents/site-packages/bleak_pythonista/backend/pythonistacb/CentralManager.py", line 475, in write_characteristic
p.write_characteristic_value(c, value, with_response)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Activity
[-]_cb.Peripheral.write_characteristic_value raises C-level error[/-][+]_cb.Peripheral.write_characteristic_value raises SystemError[/+]cclauss commentedon Jul 29, 2025
https://github.com/search?q=repo%3Aomz%2FPythonista-Issues+PY_SSIZE_T_CLEAN&type=issues
o-murphy commentedon Jul 29, 2025
@cclauss
Thanks, but I have not access to Pythonista 3.5 testflight
omz commentedon Jul 30, 2025
@o-murphy I've just sent you a TestFlight invite to the email address on your GitHub profile.
o-murphy commentedon Jul 30, 2025
Thanks dude! I'm happy with it
techfoamer commentedon Mar 1, 2026
I'm having the same problem, any estimate of when Pythonista 3.5 will be released?
dlimabean commentedon Oct 31, 2026
Looking forward to next release. I want to use BLE commands.