Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

pip install nrfutil==6.1.3 fails on macOS

I'm using macOS 12.3 and Python 3.9.10 from brew.  When I "pip install nrfutil" I get nrfutil-5.2.0.  Trying to run that results in "NameError: name 'xrange' is not defined".  So I see that the latest nrfutil is 6.1.3 and try to install that "pip install nrfutil==6.1.3".  But that fails because:

ERROR: Could not find a version that satisfies the requirement pc_ble_driver_py>=0.16.1 (from nrfutil) (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.16.1

How can I get the latest nrfutil on macOS?

Parents
  • Hello,

    Would you mind trying the python version distributed with the OS, or v3.9.x from python.org instead? The team behind nrfutil release said they only ran python from python.org on their test servers, and that they had seen similar issues with the brew installation in the past.

    Installing nrfutil using python3.7 from macOS:

    $ /usr/bin/python3 -m pip install --user nrfutil

    Best regards,

    Vidar

  • I tried the official Python release with the same result.

  • From python.org and version < 3.10.x? Another option is to use the executable from here https://github.com/NordicSemiconductor/pc-nrfutil/releases 

  • Yes, I tried the python.org version 3.10.3 with the same result.

    (env) denis@Deniss-MacBook-Pro nrf52840-dev-env % python3 --version

    Python 3.10.3

    (env) denis@Deniss-MacBook-Pro nrf52840-dev-env % pip3 install nrfutil==       

    ERROR: Could not find a version that satisfies the requirement nrfutil== (from versions: 0.5.2, 0.5.3, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.5, 1.4.6, 1.4.7, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.5, 1.6.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.5.0, 3.5.1, 4.0.0, 5.0.0, 5.1.0, 5.2.0, 6.0.0a0, 6.0.0a1)

    ERROR: No matching distribution found for nrfutil==

    (env) denis@Deniss-MacBook-Pro nrf52840-dev-env % pip3 install nrfutil==6.0.0a1

    Collecting nrfutil==6.0.0a1

      Using cached nrfutil-6.0.0a1.tar.gz (849 kB)

      Preparing metadata (setup.py) ... done

    Collecting click

      Using cached click-8.0.4-py3-none-any.whl (97 kB)

    Collecting crcmod

      Using cached crcmod-1.7.tar.gz (89 kB)

      Preparing metadata (setup.py) ... done

    Collecting ecdsa

      Using cached ecdsa-0.17.0-py2.py3-none-any.whl (119 kB)

    Collecting intelhex

      Using cached intelhex-2.3.0-py2.py3-none-any.whl (50 kB)

    Collecting libusb1

      Using cached libusb1-3.0.0-py3-none-any.whl (62 kB)

    ERROR: Could not find a version that satisfies the requirement pc_ble_driver_py>=0.13.0a0 (from nrfutil) (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

Reply Children
No Data
Related