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

Zevver
Posts: 14
Joined: Sun Oct 17, 2021 5:18 pm

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

Postby Zevver » Tue Feb 28, 2023 8:00 am

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.

User avatar
ESP_Roland
Posts: 261
Joined: Tue Oct 09, 2018 10:28 am

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

Postby ESP_Roland » Tue Feb 28, 2023 5:08 pm

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.

jjwsei
Posts: 6
Joined: Fri Mar 01, 2019 1:31 pm

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

Postby jjwsei » Thu Aug 24, 2023 6:16 pm

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+?

ESP_frhr
Posts: 8
Joined: Tue Jan 10, 2023 10:41 am

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

Postby ESP_frhr » Fri Aug 25, 2023 8:01 am

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.

Who is online

Users browsing this forum: No registered users and 66 guests