Skip to content
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

ESP-IDF compilation fails on Mac due to pyparsing version #561

Closed
maxgerhardt opened this issue Jun 13, 2021 · 1 comment
Closed

ESP-IDF compilation fails on Mac due to pyparsing version #561

maxgerhardt opened this issue Jun 13, 2021 · 1 comment

Comments

@maxgerhardt
Copy link
Contributor

As reported per community topic.

It seems that although this code

env.Execute(
env.VerboseAction(
'$PYTHONEXE -m pip install "cryptography>=2.1.4" "future>=0.15.2" "pyparsing>=2.0.3,<2.4.0" ',
"Installing ESP-IDF's Python dependencies",
)
)

is supposed to install pyparsing less than 2.4.0, the affected user still somehow got pyparsing 2.4.7 on his system.

This leads, as discussed in here, to an internal error in the ESP-IDF build system when the linker script is generated.

linker script generation failed for /<user>/.platformio/packages/framework-espidf/components/esp32/ld/esp32.project.ld.in
ERROR: failed to parse /<user>/.platformio/packages/framework-espidf/components/esp_event/linker.lf
Expected end of text, found 'i'  (at char 0), (line:1, col:1)
*** [.pio/build/esp32dev/esp32.project.ld] Error 1

The error is solvable by telling PlatformIO's Python executable to pip uninstall pyparsing and reinstall a known good version, 2.2.0.

It should be investigated why it was possible that the user got a wrong pyparsing version in PlatformIO's isolated Python environment. Possibly other builder scripts for other frameworks / platforms install a higher version?

@maxgerhardt
Copy link
Contributor Author

Yet another person has run into this issue in our community forum here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant