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

Running error of nrfutil 5.2 from source code

Hi,

I try to run nrfutil from source code but it fails.

I clone the master branch of nrfutil (v5.2) from github, and run it by this command: py -2 .\nordicsemi\__main__.py dfu ble -ic NRF52 -p COM29 -pkg .\dfu_pkg.zip

Then it shows an error as below:

Traceback (most recent call last):
File ".\nordicsemi\__main__.py", line 52, in <module>
from nordicsemi.dfu.dfu_transport import DfuEvent, TRANSPORT_LOGGING_LEVEL
ImportError: cannot import name TRANSPORT_LOGGING_LEVEL

I have already installed required modules by 'pip2 install -r requirements.txt' command in advance.

My environment is: Windows 10, Python 2.7.16. The Python 2/3 environment on the machine is all right.

Could you help me to make it run?

Parents Reply Children
No Data
Related