-
Notifications
You must be signed in to change notification settings - Fork 69
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
ValueError: not enough values to unpack (expected 3, got 0) #60
Comments
Can you give me link to your fixes? |
I haven't worked on it for a while |
i have this problem in windows 10, how can it be solved? |
Traceback (most recent call last):l\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_mapgen.py -s ulp_main.sym -o ulp_main exit status 1 |
Here in Sept-2022 this problem also occurred for me when attempting to build any of the example code I've found. Environment:
The steps I took to get here (not sure of the order)...
At that point I was left with the "ValueError: not enough values to unpack" issue. I tracked that down to the generation of the symbol "ulp_main.sym" file performed in esp32ulp_build_recipe.py using nm resulting in extra empty lines. When esp32ulp_mapgen.py attempts to parse the line and split it using space as a delimiter, it doesn't know what to do with the empty lines and errors out. I hacked together a fix for esp32ulp_build_recipe.py using this StackOverflow post as guidance. Original Code
Revised Code
I've successfully compiled and run the readme example, and compiled a handful of the other ulptool examples (haven't tried flashing them yet, but they compile). Hopefully someone finds this helpful :) (edited for formatting) |
ESP32 1.0.4
Latest ulptool
I've fixed some errors on the recipe.py, mostly to do with casting bytes to strings
Now I get
`python C:\Users\Papadoma\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_mapgen.py -s ulp_main.sym -o ulp_main
Traceback (most recent call last):
File "C:\Users\Papadoma\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_mapgen.py", line 54, in
File "C:\Users\Papadoma\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_mapgen.py", line 49, in main
File "C:\Users\Papadoma\AppData\Local\Arduino15\packages\esp32\tools\ulptool\src/esp32ulp_mapgen.py", line 22, in gen_ld_h_from_sym
ValueError: not enough values to unpack (expected 3, got 0)`
The text was updated successfully, but these errors were encountered: