This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Fanstel BC840E OTA error using nRFUtil

Hi, I have a customer wanting to do OTA firmware upgrade using nRFUtil on Fanstel BC840E module. 

They have installed the python

D:\nRF_Pjts>python
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

When they run the nrfutil from the prompt ( regular user) they get the following errors:

{Get the same running in admin mode}


D:\nRF_Pjts>nrfutil dfu ble --help
Traceback (most recent call last):
  File "D:\AppData\Local\Programs\Python\Python39\Scripts\nrfutil-script.py", line 33, in <module>
    sys.exit(load_entry_point('nrfutil==5.2.0', 'console_scripts', 'nrfutil')())
  File "D:\AppData\Local\Programs\Python\Python39\Scripts\nrfutil-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "d:\appdata\local\programs\python\python39\lib\importlib\metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "d:\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "d:\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\__main__.py", line 53, in <module>
    from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial
  File "d:\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 52, in <module>
    from nordicsemi.lister.device_lister import DeviceLister
  File "d:\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\lister\device_lister.py", line 39, in <module>
    from nordicsemi.lister.windows.lister_win32 import Win32Lister
  File "d:\appdata\local\programs\python\python39\lib\site-packages\nordicsemi\lister\windows\lister_win32.py", line 43, in <module>
    from constants import DIGCF_PRESENT, DEVPKEY, DIGCF_DEVICEINTERFACE
ModuleNotFoundError: No module named 'constants

 

In the nordic documentation it says for errors but these are different. However to be sure they updated the VC 2013 lib

list of installed packages are attached.

Kindly advise what he is doing wrong.

 

Related