Arduino ESP32 compiler (which has worked before a system crash, which required complete reload of Ubuntu, Arduino, etc) now gives the error:
python /home/jj/.arduino15/packages/esp32/tools/esptool_py/2.6.0/esptool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o /tmp/arduino_build_242283/sketch_apr15a.ino.bin /tmp/arduino_build_242283/sketch_apr15a.ino.elf Traceback (most recent call last): File "/home/jj/.arduino15/packages/esp32/tools/esptool_py/2.6.0/esptool.py", line 35, in <module> import serial.tools.list_ports as list_ports ImportError: No module named serial.tools.list_ports exit status 1 Error compiling for board ESP32 Dev Module.
Have reloaded Arduino and the ESP32 library, with the same results. Any help, thanks.
- Which operating system are you using?
- What’s your Arduino IDE version?
- What’s the ESP32 board add-one version that you installed?
- When does that error happens? When you try to upload a new sketch? Did you select the right ESP COM Port in the Tools menu?
Using Ubuntu16.04, Arduino 1.8.8, with ESP dev module board selection. Initially it all worked fine. Error happens at the end of compile (linking). Digging around I found a bug report that has been unresolved for some time citing a conflict between a module named “serial” and “pyserial”.The proposed solutions did not work however.
Whole system crashed yesterday and I reloaded from scratch (thankfully backed up). Using just the default 16.04 installation, I loaded Arduino 1.8.9 plus the esp32 libraries and all worked fine (did have to mknod a /dev/ttyUSB0 port and add myself to the dialout group). After reinstalling most of the saved backup the problem occurred again, so I’m guessing that something I reinstalled (copied files) caused the issue.
Tried using a QEMU-KVM for win7 and it worked ok on one board, but not another, and that one refused to install a driver, so I have ordered a couple of DoIt boards so hopefully they will also work. The working board accepted the BLE code and seems to be talking to my phone well. (Been doing embedded since the 8080, and your books are the greatest resource I’ve come across!)
Thanks for your help.
Hello again! Thank you for providing all the details, but to be honest I’m not sure what’s missing.
As, you said it was working and after the backup it failed again. There must be some conflicting files that are causing these issues.
Are you using a Virtual Box? Or do you have Ubuntu installed in your computer?
What was the message that you saw when it refused to install the drivers? Was it a security concern?
Thank you so much for your kind words and I’m glad you found the resources helpful!
Finally!! … upgraded to ubuntu 18.04, then loaded pyserial.py via “pip install pyserial” which worked this time! Don’t know (or care) why I had so much trouble before.
RE: question above, using QEMU/KVM on ubuntu 18.04 as the VM, and win7 guest, all of which works fine, so now I can which environment to work in.
Thanks for your responses.