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

NRFUTIL has issues unpacking a package.

I am trying to flash the firmware on a device with NRFUTIL. When I run NRFUTIL.exe on a my windows 10 machine I get the error

c:\Users\randy.cole\Documents>nrfutil.exe dfu serial -p COM3 -pkg Driver-V0.3.0.zip
Traceback (most recent call last):
  File "nordicsemi\__main__.py", line 1314, in <module>
  File "click\core.py", line 764, in __call__
  File "click\core.py", line 717, in main
  File "click\core.py", line 1137, in invoke
  File "click\core.py", line 1137, in invoke
  File "click\core.py", line 956, in invoke
  File "click\core.py", line 555, in invoke
  File "nordicsemi\__main__.py", line 1006, in serial
  File "nordicsemi\__main__.py", line 935, in do_serial
  File "nordicsemi\dfu\dfu.py", line 71, in __init__
  File "nordicsemi\dfu\package.py", line 641, in unpack_package
IOError: [Errno 2] No such file or directory: 'c:\\users\\randy~1.col\\appdata\\local\\temp\\nrf_dfu_mx45km\\unpacked_zip\\manifest.json'

This error occurs with both version 5.0.0 and 6.0.1. The 5.0.0 version I used is a standalone exe file that was in one of our git repositories. The 6.0.1 version in straight from using pip install nrfutil. However when either version is run on mac I do not have the error, and when on windows 7 with 5.0.0 there is no error. (We only have 1 windows 7 machine handy and it only had 5.0.0 at the time of testing)

If I watch the temp folder where it is searching for the unpacked zip and run the command I see a _MEIxxxxx folder get created and disappear quickly but that's it.

Parents
  • I went through the python files and put an input pause just before the error so I could see if a folder is created and what is in it. It turns out the folder was created but instead of having the files I would expect to see it had a subfolder that then had the files in it. It turns out my package zip somehow got a subfolder in it and thus when unzipped didn't look right to the program. I didn't generate the zip so I was unaware that having the subfolder would make a difference. Thanks to those who replied.

Reply
  • I went through the python files and put an input pause just before the error so I could see if a folder is created and what is in it. It turns out the folder was created but instead of having the files I would expect to see it had a subfolder that then had the files in it. It turns out my package zip somehow got a subfolder in it and thus when unzipped didn't look right to the program. I didn't generate the zip so I was unaware that having the subfolder would make a difference. Thanks to those who replied.

Children
No Data
Related