Hello,
I just installed nrfutil with
pip3 install nrfutil
All the requirements are met:
andreas@notebook-fh:~/github/pc-nrfutil$ pip3 install nrfutil
Requirement already satisfied: nrfutil in /home/andreas/.local/lib/python3.8/site-packages (6.1.0)
Requirement already satisfied: crcmod in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (1.7)
Requirement already satisfied: piccata in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (2.0.1)
Requirement already satisfied: pyyaml in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (4.2b1)
Requirement already satisfied: tqdm in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (4.60.0)
Requirement already satisfied: intelhex in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (2.3.0)
Requirement already satisfied: pc-ble-driver-py>=0.14.2 in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (0.15.0)
Requirement already satisfied: libusb1 in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (1.9.2)
Requirement already satisfied: protobuf in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (3.5.2.post1)
Requirement already satisfied: ecdsa in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (0.16.1)
Requirement already satisfied: pyserial in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (3.4)
Requirement already satisfied: pyspinel>=1.0.0a3 in /home/andreas/.local/lib/python3.8/site-packages (from nrfutil) (1.0.3)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from nrfutil) (7.0)
Requirement already satisfied: wrapt in /home/andreas/.local/lib/python3.8/site-packages (from pc-ble-driver-py>=0.14.2->nrfutil) (1.12.1)
Requirement already satisfied: six>=1.9 in /home/andreas/.local/lib/python3.8/site-packages (from protobuf->nrfutil) (1.12.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf->nrfutil) (45.2.0)
After running the tool I get an error:
andreas@notebook-fh:~/github/pc-nrfutil$ nrfutil
Traceback (most recent call last):
File "/home/andreas/.local/bin/nrfutil", line 5, in <module>
from nordicsemi.__main__ import cli
File "/home/andreas/.local/lib/python3.8/site-packages/nordicsemi/__main__.py", line 49, in <module>
from nordicsemi.dfu.bl_dfu_sett import BLDFUSettings
File "/home/andreas/.local/lib/python3.8/site-packages/nordicsemi/dfu/bl_dfu_sett.py", line 51, in <module>
from nordicsemi.dfu.package import Package
File "/home/andreas/.local/lib/python3.8/site-packages/nordicsemi/dfu/package.py", line 53, in <module>
from nordicsemi.dfu.init_packet_pb import InitPacketPB, DFUType, CommandTypes, ValidationTypes, SigningTypes, HashTypes
File "/home/andreas/.local/lib/python3.8/site-packages/nordicsemi/dfu/init_packet_pb.py", line 38, in <module>
from . import dfu_cc_pb2 as pb
File "/home/andreas/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu_cc_pb2.py", line 18, in <module>
DESCRIPTOR = _descriptor.FileDescriptor(
TypeError: __init__() got an unexpected keyword argument 'serialized_options'
It would be great if could get some hints what is going wrong. I would prefer spending my time with C/C++development
and not with python debugging for some tools ...
BR, Andreas