MicroPython_ESP32_psRAM_LoBo icon indicating copy to clipboard operation
MicroPython_ESP32_psRAM_LoBo copied to clipboard

Build Requiring Python 2.7

Open GraphicHealer opened this issue 4 years ago • 1 comments

I still dont understand why, but the pyserial for python 2.7 apparently works differently than 3, because I get errors concerning pyserial with only python 3 installed (ex. Ubuntu 20.04).

Specifically "ImportError: No module named serial.tools.list_ports"

I looked it up, and apparently according to this post: https://github.com/espressif/esptool/issues/379#issuecomment-441406397

python 2.7 is what fixes this issue. I dont know if this is a siple fix, or requires an overhaul, but for now, I dont think we can compile this on ubuntu v20 or higher. Stick to v18.

GraphicHealer avatar Jun 05 '20 03:06 GraphicHealer

Just confirmed. Switched to Ubuntu 18.04 with python 2.7 installed, the build process ran without a hitch.

edit: Cant flash to make sure. WSL2 doesn't support USB devices as of now.

GraphicHealer avatar Jun 05 '20 03:06 GraphicHealer