msgpack-python icon indicating copy to clipboard operation
msgpack-python copied to clipboard

Error "Building wheel for msgpack (pyproject.toml) did not run successfully"

Open PunyIron opened this issue 8 months ago • 3 comments

Not able to build latest version 1.0.7 with latest Python 3.12.0 on "linux/arm/v7" platform. Older version 1.0.5, with older Python 3.11.5 even with latest Python 3.12.0, on "linux/arm/v7" platform is builded without problem. It means that problem is somewhere between 1.0.5 a 1.0.7.

Error log from my GitHub Actions workflow:

2023-10-16T17:32:25.8011642Z #13 [8/9] RUN pip install --upgrade --no-cache-dir -r requirements.txt
2023-10-16T17:32:30.7626713Z #13 4.962 Collecting influxdb==5.3.1 (from -r requirements.txt (line 1))
2023-10-16T17:32:31.1806728Z #13 5.475   Downloading influxdb-5.3.1-py2.py3-none-any.whl (77 kB)
2023-10-16T17:32:31.4789948Z #13 5.623      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.9/77.9 kB 676.5 kB/s eta 0:00:00
2023-10-16T17:32:32.0594773Z #13 6.270 Collecting pyyaml (from -r requirements.txt (line 2))
2023-10-16T17:32:32.0596114Z #13 6.302   Downloading PyYAML-6.0.1.tar.gz (125 kB)
2023-10-16T17:32:32.2097294Z #13 6.355      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.2/125.2 kB 5.5 MB/s eta 0:00:00
2023-10-16T17:32:33.5637157Z #13 7.798   Installing build dependencies: started
2023-10-16T17:33:02.1277187Z #13 36.29   Installing build dependencies: finished with status 'done'
2023-10-16T17:33:02.1279080Z #13 36.30   Getting requirements to build wheel: started
2023-10-16T17:33:13.9690259Z #13 48.19   Getting requirements to build wheel: finished with status 'done'
2023-10-16T17:33:13.9691726Z #13 48.26   Preparing metadata (pyproject.toml): started
2023-10-16T17:33:16.8254808Z #13 50.98   Preparing metadata (pyproject.toml): finished with status 'done'
2023-10-16T17:33:17.1230541Z #13 51.33 Collecting python-dateutil>=2.6.0 (from influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:33:17.1232354Z #13 51.37   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
2023-10-16T17:33:17.2731881Z #13 51.42      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 11.4 MB/s eta 0:00:00
2023-10-16T17:33:18.1749569Z #13 52.37 Collecting pytz (from influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:33:18.1751382Z #13 52.40   Downloading pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
2023-10-16T17:33:18.7572947Z #13 53.05 Collecting requests>=2.17.0 (from influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:33:18.9073382Z #13 53.08   Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
2023-10-16T17:33:19.0148089Z #13 53.31 Collecting six>=1.10.0 (from influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:33:19.1646801Z #13 53.34   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
2023-10-16T17:33:20.0190873Z #13 54.24 Collecting msgpack (from influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:33:20.0192390Z #13 54.27   Downloading msgpack-1.0.7.tar.gz (166 kB)
2023-10-16T17:33:20.1690844Z #13 54.31      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.3/166.3 kB 11.4 MB/s eta 0:00:00
2023-10-16T17:33:20.3197451Z #13 54.49   Installing build dependencies: started
2023-10-16T17:33:48.2711681Z #13 82.57   Installing build dependencies: finished with status 'done'
2023-10-16T17:33:48.4211394Z #13 82.57   Getting requirements to build wheel: started
2023-10-16T17:33:51.7284957Z #13 85.93   Getting requirements to build wheel: finished with status 'done'
2023-10-16T17:33:51.7286169Z #13 85.95   Installing backend dependencies: started
2023-10-16T17:33:58.4940538Z #13 92.66   Installing backend dependencies: finished with status 'done'
2023-10-16T17:33:58.4941878Z #13 92.66   Preparing metadata (pyproject.toml): started
2023-10-16T17:34:01.6507489Z #13 95.83   Preparing metadata (pyproject.toml): finished with status 'done'
2023-10-16T17:34:02.8215800Z #13 97.08 Collecting charset-normalizer<4,>=2 (from requests>=2.17.0->influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:34:02.8217459Z #13 97.12   Downloading charset_normalizer-3.3.0-py3-none-any.whl.metadata (32 kB)
2023-10-16T17:34:03.0813978Z #13 97.38 Collecting idna<4,>=2.5 (from requests>=2.17.0->influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:34:03.2314930Z #13 97.41   Downloading idna-3.4-py3-none-any.whl (61 kB)
2023-10-16T17:34:03.2316113Z #13 97.44      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 11.2 MB/s eta 0:00:00
2023-10-16T17:34:03.9566430Z #13 98.19 Collecting urllib3<3,>=1.21.1 (from requests>=2.17.0->influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:34:03.9567956Z #13 98.25   Downloading urllib3-2.0.6-py3-none-any.whl.metadata (6.6 kB)
2023-10-16T17:34:04.4079763Z #13 98.60 Collecting certifi>=2017.4.17 (from requests>=2.17.0->influxdb==5.3.1->-r requirements.txt (line 1))
2023-10-16T17:34:04.4081318Z #13 98.63   Downloading certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
2023-10-16T17:34:04.8590630Z #13 99.03 Downloading requests-2.31.0-py3-none-any.whl (62 kB)
2023-10-16T17:34:04.8591781Z #13 99.06    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 11.3 MB/s eta 0:00:00
2023-10-16T17:34:04.8592724Z #13 99.09 Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
2023-10-16T17:34:04.9787068Z #13 99.17    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 kB 10.6 MB/s eta 0:00:00
2023-10-16T17:34:04.9788123Z #13 99.20 Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
2023-10-16T17:34:04.9789528Z #13 99.24    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 11.3 MB/s eta 0:00:00
2023-10-16T17:34:04.9790518Z #13 99.27 Downloading charset_normalizer-3.3.0-py3-none-any.whl (48 kB)
2023-10-16T17:34:05.0826193Z #13 99.31    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.2/48.2 kB 11.8 MB/s eta 0:00:00
2023-10-16T17:34:05.0827218Z #13 99.34 Downloading urllib3-2.0.6-py3-none-any.whl (123 kB)
2023-10-16T17:34:05.2041877Z #13 99.38    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.8/123.8 kB 11.2 MB/s eta 0:00:00
2023-10-16T17:34:05.2042968Z #13 99.50 Building wheels for collected packages: pyyaml, msgpack
2023-10-16T17:34:05.3550604Z #13 99.51   Building wheel for pyyaml (pyproject.toml): started
2023-10-16T17:34:08.5068945Z #13 102.8   Building wheel for pyyaml (pyproject.toml): finished with status 'done'
2023-10-16T17:34:08.6577716Z #13 102.8   Created wheel for pyyaml: filename=PyYAML-6.0.1-cp312-cp312-linux_armv7l.whl size=45361 sha256=385fce1c3b284260f1d6dd839d1a92f6611fe566ad1a7c381742d0fabee32251
2023-10-16T17:34:08.6580939Z #13 102.8   Stored in directory: /tmp/pip-ephem-wheel-cache-r_ttzll0/wheels/4a/68/8e/df9cd97725df58bd2ab35992dce00b50f70490a3d672da85ea
2023-10-16T17:34:08.6583216Z #13 102.8   Building wheel for msgpack (pyproject.toml): started
2023-10-16T17:34:13.0179927Z #13 107.3   Building wheel for msgpack (pyproject.toml): finished with status 'error'
2023-10-16T17:34:13.1685277Z #13 107.3   error: subprocess-exited-with-error
2023-10-16T17:34:13.1686440Z #13 107.3   
2023-10-16T17:34:13.1688035Z #13 107.3   × Building wheel for msgpack (pyproject.toml) did not run successfully.
2023-10-16T17:34:13.1688931Z #13 107.3   │ exit code: 1
2023-10-16T17:34:13.1689414Z #13 107.3   ╰─> [36 lines of output]
2023-10-16T17:34:13.1689879Z #13 107.3       running bdist_wheel
2023-10-16T17:34:13.1690331Z #13 107.3       running build
2023-10-16T17:34:13.1690744Z #13 107.3       running build_py
2023-10-16T17:34:13.1691164Z #13 107.3       creating build
2023-10-16T17:34:13.1691818Z #13 107.3       creating build/lib.linux-armv7l-cpython-312
2023-10-16T17:34:13.1692656Z #13 107.3       creating build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1693725Z #13 107.3       copying msgpack/exceptions.py -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1694906Z #13 107.3       copying msgpack/fallback.py -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1696036Z #13 107.3       copying msgpack/ext.py -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1697158Z #13 107.3       copying msgpack/__init__.py -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1697911Z #13 107.3       running egg_info
2023-10-16T17:34:13.1698468Z #13 107.3       writing msgpack.egg-info/PKG-INFO
2023-10-16T17:34:13.1699475Z #13 107.3       writing dependency_links to msgpack.egg-info/dependency_links.txt
2023-10-16T17:34:13.1700445Z #13 107.3       writing top-level names to msgpack.egg-info/top_level.txt
2023-10-16T17:34:13.1701358Z #13 107.3       reading manifest file 'msgpack.egg-info/SOURCES.txt'
2023-10-16T17:34:13.1702157Z #13 107.3       reading manifest template 'MANIFEST.in'
2023-10-16T17:34:13.1703026Z #13 107.3       warning: no files found matching '*.c' under directory 'msgpack'
2023-10-16T17:34:13.1703832Z #13 107.3       adding license file 'COPYING'
2023-10-16T17:34:13.1704606Z #13 107.3       writing manifest file 'msgpack.egg-info/SOURCES.txt'
2023-10-16T17:34:13.1705903Z #13 107.3       copying msgpack/_cmsgpack.cpp -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1707168Z #13 107.3       copying msgpack/_cmsgpack.pyx -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1708412Z #13 107.3       copying msgpack/_packer.pyx -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1709643Z #13 107.3       copying msgpack/_unpacker.pyx -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1710925Z #13 107.3       copying msgpack/buff_converter.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1821223Z #13 107.3       copying msgpack/pack.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1822441Z #13 107.3       copying msgpack/pack_template.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1823616Z #13 107.3       copying msgpack/sysdep.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1824752Z #13 107.3       copying msgpack/unpack.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1825915Z #13 107.3       copying msgpack/unpack_define.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1827159Z #13 107.3       copying msgpack/unpack_template.h -> build/lib.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1827980Z #13 107.3       running build_ext
2023-10-16T17:34:13.1828560Z #13 107.3       building 'msgpack._cmsgpack' extension
2023-10-16T17:34:13.1829324Z #13 107.3       creating build/temp.linux-armv7l-cpython-312
2023-10-16T17:34:13.1830178Z #13 107.3       creating build/temp.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:13.1832081Z #13 107.3       gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I. -I/usr/local/include/python3.12 -c msgpack/_cmsgpack.cpp -o build/temp.linux-armv7l-cpython-312/msgpack/_cmsgpack.o
2023-10-16T17:34:13.1834099Z #13 107.3       error: command 'gcc' failed: No such file or directory
2023-10-16T17:34:13.1834737Z #13 107.3       [end of output]
2023-10-16T17:34:13.1835145Z #13 107.3   
2023-10-16T17:34:13.1835821Z #13 107.3   note: This error originates from a subprocess, and is likely not a problem with pip.
2023-10-16T17:34:13.1836734Z #13 107.4   ERROR: Failed building wheel for msgpack
2023-10-16T17:34:13.1837297Z #13 107.4 Successfully built pyyaml
2023-10-16T17:34:13.1837754Z #13 107.4 Failed to build msgpack
2023-10-16T17:34:13.1838777Z #13 107.4 ERROR: Could not build wheels for msgpack, which is required to install pyproject.toml-based projects
2023-10-16T17:34:15.1850372Z #13 ERROR: process "/bin/sh -c pip install --upgrade --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
2023-10-16T17:34:15.1851590Z ------
2023-10-16T17:34:15.1852197Z  > [8/9] RUN pip install --upgrade --no-cache-dir -r requirements.txt:
2023-10-16T17:34:15.1853108Z 107.3       creating build/temp.linux-armv7l-cpython-312/msgpack
2023-10-16T17:34:15.1854996Z 107.3       gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I. -I/usr/local/include/python3.12 -c msgpack/_cmsgpack.cpp -o build/temp.linux-armv7l-cpython-312/msgpack/_cmsgpack.o
2023-10-16T17:34:15.1856740Z 107.3       error: command 'gcc' failed: No such file or directory
2023-10-16T17:34:15.1857347Z 107.3       [end of output]
2023-10-16T17:34:15.1857724Z 107.3   
2023-10-16T17:34:15.1858379Z 107.3   note: This error originates from a subprocess, and is likely not a problem with pip.
2023-10-16T17:34:15.1859406Z 107.4   ERROR: Failed building wheel for msgpack
2023-10-16T17:34:15.1859960Z 107.4 Successfully built pyyaml
2023-10-16T17:34:15.1860420Z 107.4 Failed to build msgpack
2023-10-16T17:34:15.1861388Z 107.4 ERROR: Could not build wheels for msgpack, which is required to install pyproject.toml-based projects
2023-10-16T17:34:15.1862309Z ------

Thanks

PunyIron avatar Oct 16 '23 17:10 PunyIron