nRF54L15 protobuf error

Hello, I'm running an example of channel sounding using nRF54L15.

The build is fine, but the following error occurs during flash.

Python is using 3.12.4 version.
As you can see, we're using protobuf version 3.19.6 as well. (The same error occurred in 3.20.0 version)

But I keep getting protobuf errors, how do I fix it?

-------------------------------------------------------------------------

I solved this problem, but another problem occurred.

ModuleNotFoundError: No module named 'constants'

Parents
  • Hello,

    Sorry for the late reply. I was assigned your ticket, but was out of office yesterday. 

    I solved this problem, but another problem occurred.

    ModuleNotFoundError: No module named 'constants'

    Is there any way I can reproduce this issue? If so, can you please give some instructions on how to do it? If it is at all related to your initial issue, it seems like it is a toolchain issue. From the build log (probably from when you are flashing) it seems like it tries to use your default python installation, instead of the python version provided in the toolchain. Did you install a toolchain using VS Code? If so, which one do you use?

    Best regards,
    Edvin

  • Hello, thank you for your answer.

    Initially, I encountered a version-related error with protobuf, so I ran the following command:
    C:\ncs\toolchains\0b393f9e1b\opt\bin\python.exe -m pip install protobuf==3.20.3
    After that, I started getting a 'constants' error.

    ModuleNotFoundError: No module named 'constants'

    I am using SDK v3.0.0, which I downloaded via nRF Connect for Desktop. and I'm using Python 3.12

    I'll be waiting for your reply.

    +

    I referred to the following post on Nordic DevZone:
    RE: nrfutil ModuleNotFoundError: No module named 'constants' 

    I did some research and found that issues occur with Python 3.10 and above because some outdated packages reference attributes like collections.Hashable, which no longer exist.
    Does this mean that SDK v3.0.0 cannot run on Python 3.12?

  • Are you trying to build a sample of ours? 

    kim_mj said:
    Does this mean that SDK v3.0.0 cannot run on Python 3.12?

    If so, are you using the toolchain that comes with NCS v3.0.0?

Reply Children
No Data
Related