loboris / MicroPython_ESP32_psRAM_LoBo

MicroPython for ESP32 with psRAM support
Other
831 stars 344 forks source link

Build Requiring Python 2.7 #318

Open GraphicHealer opened 4 years ago

GraphicHealer commented 4 years ago

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 commented 4 years ago

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.