微處理器 - Nordic Semiconductor nRF52840 (ProMicro NRF52840) - 解決tools/uf2conv/uf2_wrap.py", line 5問題



問題如下:

  File "~/.arduino15/packages/Seeeduino/hardware/nrf52/1.1.12/tools/uf2conv/uf2_wrap.py", line 5
    def main(uf2_file: str, board_id: str, build_path: str, output_path: str, project_name: str):
                     ^
SyntaxError: invalid syntax
exit status 1

Compilation error: exit status 1

解法如下:

$ sudo apt install python3
$ sudo ln -sf /usr/bin/python3 /usr/bin/python
$ arduino-ide_2.3.2_Linux_64bit.AppImage