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

User avatar
fasani
Posts: 77
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Sat May 23, 2020 6:08 am

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!
Backend developer-PHP Engineer
https://CALE.es ESP32 E-Ink Screen manager - Berlin, Germany

chegewara
Posts: 1078
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Sun May 24, 2020 11:20 am

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.

User avatar
fasani
Posts: 77
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

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

Postby fasani » Mon May 25, 2020 6:11 am

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.
Backend developer-PHP Engineer
https://CALE.es ESP32 E-Ink Screen manager - Berlin, Germany

Who is online

Users browsing this forum: Bing [Bot] and 10 guests