Change from pythonnet to WinRT
See original GitHub issue- bleak version: 0.6.1
- Python version: 3.8
- Operating System: Windows 10 1909
- BlueZ version (
bluetoothctl -v
) in case of Linux:
Description
Bleak fails to install on Windows 10 with Python 3.8, as Python 3.8 is not supported by pythonnet, which appears to not officially support python 3.7 or 3.8.
Microsoft have now released WinRT, which is an official python bridge to the WindowsRT APIs, and so it might be possible to use this instead of PythonNet for access to Bluetooth on windows. See https://github.com/beeware/toga/issues/884 for another project that is discussing making this change.
Hopefully, this might solve other open issues tagged with .NET too.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
WinRT CoInitialize in Python - windows - Stack Overflow
I have the following simple code: import winrt.windows.applicationmodel.datatransfer as DataTransfer clipboard = DataTransfer.
Read more >Python.NET 3.0.0 Released - I Programmer
I'm proud to finally release the first new major version of Python.NET in 7 years. explaining that it was the culmination of 2...
Read more >Changelog — bleak 0.20.0a1 documentation
Changed from winrt dependency to bleak-winrt . Improved error when connecting to device fails in WinRT backend. Fixes #647. Changed examples to use...
Read more >Embedding .NET into Python - Python.NET documentation
Type conversion under Python.NET is fairly straightforward - most elemental Python types (string, int, long, etc.) convert automatically to compatible managed ...
Read more >winrt · PyPI
The Windows Runtime Python Projection (Python/WinRT) enables Python developers to access Windows Runtime APIs directly from Python in a natural and familiar ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI,
winrt winrt 1.0.20330.1
is now available for Python 3.7, 3.8, and 3.9 and the GUID issue has been fixed.pythonnet 2.5.x (2.5.1 is latest as of now) supports python 3.8.