Page 1 of 1

install.sh on v4.2 fails on recent Debian with python 3.11

Posted: Tue Feb 28, 2023 8:00 am
by Zevver
esp 4.2 fails to run on a recent debian system due to a build failure in gevent. Is there a fix or workaround for this?

src/gevent/_greenlet_primitives.c:216:12: fatal error: longintrepr.h: No such file or directory


Code: Select all

Isrc/gevent -Isrc/gevent/libev -Isrc/gevent/resolver -I. -I/home/ico/.espressif/python_env/idf4.2_py3.11_env/include -I/usr/include/python3.11 -c src/gevent/_greenlet_primitives.c -o build/temp.linux-x86_64-cpython-311/src/gevent/_greenlet_primitives.o
      src/gevent/_greenlet_primitives.c:216:12: fatal error: longintrepr.h: No such file or directory
        216 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects
Traceback (most recent call last):
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1492, in <module>
    main(sys.argv[1:])
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1488, in main
    action_func(args)
  File "/opt/toolchains/esp-idf-4.2/tools/idf_tools.py", line 1215, in action_install_python_env
    subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/ico/.espressif/python_env/idf4.2_py3.11_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/opt/toolchains/esp-idf-4.2/requirements.txt']' returned non-zero exit status 1.

Re: install.sh on v4.2 fails on recent Debian with python 3.11

Posted: Tue Feb 28, 2023 5:08 pm
by ESP_Roland
I assume this is the same report as https://github.com/espressif/esp-idf/is ... 1447719301.

We will try to backport the fix to the v4.2 and v4.3 release branches as well.

Re: install.sh on v4.2 fails on recent Debian with python 3.11

Posted: Thu Aug 24, 2023 6:16 pm
by jjwsei
Is there any update or ETA on this back porting effort? We have a deployed product with code developed on v4.2 and I recently had a crash that required a new installation of the esp idf. While we are looking into updating to a new version of the idf, we are not ready to make that move yet.

Not to hijack this thread, but are there any migration guides available when moving from v4.2 to say 4.5+?

Re: install.sh on v4.2 fails on recent Debian with python 3.11

Posted: Fri Aug 25, 2023 8:01 am
by ESP_frhr
Hello,

this will probably not be much of help, but the commit https://github.com/espressif/esp-idf/co ... 2b42b61d55 from https://github.com/espressif/esp-idf/issues/10116 referenced here was backported to v4.2 https://github.com/espressif/esp-idf/co ... 544091fd08

IIUC it just disables gdbgui for python 3.11 and newer. I might have misinterpreted the actual problem here and what' expected. I'm sure Roland will correct me if needed.

Some migration guides are here https://docs.espressif.com/projects/esp ... index.html, but I don't see any between v4 minor releases.