question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dlechcommented, Dec 6, 2020

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.

1reaction
dhalbertcommented, Oct 14, 2020

pythonnet 2.5.x (2.5.1 is latest as of now) supports python 3.8.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found