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

Windows 10: Bluetooth broken with Python 3.12 #43

Closed
chrisgeli opened this issue Mar 21, 2024 · 0 comments
Closed

Windows 10: Bluetooth broken with Python 3.12 #43

chrisgeli opened this issue Mar 21, 2024 · 0 comments

Comments

@chrisgeli
Copy link

While investigating hbldh/bleak#1529, I came across this behaviour:

Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC v.1937 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import winrt
>>> import winrt.windows
>>> import winrt.windows.devices
>>> import winrt.windows.devices.bluetooth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python3.12\Lib\site-packages\winrt\windows\devices\bluetooth\__init__.py", line 6, in <module>
from winrt import _winrt_windows_devices_bluetooth
ImportError: DLL load failed while importing _winrt_windows_devices_bluetooth: The specified module could not be found.

Knowing very little about WinRT, I'm not sure this is expected.

Version info:
Python version: 3.12.2
Operating System: Windows 10 Pro, build 19045.4170

python -m pip install bleak==0.21.1
Requirement already satisfied: bleak==0.21.1 in c:\python3.12\lib\site-packages (0.21.1)
Requirement already satisfied: winrt-Windows.Devices.Bluetooth==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Devices.Bluetooth.Advertisement==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Devices.Enumeration==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Foundation==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Foundation.Collections==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-Windows.Storage.Streams==2.0.0b1 in c:\python3.12\lib\site-packages (from bleak==0.21.1) (2.0.0b1)
Requirement already satisfied: winrt-runtime==2.0.0-beta.1 in c:\python3.12\lib\site-packages (from winrt-Windows.Devices.Bluetooth==2.0.0b1->bleak==0.21.1) (2.0.0b1)
@chrisgeli chrisgeli changed the title Windows 10: Bluetooth broken? Windows 10: Bluetooth broken with Python 3.12, working with Python 3.11 Apr 4, 2024
@chrisgeli chrisgeli changed the title Windows 10: Bluetooth broken with Python 3.12, working with Python 3.11 Windows 10: Bluetooth broken with Python 3.12 Apr 4, 2024
@dlech dlech closed this as completed in 3b76566 Apr 8, 2024
@dlech dlech reopened this Apr 8, 2024
@dlech dlech closed this as completed in b72c402 Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants