Arduino Portable IDE with ESP32 Not Working
How can I fix it?
I'm using the Espressif ESP32 -wroom-32D Dev Kit V4 from Mouser Electronics.
On a Linux Mint v20 machine.
Here is what I did, what happened & the 3 questions...
1 - Installed Arduino Portable Verson
Per these instructions:
How to create and use a portable version of the Arduino Software (IDE)
from: https://www.arduino.cc/en/Guide/PortableIDE
I put the extracted Arduino files into a folder on the desktop so the path was...
Home/username/desktop/Arduino/
I then created a new folder named "portable" in that Arduino folder... per the instructions
2 - Installed theESP32 to the Arduino IDE
Per these instructions:
Installing the ESP32 Board in Arduino IDE (Windows, Mac OS X, Linux)
from: https://randomnerdtutorials.com/install ... tructions/
3 - Tried to run the "testcode" in "2" above
But I got this... "Error Message" ...
Arduino: 1.8.13 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Multiple libraries were found for "WiFi.h"
Used: /home/username/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/WiFi
Not used: /home/username/Desktop/arduino-1.8.13/libraries/WiFi
exec: "python": executable file not found in $PATH
Error compiling for board ESP32 Dev Module.
Question A:
After running the test program I had no files or folders created in...
Home/Me/Desktop/Arduino/Portable
Even though "1" above said...
"the portable folder will be populated by the Arduino Software (IDE) as needed by libraries, sketches and cores."
Question B:
The "test code" in "2" above is in C or C++ not Python... so why the Python error"
Question C:
Note in the Error Message that WiFi.h was used from...
/home/username/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/WiFi
But I didn't create that path and according to"1" above everything should be in the Arduino Portable Fodler at...
Home/username/desktop/Arduino/
or in...
Home/username/desktop/Arduino/portable/
So... How can I fix this?
I really need to get this working.
Thanks for any help.
Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Not sure, never bothered with the "portable(tm)" installs of the IDE. Though if I'm reading it right, it only matters for sketches you create (not "examples" from the libraries)
Looks like it's the IDE itself is throwing that error (or some part of the esp library/wrapper/plugin)
the "portable" directory is for the working directory of the IDE. If I'm reading it right, it's not going to effect core libraries installed into your $HOME/.arduino directories (such as esp32 libs)
Re: Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Python's default implementation is CPython, it uses C "under the hood".
What do you get on the command line when you type
If it says "command not found" then you need to make a link from the python command to the python3 command. You can install
These installers/builders usually do not take into account that Ubuntu 20.04 ditched Python2 and the only command is python3.
This is probably because by default Ubuntu 20.04 comes with the python3 command instead.exec: "python": executable file not found in $PATH
What do you get on the command line when you type
Code: Select all
python
Code: Select all
sudo apt install python-is-python3
Re: Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Searched "Arduino Portable IDE with ESP32", this is the first hit: https://www.instructables.com/Portable- ... E-v165-fo/
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
Re: Help Installing Arduino Portable IDE with Espressif for ESP32 dev
OK, I ran the commmand line instruction below to tell Mint 20 that it should use python3 whenever it is asked to run python...
And I was able to launch the python interpreter and have it print "Hello World" to the display...
so we are good there...
But, I still get an error message (see below) when I ask the Arduino IDE to compile and execute the test code...
(test code shown at the end of this post)
So my question now is what next?
I can delete the Arduino IDE portable folder but I don't think that will delete all the Arduino & ESP32 stuff on the machine.
So how can I get all Arduino & ESP32 stuff off my machine and start over... using the link you provided...
https://www.instructables.com/Portable- ... E-v165-fo/
Or what?
Thanks for the help!
===== Error message below =====
===== Test Code below =====
Code: Select all
sudo apt install python-is-python3
so we are good there...
But, I still get an error message (see below) when I ask the Arduino IDE to compile and execute the test code...
(test code shown at the end of this post)
So my question now is what next?
I can delete the Arduino IDE portable folder but I don't think that will delete all the Arduino & ESP32 stuff on the machine.
So how can I get all Arduino & ESP32 stuff off my machine and start over... using the link you provided...
https://www.instructables.com/Portable- ... E-v165-fo/
Or what?
Thanks for the help!
===== Error message below =====
Code: Select all
Traceback (most recent call last):
File "/home/username/.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 38, in <module>
Multiple libraries were found for "WiFi.h"
import serial
ModuleNotFoundError: No module named 'serial'
Used: /home/username/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/WiFi
Not used: /home/username/Desktop/arduino-1.8.13/libraries/WiFi
exit status 1
Error compiling for board ESP32 Dev Module.
Code: Select all
#include "WiFi.h"
void setup()
{
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup done");
}
void loop()
{
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0) {
Serial.println("no networks found");
} else {
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
Re: Help Installing Arduino Portable IDE with Espressif for ESP32 dev
Try
and then try again.
Code: Select all
pip install serial