Closed franz-ms-muc closed 11 months ago
try to do a Setup in Eclipse:
Installing tools...
This can take a while. Please be patient.
Executing /usr/bin/python3 /home/franz/esp-idf-v4.2.4/tools/idf_tools.py install all
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja
Skipping xtensa-esp32-elf@esp-2020r3-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2020r3-8.4.0 (already installed)
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping cmake@3.16.4 (already installed)
Skipping openocd-esp32@v0.11.0-esp32-20211220 (already installed)
Skipping ninja@1.10.0 (already installed)
OK
Executing /usr/bin/python3 /home/franz/esp-idf-v4.2.4/tools/idf_tools.py install-python-env
Python 3.11.4
pip 23.0.1 from /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages/pip (python 3.11)
Installing Python packages from /home/franz/esp-idf-v4.2.4/requirements.txt
Ignoring cffi: markers 'python_version < "3.6"' don't match your environment
Ignoring None: markers 'sys_platform == "win32"' don't match your environment
Requirement already satisfied: setuptools>=21 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 4)) (66.1.1)
Requirement already satisfied: click>=5.0 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 8)) (8.1.7)
Requirement already satisfied: pyserial>=3.0 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 9)) (3.5)
Requirement already satisfied: future>=0.15.2 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 10)) (0.18.3)
Requirement already satisfied: cryptography<35,>=2.1.4 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 11)) (3.4.8)
Requirement already satisfied: pyparsing<2.4.0,>=2.0.3 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 14)) (2.3.1)
Requirement already satisfied: pyelftools>=0.22 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 15)) (0.30)
Requirement already satisfied: idf-component-manager~=1.0 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 16)) (1.4.0)
Collecting gdbgui==0.13.2.0
Using cached gdbgui-0.13.2.0-py3-none-any.whl (878 kB)
Requirement already satisfied: pygdbmi<=0.9.0.2 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 21)) (0.9.0.2)
Collecting python-socketio<5
Using cached python_socketio-4.6.1-py2.py3-none-any.whl (51 kB)
Requirement already satisfied: reedsolo<=1.5.4,>=1.5.3 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 27)) (1.5.4)
Requirement already satisfied: bitstring>=3.1.6 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 28)) (3.1.9)
Requirement already satisfied: ecdsa>=0.16.0 in /home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages (from -r /home/franz/esp-idf-v4.2.4/requirements.txt (line 29)) (0.18.0)
Collecting Flask<1.0,>=0.12.2
Using cached Flask-0.12.5-py2.py3-none-any.whl (81 kB)
Collecting Flask-Compress<2.0,>=1.4.0
Using cached Flask_Compress-1.14-py3-none-any.whl (8.4 kB)
Collecting Flask-SocketIO<3.0,>=2.9
Using cached Flask_SocketIO-2.9.6-py2.py3-none-any.whl (16 kB)
Collecting gevent<2.0,>=1.2.2
Using cached gevent-1.5.0.tar.gz (5.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [322 lines of output]
Compiling src/gevent/resolver/cares.pyx because it changed.
[1/1] Cythonizing src/gevent/resolver/cares.pyx
warning: src/gevent/resolver/cares.pyx:32:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/resolver/cares.pyx:33:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
Compiling src/gevent/libev/corecext.pyx because it changed.
[1/1] Cythonizing src/gevent/libev/corecext.pyx
warning: src/gevent/libev/corecext.pyx:325:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:778:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:780:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:782:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:786:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
Error compiling Cython file:
------------------------------------------------------------
...
if events & ~(libev.EV__IOFDSET | libev.EV_READ | libev.EV_WRITE):
raise ValueError('illegal event mask: %r' % events)
# All the vfd_functions are no-ops on POSIX
cdef int vfd = libev.vfd_open(fd)
libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1027:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
raise ValueError('illegal event mask: %r' % events)
# All the vfd_functions are no-ops on POSIX
cdef int vfd = libev.vfd_open(fd)
libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &io_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1028:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
if repeat < 0.0:
raise ValueError("repeat must be positive or zero: %r" % repeat)
libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1072:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
if repeat < 0.0:
raise ValueError("repeat must be positive or zero: %r" % repeat)
libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &timer_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1073:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
# 1) "libev: ev_signal_start called with illegal signal number"
# EV_NSIG might be different from signal.NSIG on some platforms
# 2) "libev: a signal must not be attached to two different loops"
# we probably could check that in LIBEV_EMBED mode, but not in general
libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1117:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
# EV_NSIG might be different from signal.NSIG on some platforms
# 2) "libev: a signal must not be attached to two different loops"
# we probably could check that in LIBEV_EMBED mode, but not in general
libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &signal_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1118:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_idle _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1133:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_idle _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &idle_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1134:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_prepare _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1146:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_prepare _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &prepare_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1147:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_check _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1159:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_check _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &check_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1160:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_fork _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1172:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
cdef libev.ev_fork _watcher
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &fork_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1173:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
# Note the use of ev_async_pending instead of ev_is_pending
return True if libev.ev_async_pending(&self._watcher) else False
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1189:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
return True if libev.ev_async_pending(&self._watcher) else False
def __cinit__(self, loop loop, ref=True, priority=None):
libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &async_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1190:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
raise AttributeError("Child watchers are not supported on Windows")
if not loop.default:
raise TypeError('child watchers are only available on the default loop')
libev.gevent_install_sigchld_handler()
libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1212:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
if not loop.default:
raise TypeError('child watchers are only available on the default loop')
libev.gevent_install_sigchld_handler()
libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &child_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1213:20: Cannot convert 'start_and_stop *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
self._paths = paths
else:
paths = <bytes>path
self._paths = paths
libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
self.__watcher = <libev.ev_watcher*>&self._watcher
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1263:25: Cannot convert 'ev_watcher *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
else:
paths = <bytes>path
self._paths = paths
libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
self.__watcher = <libev.ev_watcher*>&self._watcher
self.__ss = &stat_ss
^
------------------------------------------------------------
src/gevent/libev/corecext.pyx:1264:20: Cannot convert 'start_and_stop *' to Python object
Traceback (most recent call last):
File "/home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/franz/.espressif/python_env/idf4.2_py3.11_env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 49, in <module>
File "/tmp/pip-install-54ye1qd6/gevent_6e2d9daa1fbb4eb38af318efdd6a50d7/_setuputils.py", line 254, in cythonize1
new_ext = cythonize(
^^^^^^^^^^
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-tog8g1cu/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "/home/franz/esp-idf-v4.2.4/tools/idf_tools.py", line 1693, in <module>
main(sys.argv[1:])
File "/home/franz/esp-idf-v4.2.4/tools/idf_tools.py", line 1689, in main
action_func(args)
File "/home/franz/esp-idf-v4.2.4/tools/idf_tools.py", line 1412, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/franz/.espressif/python_env/idf4.2_py3.11_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/home/franz/esp-idf-v4.2.4/requirements.txt']' returned non-zero exit status 1.
ErrorError
Executing /usr/bin/python3 /home/franz/esp-idf-v4.2.4/tools/idf_tools.py export --format=key-value
Not using an unsupported version of tool cmake found in PATH: 3.25.1. To use it, run '/usr/bin/python3 /home/franz/esp-idf-v4.2.4/tools/idf_tools.py export --prefer-system'
Not using an unsupported version of tool ninja found in PATH: 1.11.1. To use it, run '/usr/bin/python3 /home/franz/esp-idf-v4.2.4/tools/idf_tools.py export --prefer-system'
OPENOCD_SCRIPTS=/home/franz/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts
IDF_PYTHON_ENV_PATH=/home/franz/.espressif/python_env/idf4.2_py3.11_env
PATH=/home/franz/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin:/home/franz/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin:/home/franz/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/home/franz/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/home/franz/.espressif/tools/cmake/3.16.4/bin:/home/franz/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin:/home/franz/.espressif/tools/ninja/1.10.0/:/home/franz/.espressif/python_env/idf4.2_py3.11_env/bin:/home/franz/esp-idf-v4.2.4/tools:$PATH
Configured CDT Build Environment variables. You can check Preferences > C/C++ > Build > Environment
Executing /home/franz/.espressif/python_env/idf4.2_py3.11_env/bin/python -m pip list
Copying OpenOCD Rules
Copying File: /home/franz/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin/../share/openocd/contrib/60-openocd.rules to destination: /etc/udev/rules.d/60-openocd.rules
Unable to copy rules for OpenOCD to system directory, try running the eclipse with sudo command
Configured CMake toolchain. You can check Preferences > C/C++ > CMake
Install tools completed.
not important anymore. could install 4.2.5 and do my Work there.
@espressif-bot please put this issue to a very low priority.
The workaround has been added to 4.2.5: https://github.com/espressif/esp-idf/commit/9e9cbd541b1a46524b3ab250ba82bb544091fd08
Answers checklist.
IDF version.
esp-idf-v4.2.4
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I expected to run ./install.sh all smooth
What is the actual behavior?
Instead it brings Error see below:
Steps to reproduce.
Build or installation Logs.
More Information.
No response