Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build #19

Open
gemenerik opened this issue Oct 23, 2024 · 0 comments
Open

Fails to build #19

gemenerik opened this issue Oct 23, 2024 · 0 comments
Labels

Comments

@gemenerik
Copy link
Member

Fails on installing esp-idf Python requirements

 => ERROR [14/17] RUN cd /new_home/esp/esp-idf && pip3 install -r requirements.txt                                                                                                                                                                9.1s 
------                                                                                                                                                                                                                                                 
 > [14/17] RUN cd /new_home/esp/esp-idf && pip3 install -r requirements.txt:                                                                                                                                                                           
0.604 Ignoring None: markers 'sys_platform == "win32"' don't match your environment                                                                                                                                                                    
0.605 Requirement already satisfied: setuptools>=21 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (59.6.0)
0.689 Collecting click>=7.0 (from -r requirements.txt (line 8))
0.745   Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
0.750 Requirement already satisfied: pyserial>=3.0 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 9)) (3.5)
0.776 Collecting future>=0.15.2 (from -r requirements.txt (line 10))
0.789   Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
1.052 Collecting cryptography>=2.1.4 (from -r requirements.txt (line 11))
1.069   Downloading cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.4 kB)
1.127 Collecting pyparsing<2.4.0,>=2.0.3 (from -r requirements.txt (line 12))
1.143   Downloading pyparsing-2.3.1-py2.py3-none-any.whl.metadata (1.0 kB)
1.150 Requirement already satisfied: pyelftools>=0.22 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 13)) (0.31)
1.196 Collecting gdbgui==0.13.2.0 (from -r requirements.txt (line 15))
1.211   Downloading gdbgui-0.13.2.0-py3-none-any.whl.metadata (2.2 kB)
1.248 Collecting pygdbmi<=0.9.0.2 (from -r requirements.txt (line 18))
1.264   Downloading pygdbmi-0.9.0.2-py3-none-any.whl.metadata (9.6 kB)
1.314 Collecting python-socketio<5 (from -r requirements.txt (line 21))
1.331   Downloading python_socketio-4.6.1-py2.py3-none-any.whl.metadata (2.1 kB)
1.430 Collecting kconfiglib==13.7.1 (from -r requirements.txt (line 23))
1.456   Downloading kconfiglib-13.7.1-py2.py3-none-any.whl.metadata (39 kB)
1.506 Collecting reedsolo<=1.5.4,>=1.5.3 (from -r requirements.txt (line 26))
1.521   Downloading reedsolo-1.5.4.tar.gz (271 kB)
1.575   Preparing metadata (setup.py): started
1.722   Preparing metadata (setup.py): finished with status 'done'
1.752 Collecting bitstring>=3.1.6 (from -r requirements.txt (line 27))
1.767   Downloading bitstring-4.2.3-py3-none-any.whl.metadata (5.0 kB)
1.801 Collecting ecdsa>=0.16.0 (from -r requirements.txt (line 28))
1.815   Downloading ecdsa-0.19.0-py2.py3-none-any.whl.metadata (29 kB)
1.852 Collecting construct==2.10.54 (from -r requirements.txt (line 32))
1.865   Downloading construct-2.10.54.tar.gz (55 kB)
1.882   Preparing metadata (setup.py): started
2.246   Preparing metadata (setup.py): finished with status 'done'
2.282 Collecting Flask<1.0,>=0.12.2 (from gdbgui==0.13.2.0->-r requirements.txt (line 15))
2.297   Downloading Flask-0.12.5-py2.py3-none-any.whl.metadata (2.0 kB)
2.328 Collecting Flask-Compress<2.0,>=1.4.0 (from gdbgui==0.13.2.0->-r requirements.txt (line 15))
2.343   Downloading Flask_Compress-1.17-py3-none-any.whl.metadata (8.8 kB)
2.383 Collecting Flask-SocketIO<3.0,>=2.9 (from gdbgui==0.13.2.0->-r requirements.txt (line 15))
2.397   Downloading Flask_SocketIO-2.9.6-py2.py3-none-any.whl.metadata (873 bytes)
2.540 Collecting gevent<2.0,>=1.2.2 (from gdbgui==0.13.2.0->-r requirements.txt (line 15))
2.554   Downloading gevent-1.5.0.tar.gz (5.3 MB)
2.749      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 28.0 MB/s eta 0:00:00
3.353   Installing build dependencies: started
7.054   Installing build dependencies: finished with status 'done'
7.055   Getting requirements to build wheel: started
8.751   Getting requirements to build wheel: finished with status 'error'
8.768   error: subprocess-exited-with-error
8.768   
8.768   × Getting requirements to build wheel did not run successfully.
8.768   │ exit code: 1
8.768   ╰─> [315 lines of output]
8.768       Compiling src/gevent/resolver/cares.pyx because it changed.
8.768       [1/1] Cythonizing src/gevent/resolver/cares.pyx
8.768       performance hint: src/gevent/libev/corecext.pyx:1291:5: Exception check on '_syserr_cb' will always require the GIL to be acquired.
8.768       Possible solutions:
8.768           1. Declare '_syserr_cb' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
8.768           2. Use an 'int' return type on '_syserr_cb' to allow an error code to be returned.
8.768       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.
8.768       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.
8.768       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.
8.768       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.
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               if events & ~(libev.EV__IOFDSET | libev.EV_READ | libev.EV_WRITE):
8.768                   raise ValueError('illegal event mask: %r' % events)
8.768               # All the vfd_functions are no-ops on POSIX
8.768               cdef int vfd = libev.vfd_open(fd)
8.768               libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1027:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768                   raise ValueError('illegal event mask: %r' % events)
8.768               # All the vfd_functions are no-ops on POSIX
8.768               cdef int vfd = libev.vfd_open(fd)
8.768               libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &io_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1028:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768       
8.768           def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
8.768               if repeat < 0.0:
8.768                   raise ValueError("repeat must be positive or zero: %r" % repeat)
8.768               libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1072:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768           def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
8.768               if repeat < 0.0:
8.768                   raise ValueError("repeat must be positive or zero: %r" % repeat)
8.768               libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &timer_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1073:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               # 1) "libev: ev_signal_start called with illegal signal number"
8.768               #    EV_NSIG might be different from signal.NSIG on some platforms
8.768               # 2) "libev: a signal must not be attached to two different loops"
8.768               #    we probably could check that in LIBEV_EMBED mode, but not in general
8.768               libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1117:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               #    EV_NSIG might be different from signal.NSIG on some platforms
8.768               # 2) "libev: a signal must not be attached to two different loops"
8.768               #    we probably could check that in LIBEV_EMBED mode, but not in general
8.768               libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &signal_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1118:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768       
8.768           cdef libev.ev_idle _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1133:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768           cdef libev.ev_idle _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &idle_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1134:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768       
8.768           cdef libev.ev_prepare _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1146:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768           cdef libev.ev_prepare _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &prepare_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1147:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768       
8.768           cdef libev.ev_check _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1159:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768           cdef libev.ev_check _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &check_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1160:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768       
8.768           cdef libev.ev_fork _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1172:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768           cdef libev.ev_fork _watcher
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &fork_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1173:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               # Note the use of ev_async_pending instead of ev_is_pending
8.768               return True if libev.ev_async_pending(&self._watcher) else False
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1189:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               return True if libev.ev_async_pending(&self._watcher) else False
8.768       
8.768           def __cinit__(self, loop loop, ref=True, priority=None):
8.768               libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &async_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1190:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768                   raise AttributeError("Child watchers are not supported on Windows")
8.768               if not loop.default:
8.768                   raise TypeError('child watchers are only available on the default loop')
8.768               libev.gevent_install_sigchld_handler()
8.768               libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1212:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               if not loop.default:
8.768                   raise TypeError('child watchers are only available on the default loop')
8.768               libev.gevent_install_sigchld_handler()
8.768               libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &child_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1213:20: Cannot convert 'start_and_stop *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768                   self._paths = paths
8.768               else:
8.768                   paths = <bytes>path
8.768                   self._paths = paths
8.768               libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768                                ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1263:25: Cannot convert 'ev_watcher *' to Python object
8.768       
8.768       Error compiling Cython file:
8.768       ------------------------------------------------------------
8.768       ...
8.768               else:
8.768                   paths = <bytes>path
8.768                   self._paths = paths
8.768               libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
8.768               self.__watcher = <libev.ev_watcher*>&self._watcher
8.768               self.__ss = &stat_ss
8.768                           ^
8.768       ------------------------------------------------------------
8.768       
8.768       src/gevent/libev/corecext.pyx:1264:20: Cannot convert 'start_and_stop *' to Python object
8.768       Compiling src/gevent/libev/corecext.pyx because it changed.
8.768       [1/1] Cythonizing src/gevent/libev/corecext.pyx
8.768       Traceback (most recent call last):
8.768         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
8.768           main()
8.768         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
8.768           json_out['return_val'] = hook(**hook_input['kwargs'])
8.768         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
8.768           return hook(config_settings)
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
8.768           return self._get_build_requires(config_settings, requirements=[])
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 302, in _get_build_requires
8.768           self.run_setup()
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 516, in run_setup
8.768           super().run_setup(setup_script=setup_script)
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 318, in run_setup
8.768           exec(code, locals())
8.768         File "<string>", line 49, in <module>
8.768         File "/tmp/pip-install-lk4_f5de/gevent_4a3bf400d5c2475280cda5d956eedd9f/_setuputils.py", line 254, in cythonize1
8.768           new_ext = cythonize(
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
8.768           cythonize_one(*args)
8.768         File "/tmp/pip-build-env-368grlo1/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
8.768           raise CompileError(None, pyx_file)
8.768       Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
8.768       [end of output]
8.768   
8.768   note: This error originates from a subprocess, and is likely not a problem with pip.
8.827 error: subprocess-exited-with-error
8.827 
8.827 × Getting requirements to build wheel did not run successfully.
8.827 │ exit code: 1
8.827 ╰─> See above for output.
8.827 
8.827 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:61
--------------------
  59 |     RUN cd /new_home/esp/esp-idf && python3 ./tools/idf_tools.py install
  60 |     ENV IDF_PATH=/new_home/esp/esp-idf
  61 | >>> RUN cd /new_home/esp/esp-idf && pip3 install -r requirements.txt
  62 |     # The export.sh script can not be sourced in docker, set it up manually
  63 |     ENV PATH=/new_home/esp/esp-idf/components/esptool_py/esptool:/new_home/esp/esp-idf/components/espcoredump:/new_home/esp/esp-idf/components/partition_table:\
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /new_home/esp/esp-idf && pip3 install -r requirements.txt" did not complete successfully: exit code: 1
@gemenerik gemenerik added the bug label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant