-
Notifications
You must be signed in to change notification settings - Fork 304
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
linux TypeError: 'StructMeta' object is not iterable #1412
Comments
The top-level dbus_next module tries to import the GLib backend that is not used by Bleak. This wastes memory and can cause a crash if the available version of `gi` is not compatible. Fixes: #1412
Thanks for the report. I made a pull request to fix this if you want to test it. |
Thanks for making a pull request. I changed manager.py and scanner.py file which are in the path [/usr/lib/python3.8/site-packages/bleak/backends/bluezdbus] |
Can you share the new stack trace after this change? |
Thanks for your reply. The new stack trace is here. It is same as the error before changing manager.py and scanner.py
|
My linux kernel version is 4.9.88. Is it too old for bleak Library? |
No, I think the |
The root of the problem is that the version of |
This updates to a new version of `dbus-fast` that doesn't try to import `gi` anymore. Fixes: #1412
I made a new pull request with an updated version of |
Can you try upgrading to bleak 0.21.1 and dbus-fast 2.0.1? |
bluetoothctl -v
) in case of Linux:5.49Description
Trying to run the example code results in TypeError: 'StructMeta' object is not iterable.
What I Did
1.install bleak: pip3 install bleak
2.run the example code
3.Got the following result.
The text was updated successfully, but these errors were encountered: