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

Can't install nrfutil v6

I have python 3.9 installed. I can downgrade if that is the issue. I'll probably try that while I wait.

If I try and install "pip install nrfutil" it will succeed, but it installs version 5.2.0 of nrfutil. This doesn't work with Python3, so it won't run. If I try and list out the versions of nrfutil, I can see a 6.0.0a0 and 6.0.0a1. If I try and install one of those specifically, I get:

ERROR: Could not find a version that satisfies the requirement pc_ble_driver_py>=0.13.0a0 (from nrfutil==6.0.0a1) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4)
ERROR: No matching distribution found for pc_ble_driver_py>=0.13.0a0 (from nrfutil==6.0.0a1)

So I moved to cloning the source. Trying: pip install -r requirements.txt, I get the same error:

Collecting antlib>=1.1b0
Downloading antlib-1.1b0.post0-py2.py3-none-any.whl (283 kB)
|████████████████████████████████| 283 kB 3.2 MB/s
Requirement already satisfied: click in c:\python39\lib\site-packages (from -r requirements.txt (line 2)) (7.1.2)
Requirement already satisfied: crcmod in c:\python39\lib\site-packages (from -r requirements.txt (line 3)) (1.7)
Requirement already satisfied: ecdsa in c:\python39\lib\site-packages (from -r requirements.txt (line 4)) (0.13.3)
Requirement already satisfied: intelhex in c:\python39\lib\site-packages (from -r requirements.txt (line 5)) (2.3.0)
Requirement already satisfied: libusb1 in c:\python39\lib\site-packages (from -r requirements.txt (line 6)) (1.8)
ERROR: Could not find a version that satisfies the requirement pc_ble_driver_py>=0.14.2 (from -r requirements.txt (line 7)) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4)
ERROR: No matching distribution found for pc_ble_driver_py>=0.14.2 (from -r requirements.txt (line 7))

I can try and downgrade Python to 3.7? and see what happens, but otherwise, I'd love some guidance.

Parents
  • Hello,

    nrfutil v6.1.0 should be available via pip. I use Python 3.8.5, and I can install it using pip (I just checked). 

    Perhaps you need to update pip to fetch new releases?

    Try to run the command:

    python -m pip install --upgrade pip"

    If it still doesn't work, can you please try to uninstall pc-ble-driver-py and reinstall it using:

    pip uninstall pc-ble-driver-py
    
    pip install pc-ble-driver-py

    See if any of that hepls, and let me know if it doesn't.

    BR,

    Edvin

  • pip is updated, I did that first. currently at 20.2.4.

    pip --version
    pip 20.2.4 from c:\python39\lib\site-packages\pip (python 3.9)

    pip uninstall pc-ble-driver.py
    Found existing installation: pc-ble-driver-py 0.11.4
    Uninstalling pc-ble-driver-py-0.11.4:
    Would remove:
    c:\python39\lib\site-packages\pc_ble_driver_py-0.11.4-py3.9.egg-info
    c:\python39\lib\site-packages\pc_ble_driver_py\*
    Proceed (y/n)? y
    Successfully uninstalled pc-ble-driver-py-0.11.4

    pip install pc-ble-driver.py
    Collecting pc-ble-driver.py
    Using cached pc_ble_driver_py-0.11.4.tar.gz (8.0 MB)
    Requirement already satisfied: wrapt in c:\python39\lib\site-packages (from pc-ble-driver.py) (1.12.1)
    Requirement already satisfied: future in c:\python39\lib\site-packages (from pc-ble-driver.py) (0.18.2)
    Using legacy 'setup.py install' for pc-ble-driver.py, since package 'wheel' is not installed.
    Installing collected packages: pc-ble-driver.py
    Running setup.py install for pc-ble-driver.py ... done
    Successfully installed pc-ble-driver.py

    I tried using 'pip cache purge', and install with the '--no-cache-dir' option, but no matter what, I get 0.11.4, not 0.14.2. Seems to be the same issue with pip seeing the newer versions of nrfutil.

    I was able to just download the exe from github and generate the keys I needed. I can try whatever you want at this point, because I already have the exe. Let me know what you would like tried.

  • Hello,

    I checked with our nRF Tool developers, and they confirmed that the reason you can't install nrfutil v6.0.1 using nrfutil is in fact that you are using Python v3.9.

    At this point, there is no build for python 3.9 for pc-ble-driver-py, which is used by nrfutil:

    https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/9a7bbd2dd0687ca92e03e8bb526a29f143429240/azure-pipelines.yml#L66

    If you don't have any problems using the .exe version of nrfutil that is fine, but if you need to install it, you would need to downgrade to python 3.8.

    Best regards,

    Edvin

  • Thanks! Hoping this helps others. I couldn't find anything that lists the versions. The release notes just say 'updated python version'.

Reply Children
No Data
Related