04/24(金) VSCode PlatformIOエラー

PlatformIOで以下のエラー(これがないと困る)
C:\Users\user01\.platformio\.cache\tmp\get-platformio-1.2.2.py を確認すると、肝心な部分がBASE64で符号化してあり、内部のスクリプト実態は「pioinstaller.zip」ファイルで、展開に失敗している模様というか自分のところでは「click」オブジェクトでエラーとなっていた。もう失念したけど、VSCode側のエラーでたしか「python3.9以上が必要」的なエラー内容もあったけど、バンドル版は3.11で自分の環境は3.13なので問題なく、切り分けのためにいったん「C:\Users\user01.platformio」をバックアップして、プラグインをアンインストールし、PCを再起動し、もう一度、インストール(同様のエラーがでるがファイルが少なかったので)、削除、再度元のフォルダにもどして立ち上げるとうく起動しました。
(上記手順は get-platformio-1.2.2.py から pioinstaller.zip 書き出させるために コードを書き換えて適用させてる一連の手順中に挙動がかわったので原因は不明です。)

 エラーメッセージ 
 Error: Traceback (most recent call last):
  File "C:\Users\user01\.platformio\.cache\tmp\get-platformio-1.2.2.py", line 71, in <module>
    main()
  File "C:\Users\user01\.platformio\.cache\tmp\get-platformio-1.2.2.py", line 63, in main
    bootstrap()
  File "C:\Users\user01\.platformio\.cache\tmp\get-platformio-1.2.2.py", line 49, in bootstrap
    pioinstaller.__main__.main()
  File "C:\Users\user01\.platformio\.cache\tmp\.piocore-installer-8o9hu1qs\tmpgzpmvknw\pioinstaller.zip\pioinstaller\__main__.py", line 133, in main
  File "C:\Users\user01\.platformio\.cache\tmp\.piocore-installer-8o9hu1qs\tmpgzpmvknw\pioinstaller.zip\click\core.py", line 1128, in __call__
  File "C:\Users\u...
  

作業日報

  • Zabbixにホスト事に入れていた設定をテンプレート化して用途ごとに分離「基本情報」と「コンテナ分離」・テスト
  • PltformIOでたちあがらない、更新プログラムをでデバッグしてたらいつの間にかなおった。

🤖AI相談

  • エラー内容の解析と、デバッグ用のコードを作成