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
Sorry if this is the wrong place to post this but it gave me a lot of trouble figuring out so I'm hoping if some one runs into the same issue this might help them resolve it.
I've been working on setting up instructions for new users to setup the development environment for one of our tools for device configuration of out module via Bluetooth. From a fresh install of Python I got an unhandled exception error and a program crash when starting a scan. Placing scanner.start() in a try except block also results in the same exception.
What I Did
After some testing I found that version 0.9.1 seems to have a dependency on the version of pythonnet that was causing the issue. When setting up the new environment version 3.0.1 of pythonnet was installed vs mine which was at 2.5.2.
I've have started updating our for the latest version of Bleak but other priorities have slowed work on that and I also saw in the discussion that later version have moved to using bleak-winrt so it should not longer be an issue.
Logs
Unhandled Exception: System.NotSupportedException: Cannot create uninitialized instances of types requiring managed activation.
at System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(RuntimeType type)
at Python.Runtime.ClassObject.tp_new_impl(BorrowedReference tp, BorrowedReference args, BorrowedReference kw)
at Python.Runtime.NativeCall.Call_3(IntPtr fp, BorrowedReference a1, BorrowedReference a2, BorrowedReference a3)
at Python.Runtime.MetaType.tp_call(BorrowedReference tp, BorrowedReference args, BorrowedReference kw)
This discussion was converted from issue #1316 on May 18, 2023 18:21.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Sorry if this is the wrong place to post this but it gave me a lot of trouble figuring out so I'm hoping if some one runs into the same issue this might help them resolve it.
I've been working on setting up instructions for new users to setup the development environment for one of our tools for device configuration of out module via Bluetooth. From a fresh install of Python I got an unhandled exception error and a program crash when starting a scan. Placing scanner.start() in a try except block also results in the same exception.
What I Did
After some testing I found that version 0.9.1 seems to have a dependency on the version of pythonnet that was causing the issue. When setting up the new environment version 3.0.1 of pythonnet was installed vs mine which was at 2.5.2.
I've have started updating our for the latest version of Bleak but other priorities have slowed work on that and I also saw in the discussion that later version have moved to using bleak-winrt so it should not longer be an issue.
Logs
Beta Was this translation helpful? Give feedback.
All reactions