Page 1 of 1

idf.py is failing when I checkout ESP-IDF v4.1

Posted: Sat May 23, 2020 6:08 am
by fasani
Hi there,
I'm in Ubuntu Linux, Python version 3.6.9.
Today I wanted to compile something in the esp32s2beta since I'm waiting that some S2 arrive, so I switched to:

https://github.com/espressif/esp-idf/tree/release/v4.1

update submodules and run pip install requirements again. But I got an error with idf.py that I could not solve:

Code: Select all

martin@martin-L:~/esp$ idf.py
Traceback (most recent call last):
  File "/home/martin/esp/esp-idf/tools/idf.py", line 775, in <module>
    main()
  File "/home/martin/esp/esp-idf/tools/idf.py", line 692, in main
    cli = init_cli(verbose_output=checks_output)
  File "/home/martin/esp/esp-idf/tools/idf.py", line 650, in init_cli
    extensions[name] = import_module(name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 888, in get_code
  File "<frozen importlib._bootstrap_external>", line 455, in _validate_bytecode_header
ImportError: bad magic number in 'debug_ext': b'\x03\xf3\r\n'
So I switched back to the tagged version v4.0.1 and everything works again including idf.py

Maybe someone can enlighten me on how to test 4.1 version? Thanks in advance!

Re: idf.py is failing when I checkout ESP-IDF v4.1

Posted: Sun May 24, 2020 11:20 am
by chegewara
Hi,
if you are awaiting new saola boards or kaluga, then most likely its not a S2 beta chip anymore. In that case you shouldnt use esp32s2beta branch, instead use master branch.

Re: idf.py is failing when I checkout ESP-IDF v4.1

Posted: Mon May 25, 2020 6:11 am
by fasani
chegewara wrote:
Sun May 24, 2020 11:20 am
In that case you shouldnt use esp32s2beta branch, instead use master branch.
Thanks chegewara,
I will use that one.

But that is not the reason idf.py fails. It simply fails checking out branch: release/v4.1

And simply calling

idf.py

without any arguments I get that error. What I wanted to understand is if there was something wrong there.