in Windows, in NCS v2.9.0, compile error log "UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 44:"

Hi, 

    Install NCS SDK v.2.9.0 in MAC by tool manager, compile SDK sample code by VSCode, OK

    However, install NCS SDK v2.9.0 in Windows by tool manager, compile SDK sample code with error: 

   

However, the NCS v2.8.0 works well in the same windows PC environment.

Could you help to solve the ""UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 44:" issues,  thanks!

Best Regards

Frank

Parents
  • Hi, 

    I have the same error, and use the "west boards" command can reproduce the problem. I guess it may just happen in double-byte Windows environment.

  • Hi,

    In the file scripts/list_boards.py,

    Please change:
    with board_yml.open('r') as f:
    to:
    with board_yml.open('r', encoding='utf-8') as f:

    This change resolves the build error on my side.

    Leo

  • Hi Chen,

    It should be the solution, zephyr do the same modification in the github repo.

  • Hi, 

        Thank you guys, it also works at my side.  

    Best regards

    Frank 

Reply Children
No Data