project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.48k stars 2k forks source link

[BUG] setup env Failed: run /scripts/activate.sh get fialed (requirements.esp32.txt) #28435

Closed resghst closed 3 months ago

resghst commented 1 year ago

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

# gdbgui==0.13.2.0 ; platform_machine != 'aarch64' and sys_platform == 'linux'

pip-requirements.log esp_requirement.txt

pip-requirements.log :

Given no hashes to check 1 links for project 'gevent': discarding no candidates
Collecting gevent<2.0,>=1.2.2 (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
Created temporary directory: /tmp/pip-unpack-uhfa2xsi
Downloading gevent-1.5.0.tar.gz (5.3 MB)
Added gevent<2.0,>=1.2.2 from https://files.pythonhosted.org/packages/5a/79/2c63d385d017b5dd7d70983a463dfd25befae70c824fedb857df6e72eff2/gevent-1.5.0.tar.gz (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12)) to build tracker '/tmp/pip-build-tracker-udvhdggl'

$ scripts/activate.sh

  WELCOME TO...

         █
         █
     ▄   █   ▄                                █     █
     ▀▀█████▀▀      ▄▀▀▀▄ ▄▀▀▀▄    ▄▀▀▀▀▄█  ▀▀█▀▀▀▀▀█▀▀   ▄▀▀▀▀▄    ▄▀▀
   ▀█▄       ▄█▀   █     █     █  █      █    █     █    █▄▄▄▄▄▄█  █   
     ▀█▄   ▄█▀     █     █     █  █      █    █     █    █         █   
  ▄██▀▀█   █▀▀██▄  █     █     █   ▀▄▄▄▄▀█    ▀▄▄   ▀▄▄   ▀▄▄▄▄▀   █   
 ▀▀    █   █    ▀▀

  BOOTSTRAP! Bootstrap may take a few minutes; please be patient.

Downloading and installing packages into local source directory:

  Setting up CIPD package manager...done (3m51.4s)
  Setting up Python environment.....Ignoring pyobjc-core: markers 'sys_platform == "darwin"' don't match your environment
Ignoring pyobjc-framework-cocoa: markers 'sys_platform == "darwin"' don't match your environment
Ignoring pyobjc-framework-corebluetooth: markers 'sys_platform == "darwin"' don't match your environment
Collecting pip-tools (from -r /var/chip/scripts/setup/requirements.txt (line 1))
  Downloading pip_tools-6.12.3-py3-none-any.whl (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.7/52.7 kB 487.5 kB/s eta 0:00:00
Collecting virtualenv (from -r /var/chip/scripts/setup/requirements.txt (line 2))
  Downloading virtualenv-20.20.0-py3-none-any.whl (8.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.7/8.7 MB 3.3 MB/s eta 0:00:00
Collecting click>=7.0 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 1))
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 2.5 MB/s eta 0:00:00
Collecting future>=0.15.2 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 2))
  Downloading future-0.18.3.tar.gz (840 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 4.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pyparsing<2.4.0,>=2.0.3 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 3))
  Downloading pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.8/61.8 kB 1.6 MB/s eta 0:00:00
Collecting idf-component-manager (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 4))
  Downloading idf_component_manager-1.2.2-py3-none-any.whl (116 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 116.7/116.7 kB 2.7 MB/s eta 0:00:00
Collecting pygdbmi<=0.9.0.2 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 5))
  Downloading pygdbmi-0.9.0.2-py3-none-any.whl (16 kB)
Collecting reedsolo<=1.5.4,>=1.5.3 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 6))
  Downloading reedsolo-1.5.4.tar.gz (271 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 271.3/271.3 kB 4.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting bitstring>=3.1.6 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 7))
  Downloading bitstring-4.0.1-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.6/45.6 kB 835.3 kB/s eta 0:00:00
Collecting ecdsa>=0.16.0 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 8))
  Downloading ecdsa-0.18.0-py2.py3-none-any.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.9/142.9 kB 2.0 MB/s eta 0:00:00
Collecting kconfiglib==13.7.1 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 9))
  Downloading kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.7/145.7 kB 4.8 MB/s eta 0:00:00
Collecting construct==2.10.54 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 10))
  Downloading construct-2.10.54.tar.gz (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.3/55.3 kB 996.9 kB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting python-socketio<5 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 11))
  Downloading python_socketio-4.6.1-py2.py3-none-any.whl (51 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.9/51.9 kB 1.2 MB/s eta 0:00:00
Collecting gdbgui==0.13.2.0 (from -r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
  Downloading gdbgui-0.13.2.0-py3-none-any.whl (878 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 878.4/878.4 kB 5.9 MB/s eta 0:00:00
Collecting mbed-tools>=7.55.1.dev1 (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 1))
  Downloading mbed_tools-7.59.0-py3-none-any.whl (127 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.3/127.3 kB 1.6 MB/s eta 0:00:00
Collecting pytest==6.2.5 (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 2))
  Downloading pytest-6.2.5-py3-none-any.whl (280 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 280.7/280.7 kB 4.9 MB/s eta 0:00:00
Collecting mbed-ls==1.8.11 (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 3))
  Downloading mbed_ls-1.8.11-py2.py3-none-any.whl (37 kB)
Collecting pdoc3 (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 4))
  Downloading pdoc3-0.10.0-py3-none-any.whl (135 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 2.7 MB/s eta 0:00:00
Collecting gitpython (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 5))
  Downloading GitPython-3.1.31-py3-none-any.whl (184 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 184.3/184.3 kB 2.2 MB/s eta 0:00:00
Collecting python-dotenv (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 6))
  Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting pyudev (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 7))
  Downloading pyudev-0.24.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.8/61.8 kB 598.3 kB/s eta 0:00:00
Collecting typing-extensions (from -r /var/chip/scripts/setup/requirements.mbed.txt (line 8))
  Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting bflb-iot-tool>=1.8.0 (from -r /var/chip/scripts/setup/requirements.bouffalolab.txt (line 1))
  Downloading bflb-iot-tool-1.8.3.tar.gz (35.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.7/35.7 MB 3.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pytest-json-report>=1.5.0 (from -r /var/chip/scripts/setup/requirements.openiotsdk.txt (line 1))
  Downloading pytest_json_report-1.5.0-py3-none-any.whl (13 kB)
Collecting imgtool>=1.6.0 (from -r /var/chip/scripts/setup/requirements.openiotsdk.txt (line 2))
  Downloading imgtool-1.9.0-py3-none-any.whl (27 kB)
Collecting leb128 (from -r /var/chip/scripts/setup/requirements.infineon.txt (line 1))
  Downloading leb128-1.0.5.tar.gz (3.3 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pypng==0.0.21 (from -r /var/chip/scripts/setup/requirements.telink.txt (line 2))
  Downloading pypng-0.0.21-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.1/48.1 kB 846.9 kB/s eta 0:00:00
Collecting PyQRCode==1.2.1 (from -r /var/chip/scripts/setup/requirements.telink.txt (line 3))
  Downloading PyQRCode-1.2.1.zip (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.9/41.9 kB 612.1 kB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting requests>=2.24.0 (from -r /var/chip/scripts/setup/requirements.txt (line 27))
  Downloading requests-2.28.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 1.3 MB/s eta 0:00:00
Requirement already satisfied: wheel in /var/chip/.environment/pigweed-venv/lib/python3.9/site-packages (from -r /var/chip/scripts/setup/requirements.txt (line 30)) (0.38.4)
Collecting pgi (from -r /var/chip/scripts/setup/requirements.txt (line 31))
  Downloading pgi-0.0.11.2.tar.gz (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.4/239.4 kB 3.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting portpicker (from -r /var/chip/scripts/setup/requirements.txt (line 37))
  Downloading portpicker-1.5.2-py3-none-any.whl (14 kB)
Collecting mobly (from -r /var/chip/scripts/setup/requirements.txt (line 38))
  Downloading mobly-1.12.1.tar.gz (194 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.6/194.6 kB 4.4 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting west>=0.12.0 (from -r /var/chip/scripts/setup/requirements.txt (line 41))
  Downloading west-1.0.0-py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.2/87.2 kB 2.8 MB/s eta 0:00:00
Collecting intelhex (from -r /var/chip/scripts/setup/requirements.txt (line 42))
  Downloading intelhex-2.3.0-py2.py3-none-any.whl (50 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.9/50.9 kB 1.7 MB/s eta 0:00:00
Collecting cbor (from -r /var/chip/scripts/setup/requirements.txt (line 43))
  Downloading cbor-1.0.0.tar.gz (20 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting cbor2 (from -r /var/chip/scripts/setup/requirements.txt (line 44))
  Downloading cbor2-5.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (223 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 223.1/223.1 kB 4.7 MB/s eta 0:00:00
Collecting jsonschema (from -r /var/chip/scripts/setup/requirements.txt (line 45))
  Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 1.2 MB/s eta 0:00:00
Collecting lockfile (from -r /var/chip/scripts/setup/requirements.txt (line 48))
  Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting psutil>=5.7.3 (from -r /var/chip/scripts/setup/requirements.txt (line 49))
  Downloading psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 280.2/280.2 kB 2.2 MB/s eta 0:00:00
Collecting ipython (from -r /var/chip/scripts/setup/requirements.txt (line 52))
  Downloading ipython-8.11.0-py3-none-any.whl (793 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 793.3/793.3 kB 7.0 MB/s eta 0:00:00
Collecting appnope (from -r /var/chip/scripts/setup/requirements.txt (line 53))
  Downloading appnope-0.1.3-py2.py3-none-any.whl (4.4 kB)
Collecting appdirs (from -r /var/chip/scripts/setup/requirements.txt (line 54))
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting coloredlogs (from -r /var/chip/scripts/setup/requirements.txt (line 55))
  Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 1.1 MB/s eta 0:00:00
Collecting watchdog (from -r /var/chip/scripts/setup/requirements.txt (line 56))
  Downloading watchdog-2.3.1-py3-none-manylinux2014_x86_64.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 431.6 kB/s eta 0:00:00
Collecting build==0.8.0 (from -r /var/chip/scripts/setup/requirements.txt (line 57))
  Downloading build-0.8.0-py3-none-any.whl (17 kB)
Collecting mypy==0.971 (from -r /var/chip/scripts/setup/requirements.txt (line 58))
  Downloading mypy-0.971-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (17.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.6/17.6 MB 8.0 MB/s eta 0:00:00
Collecting mypy-protobuf==3.2.0 (from -r /var/chip/scripts/setup/requirements.txt (line 59))
  Downloading mypy_protobuf-3.2.0-py3-none-any.whl (15 kB)
Collecting protobuf==3.20.1 (from -r /var/chip/scripts/setup/requirements.txt (line 60))
  Downloading protobuf-3.20.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 5.4 MB/s eta 0:00:00
Collecting types-protobuf==3.19.22 (from -r /var/chip/scripts/setup/requirements.txt (line 61))
  Downloading types_protobuf-3.19.22-py3-none-any.whl (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.2/52.2 kB 2.5 MB/s eta 0:00:00
Collecting anytree (from -r /var/chip/scripts/setup/requirements.txt (line 64))
  Downloading anytree-2.8.0-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.7/41.7 kB 1.8 MB/s eta 0:00:00
Collecting cxxfilt (from -r /var/chip/scripts/setup/requirements.txt (line 65))
  Downloading cxxfilt-0.3.0-py2.py3-none-any.whl (4.6 kB)
Collecting ghapi (from -r /var/chip/scripts/setup/requirements.txt (line 66))
  Downloading ghapi-1.0.3-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.1/58.1 kB 2.2 MB/s eta 0:00:00
Collecting pandas (from -r /var/chip/scripts/setup/requirements.txt (line 67))
  Downloading pandas-1.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 9.4 MB/s eta 0:00:00
Collecting tabulate (from -r /var/chip/scripts/setup/requirements.txt (line 68))
  Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting lark (from -r /var/chip/scripts/setup/requirements.txt (line 74))
  Downloading lark-1.1.5-py3-none-any.whl (107 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 108.0/108.0 kB 2.9 MB/s eta 0:00:00
Collecting stringcase (from -r /var/chip/scripts/setup/requirements.txt (line 76))
  Downloading stringcase-1.2.0.tar.gz (3.0 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting cryptography (from -r /var/chip/scripts/setup/requirements.txt (line 78))
  Downloading cryptography-39.0.2-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 9.2 MB/s eta 0:00:00
Collecting colorama (from -r /var/chip/scripts/setup/requirements.txt (line 81))
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting tornado (from -r /var/chip/scripts/setup/requirements.txt (line 84))
  Downloading tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 424.0/424.0 kB 9.3 MB/s eta 0:00:00
Collecting diskcache (from -r /var/chip/scripts/setup/requirements.txt (line 87))
  Downloading diskcache-5.4.0-py3-none-any.whl (44 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.0/45.0 kB 331.8 kB/s eta 0:00:00
Collecting websockets (from -r /var/chip/scripts/setup/requirements.txt (line 88))
  Downloading websockets-10.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.5/106.5 kB 2.4 MB/s eta 0:00:00
Collecting Flask<1.0,>=0.12.2 (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
  Downloading Flask-0.12.5-py2.py3-none-any.whl (81 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.7/81.7 kB 3.0 MB/s eta 0:00:00
Collecting Flask-Compress<2.0,>=1.4.0 (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
  Downloading Flask_Compress-1.13-py3-none-any.whl (7.9 kB)
Collecting Flask-SocketIO<3.0,>=2.9 (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
  Downloading Flask_SocketIO-2.9.6-py2.py3-none-any.whl (16 kB)
Collecting gevent<2.0,>=1.2.2 (from gdbgui==0.13.2.0->-r /var/chip/scripts/setup/requirements.esp32.txt (line 12))
  Downloading gevent-1.5.0.tar.gz (5.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 9.3 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  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.
  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
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
['/var/chip/.environment/pigweed-venv/bin/python', '-m', 'pip', 'install', '--log', '/var/chip/.environment/pigweed-venv/pip-requirements.log', '--requirement=/var/chip/scripts/setup/requirements.txt', '--constraint=/var/chip/scripts/setup/constraints.txt'] {'stdout': <_io.TextIOWrapper name=3 mode='w+' encoding='UTF-8'>, 'stderr': -2}

None
Traceback (most recent call last):
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 877, in <module>
    sys.exit(main())
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 869, in main
    return EnvSetup(**vars(parse())).setup()
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 522, in setup
    result = step(spin)
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 682, in virtualenv
    if not virtualenv_setup.install(
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 296, in install
    pip_install(
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 262, in pip_install
    return _check_call(cmd)
  File "/var/chip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 88, in _check_call
    subprocess.check_call(args, **kwargs)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/var/chip/.environment/pigweed-venv/bin/python', '-m', 'pip', 'install', '--log', '/var/chip/.environment/pigweed-venv/pip-requirements.log', '--requirement=/var/chip/scripts/setup/requirements.txt', '--constraint=/var/chip/scripts/setup/constraints.txt']' returned non-zero exit status 1.

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

mmt-10 commented 1 year 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>
aDaisukeSakyo commented 1 year ago

I ran into the same problem. To get around this problem, I have set python to 3.11 for now.

deveritec-rosc commented 1 year ago

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?

Yinxq commented 1 year ago

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
Yinxq commented 1 year ago

I've tried a few ways to lower the Cython version to 0.29.36, but with no success.

TPVChethan commented 5 months ago

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!!!.