-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup instructions should specify nrfutil version #588
Comments
The pip version of
So even if we fix it for 3.11, the tool will stop working soon. Instead, we will have to send users here to download the new tool. I'd say we require Python 3.10 for DFU for now, and wait for the new nrfutil to be available on pip. I'll keep this open to track the problem. |
The version of However, in addition to shelling out to Lines 694 to 697 in f2496a8
That bit of code looks like it's just doing a USB device listing, which could be done with That should unblock supporting newer versions of Python, modulo |
I agree the new tool is different. This is what we needed the old tool for:
Am I right that this can't be done through libusb? To clarify, if you want to use DFU at the moment, you need to
I haven't seen the new nrfutil available on pip, and I don't like sending users to a website to download something manually. |
You'd need the (new) tool to do the DFU step; it may be possible to re-implement it, but it is probably not worth the hassle. The main Python-side problem is the |
Partial fix under review, the pip dependency is gone. Now you still need the nrfutil binary in version 6. |
I managed to get the deploy.py running with the 7.7.0 binary from Nordic and python 3.11 on OSX: What I had to change was that the Nordic binary wants the version option like this:
and then gives a very detailed multi-line version info with first line So for quick testing:
and further down:
Ugly hack so I won't PR but that was it, script ran through and I managed to deploy to the nRF52840 dongle. |
Another temporary workaround that I used to flash a
Then proceed according to the installation guide. I still have an issue with configuring the device with an attestation certificate, but at least the dongle can then be used as a FIDO2 key. |
Thanks for contributing your workarounds. Whats the attestation certificate issue you run into? |
Expected Behavior
Following setup instructions installs an appropriate version of
nrfutil
for OpenSK.Actual Behavior
Running
pip install nrfutil
on a system with Python 3.11 results in./deploy.py
saying:Installing
nrfutil==6.1.7
shows the cause: the package refuses to run on Python > 3.10, butnrfutil==5.2.0
is the newest version which doesn't block Python versions.While this is an error in
nrfutil
's manifest, OpenSK's setup instructions should select a compatible version ofnrfutil
using appropriate version selectors.Steps to Reproduce the Problem
./setup.sh
pip install nrfutil
./deploy.py --board nrf52840_dongle_dfu --opensk --programmer nordicdfu
Specifications
The text was updated successfully, but these errors were encountered: