Compiling sketch python option error
Posted: Fri Oct 22, 2021 8:00 pm
Hi everyone,
I am new to the esp8266 but have played with pic's and tiny85's before. Looking at replacing some Raspberry Pi's pushing data to influxdb with some WeMos D1 MINI PRO clone's but cannot compile and upload any sketch's. I keep getting a python option error. I can conform that the error "-I" is not an option after doing a man on python. It looks like the correct option is "-i" so lowercase not uppercase. I even get the error on a blank sketch. Has anyone come across this before as it only happens with the esp8266 boards.
I have installed the latest library for the ESP8266 from:
https://arduino.esp8266.com/stable/pack ... index.json
Below is the last lines showing the error:
===================
Compiling sketch...
/home/wayne/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /home/wayne/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/signing.py --mode header --publickey /tmp/untitled862541517.tmp/sketch_oct23a/public.key --out /tmp/arduino_build_652420/core/Updater_Signing.h
Unknown option: -I
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
exit status 2
/home/wayne/Downloads/Arduino/arduino-1.8.16/arduino-builder returned 2
Error compiling for board LOLIN(WEMOS) D1 mini Pro.
==========================
Thanks
I am new to the esp8266 but have played with pic's and tiny85's before. Looking at replacing some Raspberry Pi's pushing data to influxdb with some WeMos D1 MINI PRO clone's but cannot compile and upload any sketch's. I keep getting a python option error. I can conform that the error "-I" is not an option after doing a man on python. It looks like the correct option is "-i" so lowercase not uppercase. I even get the error on a blank sketch. Has anyone come across this before as it only happens with the esp8266 boards.
I have installed the latest library for the ESP8266 from:
https://arduino.esp8266.com/stable/pack ... index.json
Below is the last lines showing the error:
===================
Compiling sketch...
/home/wayne/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /home/wayne/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/signing.py --mode header --publickey /tmp/untitled862541517.tmp/sketch_oct23a/public.key --out /tmp/arduino_build_652420/core/Updater_Signing.h
Unknown option: -I
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
exit status 2
/home/wayne/Downloads/Arduino/arduino-1.8.16/arduino-builder returned 2
Error compiling for board LOLIN(WEMOS) D1 mini Pro.
==========================
Thanks