6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

macOS Monterey 12.3でArduinoが動かなくなった!

Last updated at Posted at 2022-03-20

最近MacをアップデートしmacOS Monterey 12.3にしたところ、Arduinoのコンパイルが通らなくなった。

こんなエラーが出ていた。

arduino "python": executable file not found in $PATH

以下のLibraryを使用していた。

#include <WiFi.h>
#include <ESP32Time.h>

噂ではESP32を使用している場合このエラーが出ているとか

どうすればいいか?

~/Library/Arduino15/packages/esp32/hardware/esp32/インストールされているバージョン/platform.txt内の
「python」と記載されている全ての箇所を「python3」に書き換えるだけ

tools.esptool_py.network_cmd=python "{runtime.platform.path}/tools/espota.py"

tools.esptool_py.network_cmd=python3 "{runtime.platform.path}/tools/espota.py"

なので、自分はテキストエディタの置換機能で「python」から「python3」に変えただけでコンパイルが通った!

どうやら、macOS Monterey 12.3ではmacOSからPython 2.7のランタイムが削除されるらしい。

日本語での解決方法がなかったので、メモがてら残しておく。

6
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?