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

NRFUtil Python3 Support 2019?

My company has developed an application in Python3. We need to integrate the pc-nrfutil scripts (https://github.com/NordicSemiconductor/pc-nrfutil) with our application.

I know that Python3 development is underway (https://devzone.nordicsemi.com/f/nordic-q-a/28554/nrfutil-python3-support), but believe that a Python3 codebase has not been released yet. 

I was able to install the “nrfutil” module using pip3 which gives me the impression that the primary holdback is now the pc-ble-driver.py file (https://github.com/NordicSemiconductor/pc-nrfutil/issues/158).

Is the current pc-nrfutil version in fact Python3 compatible? If not, are there any work-arounds we can implement until the Python3 compatible version is released.

Thanks in advance

Parents
  • Hi.

    It really depends on what you want to use nrfutil to.

    If you require BLE DFU, it will not work since py3 is not yet supported in pc-ble-driver.py, it will however soon be released (I cannot comment more details about this, read more here).

    If you dont require BLE DFU, I think that you should be able to make it work by removing imports which has to do with the pc-ble-driver.py.

    I hope this answer is satisfactory.

    Best regards,

    Andreas

Reply
  • Hi.

    It really depends on what you want to use nrfutil to.

    If you require BLE DFU, it will not work since py3 is not yet supported in pc-ble-driver.py, it will however soon be released (I cannot comment more details about this, read more here).

    If you dont require BLE DFU, I think that you should be able to make it work by removing imports which has to do with the pc-ble-driver.py.

    I hope this answer is satisfactory.

    Best regards,

    Andreas

Children
Related