-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax error in gen_esp32part.py of v2.0.4 #6957
Comments
@me-no-dev - It seems related to MacOS + update Core Version from GitHub. |
@P-R-O-C-H-Y Can you please test this? |
The |
@cxkkxrr Can you call |
@P-R-O-C-H-Y Python 3.10.5 |
This should run in Python 3.5+ Using Windows 11 with Python 3.9.13 and Arduino Core 2.0.4 this script runs fine. |
@cxkkxrr |
Arduino:1.8.19 (Mac OS X), 开发板:"ESP32C3 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi), DIO, 80MHz, 4MB (32Mb), 921600, None" /private/var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/AppTranslocation/C4D639A7-F4FD-45AD-A629-5B6764D161FA/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/AppTranslocation/C4D639A7-F4FD-45AD-A629-5B6764D161FA/d/Arduino.app/Contents/Java/hardware -hardware /Users/xxx/Library/Arduino15/packages -tools /private/var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/AppTranslocation/C4D639A7-F4FD-45AD-A629-5B6764D161FA/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/AppTranslocation/C4D639A7-F4FD-45AD-A629-5B6764D161FA/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/xxx/Library/Arduino15/packages -built-in-libraries /private/var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/AppTranslocation/C4D639A7-F4FD-45AD-A629-5B6764D161FA/d/Arduino.app/Contents/Java/libraries -libraries /Users/xxx/Documents/Arduino/libraries -fqbn=esp32:esp32:esp32c3:CDCOnBoot=default,PartitionScheme=default,CPUFreq=160,FlashMode=dio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -ide-version=10819 -build-path /var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/arduino_build_453998 -warnings=none -build-cache /var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/arduino_cache_565538 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32s2-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.esptool_py.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/esptool_py/3.3.0 -prefs=runtime.tools.esptool_py-3.3.0.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/esptool_py/3.3.0 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.mklittlefs.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.mkspiffs.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/xxx/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -verbose /var/folders/5g/lsvzl35j6c9c4xd3vtnth_zw0000gp/T/untitled1620355145.tmp/sketch_jul13b/sketch_jul13b.ino |
Updated Python to 3.10.5 and script works. |
As @SuGlider mentioned, the syntax should work from Python 3.5+
Can you try to run the Python script directly from terminal? Maybe its Arduino IDE related. |
@cxkkxrr Hello, did you take a look? Any news? |
Closing the issue due to no answer. Feel free to reopen if is the issue still actual. |
Board
ESP32 Dev Module
Device Description
No
Hardware Configuration
No
Version
latest master (checkout manually)
IDE Name
Arduino Ide
Operating System
macOS
Flash frequency
4mb
PSRAM enabled
no
Upload speed
115200
Description
gen_esp32part.py SyntaxError: invalid syntax
[line 254]
def verify_size_fits(self, flash_size_bytes: int) -> None:
It's normal for me to modify it like this
def verify_size_fits(self, flash_size_bytes):
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: