Error when trying to use nrfutil pkg generate

while trying to package my hex file from zephyr  and I have gotten the following error 

nrfutil pkg generate --hw-version 52 --sd-req=0x00 \                                        

        --application build/zephyr/zephyr.hex \

        --application-version 1 blinky.zip

|===============================================================|

|##      ##    ###    ########  ##    ## #### ##    ##  ######  |

|##  ##  ##   ## ##   ##     ## ###   ##  ##  ###   ## ##    ## |

|##  ##  ##  ##   ##  ##     ## ####  ##  ##  ####  ## ##       |

|##  ##  ## ##     ## ########  ## ## ##  ##  ## ## ## ##   ####|

|##  ##  ## ######### ##   ##   ##  ####  ##  ##  #### ##    ## |

|##  ##  ## ##     ## ##    ##  ##   ###  ##  ##   ### ##    ## |

| ###  ###  ##     ## ##     ## ##    ## #### ##    ##  ######  |

|===============================================================|

|You are not providing a signature key, which means the DFU     |

|files will not be signed, and are vulnerable to tampering.     |

|This is only compatible with a signature-less bootloader and is|

|not suitable for production environments.                      |

|===============================================================|

Traceback (most recent call last):

  File "/opt/homebrew/bin/nrfutil", line 8, in <module>

    sys.exit(cli())

             ^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 829, in __call__

    return self.main(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 782, in main

    rv = self.invoke(ctx)

         ^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 1066, in invoke

    return ctx.invoke(self.callback, **ctx.params)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/click/core.py", line 610, in invoke

    return callback(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/homebrew/lib/python3.12/site-packages/nordicsemi/__main__.py", line 867, in generate

    package.generate_package(zipfile_path)

  File "/opt/homebrew/lib/python3.12/site-packages/nordicsemi/dfu/package.py", line 403, in generate_package

    for key, firmware_data in self.firmwares_data.iteritems():

                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'dict' object has no attribute 'iteritems'

Parents Reply Children
Related