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
│ ❱ 37 async def connect_ble(notification_handler: noti_handler_T, identifier: str | None = Non │
│ 38 │ """Connect to a GoPro, then pair, and enable notifications │
│ 39 │ │
│ 40 │ If identifier is None, the first discovered GoPro will be connected to. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
use python3 command to run tutorial_modules/tutorial_1_connect_ble/ble_connect.py
you'll be told that TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Expected behavior
Docs state that 3.9 is supported. If that were true then the I should see...
python3 tutorial_modules/tutorial_1_connect_ble/ble_connect.py
INFO 14:07:55.695 Scanning for bluetooth devices... ble_connect.py:55
ERROR 14:07:55.715 Connection establishment failed: [Errno 2] No such file or directory ble_connect.py:107
WARNING 14:07:55.716 Retrying #0 ble_connect.py:108
INFO 14:07:55.717 Scanning for bluetooth devices... ble_connect.py:55
ERROR 14:07:55.719 Connection establishment failed: [Errno 2] No such file or directory ble_connect.py:107
WARNING 14:07:55.720 Retrying #1 ble_connect.py:108
INFO 14:07:55.721 Scanning for bluetooth devices... ble_connect.py:55
ERROR 14:07:55.722 Connection establishment failed: [Errno 2] No such file or directory ble_connect.py:107
WARNING 14:07:55.723 Retrying #2 ble_connect.py:108
Workaround
If I use this git command to rollback commits I can get to a version that does not have the union operator and the script appears to work as expected.
Component
What is the bug in?
Describe the bug
as per https://docs.python.org/3.10/whatsnew/3.10.html#pep-604-new-type-union-operator
that operator is new in 3.10
To Reproduce
Steps to reproduce the behavior:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
Expected behavior
Docs state that 3.9 is supported. If that were true then the I should see...
Workaround
If I use this git command to rollback commits I can get to a version that does not have the union operator and the script appears to work as expected.
Hardware
WSL Ubuntu
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: