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

nrfutil ModuleNotFoundError: No module named 'constants'

Hi,

I have installed nrfutil on my Windows 10 computer and get the following error when running it:

C:\Users\00315055>nrfutil --help
Traceback (most recent call last):
File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python37\Scripts\nrfutil.exe\__main__.py", line 5, in <module>
File "c:\python37\lib\site-packages\nordicsemi\__main__.py", line 53, in <module>
from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial
File "c:\python37\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 52, in <module>
from nordicsemi.lister.device_lister import DeviceLister
File "c:\python37\lib\site-packages\nordicsemi\lister\device_lister.py", line 39, in <module>
from nordicsemi.lister.windows.lister_win32 import Win32Lister
File "c:\python37\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'

I have the following Python version:

C:\Users\00315055>python --version
Python 3.7.4

BR / Björn

Parents Reply Children
Related