m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.21k stars 429 forks source link

Error occuered when compiling dc motor module sample ino #265

Closed nisshan-x closed 2 years ago

nisshan-x commented 2 years ago

Symptom

I downloaded M5Stack/examples/Modules/LEGO_PLUS/LEGO_PLUS.ino in Arduino IDE and verified it, but error happened.

error message

Multiple libraries were found for "SD.h"
 Used: /home/nishi/.arduino15/packages/esp32/hardware/esp32/2.0.0/libraries/SD
 Not used: /home/nishi/Downloads/arduino-1.8.16/libraries/SD
Multiple libraries were found for "WiFiClient.h"
 Used: /home/nishi/.arduino15/packages/esp32/hardware/esp32/2.0.0/libraries/WiFi
 Not used: /home/nishi/Downloads/arduino-1.8.16/libraries/WiFi
exec: "python": executable file not found in $PATH
Error compiling for board M5Stack-FIRE.

Environment

Source code

M5Stack/examples/Modules/LEGO_PLUS/LEGO_PLUS.ino https://github.com/m5stack/M5Stack/blob/master/examples/Modules/LEGO_PLUS/LEGO_PLUS.ino

Additional information

 no protocol: 
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: 
    at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$4(LibraryManagerUI.java:250)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.MalformedURLException: no protocol: 
    at java.net.URL.<init>(URL.java:593)
    at java.net.URL.<init>(URL.java:490)
    at java.net.URL.<init>(URL.java:439)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:64)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:60)
    at cc.arduino.contributions.libraries.LibraryInstaller.performInstall(LibraryInstaller.java:155)
    at cc.arduino.contributions.libraries.LibraryInstaller.install(LibraryInstaller.java:125)
    at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onInstallPressed$4(LibraryManagerUI.java:240)
    ... 1 more
nisshan-x commented 2 years ago

Sorry, I forgot to install python3 to my new environment. I installed python3, then compiling the code finished without error. I'd like to close this issue. Thanks.