Closed resghst closed 4 months ago
I got same issue.
$ git log -1
commit 8f66f4215bc0708efc8cc73bda80620e67d8955f (HEAD, tag: v1.1.0.1)
Author: Damian Michalak-Szmaciński <d.michalak@samsung.com>
Date: Tue May 2 19:55:30 2023 +0200
[ linux cirque ] Add flake8 to workflow and fix python files (part #25193) (#25245)
* [linux-cirque] Add flake8 to workflow and fix python files in linux cirque test
* rebase
* Restyled by autopep8
---------
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
I ran into the same problem. To get around this problem, I have set python to 3.11 for now.
Same problem. I try to build a container using connectedhomeip/chip-build-nrf-platform:0.7.25
. Also the stuff here in the github container registry has the same problem.
Edit: Maybe Ubuntu 22.04 should be used instead of Ubuntu 20.04 for the image base?
I also ran into this problem. I looked at the log file and it seems to be related to Cython. Cython was updated to 3.0 in July 23, maybe this version conflicts with gevent1.5.
2023-09-01T21:45:22,983 Successfully installed Cython-3.0.2 cffi-1.15.1 greenlet-2.0.2 pycparser-2.21 setuptools-68.1.2 wheel-0.41.2
2023-09-01T21:45:23,175 Installing build dependencies: finished with status 'done'
2023-09-01T21:45:23,176 Getting requirements to build wheel: started
2023-09-01T21:45:23,176 Running command Getting requirements to build wheel
2023-09-01T21:45:23,760 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
2023-09-01T21:45:23,760 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
2023-09-01T21:45:24,092 Compiling src/gevent/resolver/cares.pyx because it changed.
2023-09-01T21:45:24,092 [1/1] Cythonizing src/gevent/resolver/cares.pyx
2023-09-01T21:45:24,230 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
2023-09-01T21:45:24,242 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
2023-09-01T21:45:24,242 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
2023-09-01T21:45:24,242 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
2023-09-01T21:45:24,242 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
2023-09-01T21:45:24,691 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.
2023-09-01T21:45:24,692 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.
2023-09-01T21:45:24,743 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.
2023-09-01T21:45:24,747 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.
2023-09-01T21:45:24,772 Error compiling Cython file:
2023-09-01T21:45:24,772 ------------------------------------------------------------
2023-09-01T21:45:24,772 ...
2023-09-01T21:45:24,773 if events & ~(libev.EV__IOFDSET | libev.EV_READ | libev.EV_WRITE):
2023-09-01T21:45:24,773 raise ValueError('illegal event mask: %r' % events)
2023-09-01T21:45:24,773 # All the vfd_functions are no-ops on POSIX
2023-09-01T21:45:24,773 cdef int vfd = libev.vfd_open(fd)
2023-09-01T21:45:24,773 libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
2023-09-01T21:45:24,773 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,773 ^
2023-09-01T21:45:24,773 ------------------------------------------------------------
2023-09-01T21:45:24,773 src/gevent/libev/corecext.pyx:1027:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,773 Error compiling Cython file:
2023-09-01T21:45:24,773 ------------------------------------------------------------
2023-09-01T21:45:24,773 ...
2023-09-01T21:45:24,773 raise ValueError('illegal event mask: %r' % events)
2023-09-01T21:45:24,773 # All the vfd_functions are no-ops on POSIX
2023-09-01T21:45:24,773 cdef int vfd = libev.vfd_open(fd)
2023-09-01T21:45:24,773 libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events)
2023-09-01T21:45:24,773 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,773 self.__ss = &io_ss
2023-09-01T21:45:24,773 ^
2023-09-01T21:45:24,773 ------------------------------------------------------------
2023-09-01T21:45:24,774 src/gevent/libev/corecext.pyx:1028:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,776 Error compiling Cython file:
2023-09-01T21:45:24,776 ------------------------------------------------------------
2023-09-01T21:45:24,776 ...
2023-09-01T21:45:24,776 def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
2023-09-01T21:45:24,776 if repeat < 0.0:
2023-09-01T21:45:24,776 raise ValueError("repeat must be positive or zero: %r" % repeat)
2023-09-01T21:45:24,776 libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
2023-09-01T21:45:24,776 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,776 ^
2023-09-01T21:45:24,776 ------------------------------------------------------------
2023-09-01T21:45:24,776 src/gevent/libev/corecext.pyx:1072:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,776 Error compiling Cython file:
2023-09-01T21:45:24,776 ------------------------------------------------------------
2023-09-01T21:45:24,776 ...
2023-09-01T21:45:24,776 def __cinit__(self, loop loop, double after=0.0, double repeat=0.0, ref=True, priority=None):
2023-09-01T21:45:24,777 if repeat < 0.0:
2023-09-01T21:45:24,777 raise ValueError("repeat must be positive or zero: %r" % repeat)
2023-09-01T21:45:24,777 libev.ev_timer_init(&self._watcher, <void *>gevent_callback_timer, after, repeat)
2023-09-01T21:45:24,777 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,777 self.__ss = &timer_ss
2023-09-01T21:45:24,777 ^
2023-09-01T21:45:24,777 ------------------------------------------------------------
2023-09-01T21:45:24,777 src/gevent/libev/corecext.pyx:1073:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,780 Error compiling Cython file:
2023-09-01T21:45:24,780 ------------------------------------------------------------
2023-09-01T21:45:24,780 ...
2023-09-01T21:45:24,780 # 1) "libev: ev_signal_start called with illegal signal number"
2023-09-01T21:45:24,780 # EV_NSIG might be different from signal.NSIG on some platforms
2023-09-01T21:45:24,781 # 2) "libev: a signal must not be attached to two different loops"
2023-09-01T21:45:24,781 # we probably could check that in LIBEV_EMBED mode, but not in general
2023-09-01T21:45:24,781 libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
2023-09-01T21:45:24,781 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,781 ^
2023-09-01T21:45:24,781 ------------------------------------------------------------
2023-09-01T21:45:24,781 src/gevent/libev/corecext.pyx:1117:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,781 Error compiling Cython file:
2023-09-01T21:45:24,781 ------------------------------------------------------------
2023-09-01T21:45:24,781 ...
2023-09-01T21:45:24,781 # EV_NSIG might be different from signal.NSIG on some platforms
2023-09-01T21:45:24,781 # 2) "libev: a signal must not be attached to two different loops"
2023-09-01T21:45:24,781 # we probably could check that in LIBEV_EMBED mode, but not in general
2023-09-01T21:45:24,781 libev.ev_signal_init(&self._watcher, <void *>gevent_callback_signal, signalnum)
2023-09-01T21:45:24,781 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,781 self.__ss = &signal_ss
2023-09-01T21:45:24,781 ^
2023-09-01T21:45:24,781 ------------------------------------------------------------
2023-09-01T21:45:24,781 src/gevent/libev/corecext.pyx:1118:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,782 Error compiling Cython file:
2023-09-01T21:45:24,782 ------------------------------------------------------------
2023-09-01T21:45:24,782 ...
2023-09-01T21:45:24,782 cdef libev.ev_idle _watcher
2023-09-01T21:45:24,782 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,782 libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
2023-09-01T21:45:24,782 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,782 ^
2023-09-01T21:45:24,782 ------------------------------------------------------------
2023-09-01T21:45:24,782 src/gevent/libev/corecext.pyx:1133:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,782 Error compiling Cython file:
2023-09-01T21:45:24,782 ------------------------------------------------------------
2023-09-01T21:45:24,782 ...
2023-09-01T21:45:24,782 cdef libev.ev_idle _watcher
2023-09-01T21:45:24,782 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,782 libev.ev_idle_init(&self._watcher, <void*>gevent_callback_idle)
2023-09-01T21:45:24,783 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,783 self.__ss = &idle_ss
2023-09-01T21:45:24,783 ^
2023-09-01T21:45:24,783 ------------------------------------------------------------
2023-09-01T21:45:24,783 src/gevent/libev/corecext.pyx:1134:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,784 Error compiling Cython file:
2023-09-01T21:45:24,784 ------------------------------------------------------------
2023-09-01T21:45:24,784 ...
2023-09-01T21:45:24,784 cdef libev.ev_prepare _watcher
2023-09-01T21:45:24,784 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,784 libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
2023-09-01T21:45:24,784 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,784 ^
2023-09-01T21:45:24,784 ------------------------------------------------------------
2023-09-01T21:45:24,784 src/gevent/libev/corecext.pyx:1146:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,785 Error compiling Cython file:
2023-09-01T21:45:24,785 ------------------------------------------------------------
2023-09-01T21:45:24,785 ...
2023-09-01T21:45:24,785 cdef libev.ev_prepare _watcher
2023-09-01T21:45:24,785 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,785 libev.ev_prepare_init(&self._watcher, <void*>gevent_callback_prepare)
2023-09-01T21:45:24,785 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,785 self.__ss = &prepare_ss
2023-09-01T21:45:24,785 ^
2023-09-01T21:45:24,785 ------------------------------------------------------------
2023-09-01T21:45:24,785 src/gevent/libev/corecext.pyx:1147:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,785 Error compiling Cython file:
2023-09-01T21:45:24,785 ------------------------------------------------------------
2023-09-01T21:45:24,785 ...
2023-09-01T21:45:24,785 cdef libev.ev_check _watcher
2023-09-01T21:45:24,785 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,785 libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
2023-09-01T21:45:24,786 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,786 ^
2023-09-01T21:45:24,786 ------------------------------------------------------------
2023-09-01T21:45:24,786 src/gevent/libev/corecext.pyx:1159:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,789 Error compiling Cython file:
2023-09-01T21:45:24,789 ------------------------------------------------------------
2023-09-01T21:45:24,789 ...
2023-09-01T21:45:24,789 cdef libev.ev_check _watcher
2023-09-01T21:45:24,789 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,789 libev.ev_check_init(&self._watcher, <void*>gevent_callback_check)
2023-09-01T21:45:24,789 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,789 self.__ss = &check_ss
2023-09-01T21:45:24,789 ^
2023-09-01T21:45:24,789 ------------------------------------------------------------
2023-09-01T21:45:24,790 src/gevent/libev/corecext.pyx:1160:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,790 Error compiling Cython file:
2023-09-01T21:45:24,790 ------------------------------------------------------------
2023-09-01T21:45:24,790 ...
2023-09-01T21:45:24,790 cdef libev.ev_fork _watcher
2023-09-01T21:45:24,790 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,790 libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
2023-09-01T21:45:24,790 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,790 ^
2023-09-01T21:45:24,790 ------------------------------------------------------------
2023-09-01T21:45:24,790 src/gevent/libev/corecext.pyx:1172:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,790 Error compiling Cython file:
2023-09-01T21:45:24,791 ------------------------------------------------------------
2023-09-01T21:45:24,791 ...
2023-09-01T21:45:24,791 cdef libev.ev_fork _watcher
2023-09-01T21:45:24,791 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,791 libev.ev_fork_init(&self._watcher, <void*>gevent_callback_fork)
2023-09-01T21:45:24,791 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,791 self.__ss = &fork_ss
2023-09-01T21:45:24,791 ^
2023-09-01T21:45:24,791 ------------------------------------------------------------
2023-09-01T21:45:24,791 src/gevent/libev/corecext.pyx:1173:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,791 Error compiling Cython file:
2023-09-01T21:45:24,791 ------------------------------------------------------------
2023-09-01T21:45:24,791 ...
2023-09-01T21:45:24,791 # Note the use of ev_async_pending instead of ev_is_pending
2023-09-01T21:45:24,791 return True if libev.ev_async_pending(&self._watcher) else False
2023-09-01T21:45:24,792 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,792 libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
2023-09-01T21:45:24,792 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,792 ^
2023-09-01T21:45:24,792 ------------------------------------------------------------
2023-09-01T21:45:24,792 src/gevent/libev/corecext.pyx:1189:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,792 Error compiling Cython file:
2023-09-01T21:45:24,792 ------------------------------------------------------------
2023-09-01T21:45:24,792 ...
2023-09-01T21:45:24,792 return True if libev.ev_async_pending(&self._watcher) else False
2023-09-01T21:45:24,792 def __cinit__(self, loop loop, ref=True, priority=None):
2023-09-01T21:45:24,792 libev.ev_async_init(&self._watcher, <void*>gevent_callback_async)
2023-09-01T21:45:24,792 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,792 self.__ss = &async_ss
2023-09-01T21:45:24,792 ^
2023-09-01T21:45:24,792 ------------------------------------------------------------
2023-09-01T21:45:24,792 src/gevent/libev/corecext.pyx:1190:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,793 Error compiling Cython file:
2023-09-01T21:45:24,793 ------------------------------------------------------------
2023-09-01T21:45:24,793 ...
2023-09-01T21:45:24,793 raise AttributeError("Child watchers are not supported on Windows")
2023-09-01T21:45:24,793 if not loop.default:
2023-09-01T21:45:24,793 raise TypeError('child watchers are only available on the default loop')
2023-09-01T21:45:24,793 libev.gevent_install_sigchld_handler()
2023-09-01T21:45:24,793 libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
2023-09-01T21:45:24,793 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,793 ^
2023-09-01T21:45:24,793 ------------------------------------------------------------
2023-09-01T21:45:24,793 src/gevent/libev/corecext.pyx:1212:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,793 Error compiling Cython file:
2023-09-01T21:45:24,793 ------------------------------------------------------------
2023-09-01T21:45:24,793 ...
2023-09-01T21:45:24,793 if not loop.default:
2023-09-01T21:45:24,793 raise TypeError('child watchers are only available on the default loop')
2023-09-01T21:45:24,793 libev.gevent_install_sigchld_handler()
2023-09-01T21:45:24,793 libev.ev_child_init(&self._watcher, <void *>gevent_callback_child, pid, trace)
2023-09-01T21:45:24,794 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,794 self.__ss = &child_ss
2023-09-01T21:45:24,794 ^
2023-09-01T21:45:24,794 ------------------------------------------------------------
2023-09-01T21:45:24,794 src/gevent/libev/corecext.pyx:1213:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,795 Error compiling Cython file:
2023-09-01T21:45:24,795 ------------------------------------------------------------
2023-09-01T21:45:24,795 ...
2023-09-01T21:45:24,795 self._paths = paths
2023-09-01T21:45:24,795 else:
2023-09-01T21:45:24,795 paths = <bytes>path
2023-09-01T21:45:24,795 self._paths = paths
2023-09-01T21:45:24,795 libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
2023-09-01T21:45:24,795 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,795 ^
2023-09-01T21:45:24,795 ------------------------------------------------------------
2023-09-01T21:45:24,795 src/gevent/libev/corecext.pyx:1263:25: Cannot convert 'ev_watcher *' to Python object
2023-09-01T21:45:24,795 Error compiling Cython file:
2023-09-01T21:45:24,795 ------------------------------------------------------------
2023-09-01T21:45:24,795 ...
2023-09-01T21:45:24,795 else:
2023-09-01T21:45:24,795 paths = <bytes>path
2023-09-01T21:45:24,795 self._paths = paths
2023-09-01T21:45:24,795 libev.ev_stat_init(&self._watcher, <void *>gevent_callback_stat, <char*>paths, interval)
2023-09-01T21:45:24,796 self.__watcher = <libev.ev_watcher*>&self._watcher
2023-09-01T21:45:24,796 self.__ss = &stat_ss
2023-09-01T21:45:24,796 ^
2023-09-01T21:45:24,796 ------------------------------------------------------------
2023-09-01T21:45:24,796 src/gevent/libev/corecext.pyx:1264:20: Cannot convert 'start_and_stop *' to Python object
2023-09-01T21:45:24,849 Compiling src/gevent/libev/corecext.pyx because it changed.
2023-09-01T21:45:24,849 [1/1] Cythonizing src/gevent/libev/corecext.pyx
2023-09-01T21:45:24,849 Traceback (most recent call last):
2023-09-01T21:45:24,850 File "/home/bt4/HoneyComb/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
2023-09-01T21:45:24,850 main()
2023-09-01T21:45:24,850 File "/home/bt4/HoneyComb/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
2023-09-01T21:45:24,850 json_out['return_val'] = hook(**hook_input['kwargs'])
2023-09-01T21:45:24,850 File "/home/bt4/HoneyComb/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
2023-09-01T21:45:24,851 return hook(config_settings)
2023-09-01T21:45:24,851 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
2023-09-01T21:45:24,851 return self._get_build_requires(config_settings, requirements=['wheel'])
2023-09-01T21:45:24,851 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
2023-09-01T21:45:24,851 self.run_setup()
2023-09-01T21:45:24,851 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
2023-09-01T21:45:24,852 super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
2023-09-01T21:45:24,852 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
2023-09-01T21:45:24,852 exec(code, locals())
2023-09-01T21:45:24,852 File "<string>", line 49, in <module>
2023-09-01T21:45:24,852 File "/tmp/pip-install-e5m9j1aa/gevent_e40587e89b5843858415c08f6abd4171/_setuputils.py", line 254, in cythonize1
2023-09-01T21:45:24,852 new_ext = cythonize(
2023-09-01T21:45:24,853 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
2023-09-01T21:45:24,853 cythonize_one(*args)
2023-09-01T21:45:24,853 File "/tmp/pip-build-env-kva_hbju/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
2023-09-01T21:45:24,853 raise CompileError(None, pyx_file)
2023-09-01T21:45:24,853 Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx
2023-09-01T21:45:25,025 ERROR: [present-rich] Getting requirements to build wheel exited with 1
2023-09-01T21:45:25,030 [bold magenta]full command[/]: [blue]/home/bt4/HoneyComb/connectedhomeip/.environment/pigweed-venv/bin/python /home/bt4/HoneyComb/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp52z85b53[/]
2023-09-01T21:45:25,030 [bold magenta]cwd[/]: /tmp/pip-install-e5m9j1aa/gevent_e40587e89b5843858415c08f6abd4171
2023-09-01T21:45:25,030 Getting requirements to build wheel: finished with status 'error'
2023-09-01T21:45:25,031 ERROR: [present-rich] Getting requirements to build wheel exited with 1
I've tried a few ways to lower the Cython version to 0.29.36, but with no success.
I also ran into this problem. I looked at the log file and it seems to be related to Cython. Cython was updated to 3.0 in July 23, maybe this version conflicts with gevent1.5.
2023-09-01T21:45:22,983 Successfully installed Cython-3.0.2 cffi-1.15.1 greenlet-2.0.2 pycparser-2.21 setuptools-68.1.2 wheel-0.41.2 2023-09-01T21:45:23,175 Installing build dependencies: finished with status 'done' 2023-09-01T21:45:23,176 Getting requirements to build wheel: started 2023-09-01T21:45:23,176 Running command Getting requirements to build wheel 2023-09-01T21:45:23,760 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 2023-09-01T21:45:23,760 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 2023-09-01T21:45:24,092 Compiling src/gevent/resolver/cares.pyx because it changed. 2023-09-01T21:45:24,092 [1/1] Cythonizing src/gevent/resolver/cares.pyx 2023-09-01T21:45:24,230 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 2023-09-01T21:45:24,242 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 2023-09-01T21:45:24,242 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 2023-09-01T21:45:24,242 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 2023-09-01T21:45:24,242 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 2023-09-01T21:45:24,691 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. 2023-09-01T21:45:24,692 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. 2023-09-01T21:45:24,743 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. 2023-09-01T21:45:24,747 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. 2023-09-01T21:45:24,772 Error compiling Cython file: 2023-09-01T21:45:24,772 ------------------------------------------------------------ 2023-09-01T21:45:24,772 ... 2023-09-01T21:45:24,773 if events & ~(libev.EV__IOFDSET | libev.EV_READ | libev.EV_WRITE): 2023-09-01T21:45:24,773 raise ValueError('illegal event mask: %r' % events) 2023-09-01T21:45:24,773 # All the vfd_functions are no-ops on POSIX 2023-09-01T21:45:24,773 cdef int vfd = libev.vfd_open(fd) 2023-09-01T21:45:24,773 libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events) 2023-09-01T21:45:24,773 self.__watcher = <libev.ev_watcher*>&self._watcher 2023-09-01T21:45:24,773 ^ 2023-09-01T21:45:24,773 ------------------------------------------------------------ 2023-09-01T21:45:24,773 src/gevent/libev/corecext.pyx:1027:25: Cannot convert 'ev_watcher *' to Python object 2023-09-01T21:45:24,773 Error compiling Cython file: 2023-09-01T21:45:24,773 ------------------------------------------------------------ 2023-09-01T21:45:24,773 ... 2023-09-01T21:45:24,773 raise ValueError('illegal event mask: %r' % events) 2023-09-01T21:45:24,773 # All the vfd_functions are no-ops on POSIX 2023-09-01T21:45:24,773 cdef int vfd = libev.vfd_open(fd) 2023-09-01T21:45:24,773 libev.ev_io_init(&self._watcher, <void *>gevent_callback_io, vfd, events) 2023-09-01T21:45:24,773 self.__watcher = <libev.ev_watcher*>&self._watcher 2023-09-01T21:45:24,773 self.__ss = &io_ss 2023-09-01T21:45:24,773 ^ 2023-09-01T21:45:24,773 ------------------------------------------------------------ .......................
We also ran into same issue, even after installing all the relevant Python packages. Could somebody share any workaround or any fixes to build v1.1.0.1 connectedhomeIp source code on Ubuntu 22.04?
Thank you!!!.
Reproduction steps
I use docker image (debian:bullseye) to set up Matter env. Although success installed all prerequisites, run "scripts/activate.sh" get env setup failed. According to pip-requirements.log, installing "gevent" from scripts/setup/requirements.esp32.txt will get the error message. If ignore install gdbgui==0.13.2.0 requirements.esp32.txt, activate can success building
pip-requirements.log esp_requirement.txt
pip-requirements.log :
$ scripts/activate.sh
Bug prevalence
everytime
GitHub hash of the SDK that was being used
e059202613e91da78884aec4e1041d76da0af9bf
Platform
python
Platform Version(s)
docker, img: debian:bullseye
Anything else?
No response