EK-RA6M3G python error generating signed file. Examples "ra_mcuboot_ra6m3_swap_testmode" and primary and secondary projects

Hello

I want to design a boot application for my MCU RA6 controller.

I can generate project and build it correctly the boot project, but when i build the primary project it's built OK but then

when generates the signed file it cannot generate it and i have some error messages. These are the messages:

15:51:48 **** Boot Image Build of configuration Debug for project app_ra6m3_primary ****
python "C:\\Proyectos\\MCUboot_Encrypted_Initial_Projects\\ra_mcuboot_ra6m3_swap_testmode/ra/fsp/src/rm_mcuboot_port/rm_mcuboot_port_sign.py" sign --header-size 0x200 --align 128 --max-align 128 --slot-size 0x20000 --max-sectors 4 --pad --pad-header app_ra6m3_primary.elf app_ra6m3_primary.bin.signed
C:\Proyectos\MCUboot_Encrypted_Initial_Projects\ra_mcuboot_ra6m3_swap_testmode\ra\fsp\src\rm_mcuboot_port\rm_mcuboot_port_sign.py:19: DeprecationWarning: pkg_resources is deprecated as an API. See setuptools.pypa.io/.../pkg_resources.html
  import pkg_resources
Traceback (most recent call last):
ERROR: Required python packages are missing. Run the following command to install:
  File "C:\Proyectos\MCUboot_Encrypted_Initial_Projects\ra_mcuboot_ra6m3_swap_testmode\ra\fsp\src\rm_mcuboot_port\rm_mcuboot_port_sign.py", line 20, in <module>
pip install -r ra/mcu-tools/MCUboot/scripts/requirements.txt
    pkg_resources.require(mcuboot_requirements)
  File "C:\Users\TL\.local\lib\python3.10-mingw_x86_64\site-packages\pkg_resources\__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "C:\Users\TL\.local\lib\python3.10-mingw_x86_64\site-packages\pkg_resources\__init__.py", line 829, in resolve
    dist = self._resolve_dist(
  File "C:\Users\TL\.local\lib\python3.10-mingw_x86_64\site-packages\pkg_resources\__init__.py", line 870, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cbor2' distribution was not found and is required by the application
15:51:49 Build finished

Can you please help me to resolve this problem? it seems that some python resources are outdated.

Thanks and best regards.

Luis Svensson

Parents Reply Children
No Data