Hi,
The python nrfutil package doesn't seem to be actively maintained.
Latest updates don't support python version > 3.9 which are now default versions for latest Linux distributions.
Also, the protobuf is not fixed in the pip package which lead to runtime issues with recent protobuf upgrades in pip 3.9 versions
cd _build/app_release;nrfutil settings generate \ --family NRF52 \ --application ../app_release.hex \ --application-version 0 \ --softdevice ../../../../../../../sdk/components/softdevice/s140/hex/s140_nrf52_7.0.1_softdevice.hex \ --bootloader-version 1 \ --bl-settings-version 2 \ ../app_release_bl_settings.hex;cd - Traceback (most recent call last): File "/root/.local/bin/nrfutil", line 5, in <module> from nordicsemi.__main__ import cli File "/root/.local/lib/python3.9/site-packages/nordicsemi/__main__.py", line 49, in <module> from nordicsemi.dfu.bl_dfu_sett import BLDFUSettings File "/root/.local/lib/python3.9/site-packages/nordicsemi/dfu/bl_dfu_sett.py", line 51, in <module> from nordicsemi.dfu.package import Package File "/root/.local/lib/python3.9/site-packages/nordicsemi/dfu/package.py", line 53, in <module> from nordicsemi.dfu.init_packet_pb import InitPacketPB, DFUType, CommandTypes, ValidationTypes, SigningTypes, HashTypes File "/root/.local/lib/python3.9/site-packages/nordicsemi/dfu/init_packet_pb.py", line 38, in <module> from . import dfu_cc_pb2 as pb File "/root/.local/lib/python3.9/site-packages/nordicsemi/dfu/dfu_cc_pb2.py", line 32, in <module> _descriptor.EnumValueDescriptor( File "/root/.local/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 755, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
It would be good to maintain this package actively.
Thanks,
Sebastien