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
i want to test your new functionality "smp over ble". I have a Nordic nrf5340 running SMP and I can do a firmware update via nrf Connect.
I downloaded on github smpmgr-0.9.0-windows-amd64.zip, unpack it and run "smpmgr --ble MyDevice os reset". I also tried other commands like upgrade.
Every time I got the error that winrt.windows.foundation.collections is missing. Is it missing in the mentioned zip-file?
I installed winrt-Windows.Foundation.Collections via pip in my Python312-Path and found out that there is now a file called "_winrt_windows_foundation_collections.cp312-win_amd64.pyd".
I copied that file to _internal\winrt, but I got still the same error.
Here is the cmd output:
> C:\smpmgr-0.9.0>smpmgr --ble MyDevice os reset
[08:57:02] ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...0017075918550>,
<winrt._winrt...0017075918490>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...0017075918550>,
<winrt._winrt...0017075918490>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...0017075918570>,
<winrt._winrt...0017075918410>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...0017075918570>,
<winrt._winrt...0017075918410>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...0017075919150>,
<winrt._winrt...0017075918470>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...0017075919150>,
<winrt._winrt...0017075918470>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...00170759194F0>,
<winrt._winrt...0017075919230>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...00170759194F0>,
<winrt._winrt...0017075919230>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
[08:57:03] ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...00170759192B0>,
<winrt._winrt...0017075918290>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...00170759192B0>,
<winrt._winrt...0017075918290>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
ERROR Exception in callback base_events.py:1820
BleakScannerWinRT._received_handler(<winrt._winrt...00170759187B0>,
<winrt._winrt...0017075918F10>)
handle: <Handle
BleakScannerWinRT._received_handler(<winrt._winrt...00170759187B0>,
<winrt._winrt...0017075918F10>)> - base_events:1820
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ in _run:88 │
│ │
│ in _received_handler:147 │
└─────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
[08:57:04] ERROR Transport error: connection timeout - common:87 common.py:87
⠴ Connecting to MyDevice... error
The text was updated successfully, but these errors were encountered:
Hi @JanPolley ! I suspect an issue with PyInstaller "hidden imports", considering that our BLE dependency, Bleak, places some imports inside of runtime function calls rather than at module scope, which can prevent PyInstaller from finding them.
It may take some time to track down and test, so I recommend that you proceed by installing smpmgr via pipx instead of using the portable.
Hello,
i want to test your new functionality "smp over ble". I have a Nordic nrf5340 running SMP and I can do a firmware update via nrf Connect.
I downloaded on github smpmgr-0.9.0-windows-amd64.zip, unpack it and run "smpmgr --ble MyDevice os reset". I also tried other commands like upgrade.
Every time I got the error that winrt.windows.foundation.collections is missing. Is it missing in the mentioned zip-file?
I installed winrt-Windows.Foundation.Collections via pip in my Python312-Path and found out that there is now a file called "_winrt_windows_foundation_collections.cp312-win_amd64.pyd".
I copied that file to _internal\winrt, but I got still the same error.
Here is the cmd output:
The text was updated successfully, but these errors were encountered: