Building frozenlist fails on Python 3.11 beta
Closed this issue · 7 comments
Long story short
As part of the sunpy CI we've tried building with Python 3.11. frozenlist
is one of our dependencies, and the build fails.
Expected behaviour
frozenlist
builds fine.
Actual behaviour
frozenlist
build fails, with:
2022-07-11T20:46:52.2781505Z × Building wheel for frozenlist (pyproject.toml) did not run successfully.
2022-07-11T20:46:52.2781615Z │ exit code: 1
2022-07-11T20:46:52.2781742Z ╰─> [43 lines of output]
2022-07-11T20:46:52.2781820Z **********************
2022-07-11T20:46:52.2781908Z * Accellerated build *
2022-07-11T20:46:52.2781980Z **********************
2022-07-11T20:46:52.2782063Z running bdist_wheel
2022-07-11T20:46:52.2782124Z running build
2022-07-11T20:46:52.2782203Z running build_py
2022-07-11T20:46:52.2782280Z creating build
2022-07-11T20:46:52.2782460Z creating build/lib.linux-x86_64-cpython-311
2022-07-11T20:46:52.2782660Z creating build/lib.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2782910Z copying frozenlist/__init__.py -> build/lib.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2782990Z running egg_info
2022-07-11T20:46:52.2783143Z writing frozenlist.egg-info/PKG-INFO
2022-07-11T20:46:52.2783377Z writing dependency_links to frozenlist.egg-info/dependency_links.txt
2022-07-11T20:46:52.2783591Z writing top-level names to frozenlist.egg-info/top_level.txt
2022-07-11T20:46:52.2783801Z reading manifest file 'frozenlist.egg-info/SOURCES.txt'
2022-07-11T20:46:52.2783968Z reading manifest template 'MANIFEST.in'
2022-07-11T20:46:52.2784229Z warning: no previously-included files matching '*.pyc' found anywhere in distribution
2022-07-11T20:46:52.2784490Z warning: no previously-included files matching '*.pyd' found anywhere in distribution
2022-07-11T20:46:52.2784747Z warning: no previously-included files matching '*.so' found anywhere in distribution
2022-07-11T20:46:52.2785043Z warning: no previously-included files matching '*.lib' found anywhere in distribution
2022-07-11T20:46:52.2785298Z warning: no previously-included files matching '*.dll' found anywhere in distribution
2022-07-11T20:46:52.2785592Z warning: no previously-included files matching '*.a' found anywhere in distribution
2022-07-11T20:46:52.2785856Z warning: no previously-included files matching '*.obj' found anywhere in distribution
2022-07-11T20:46:52.2786094Z warning: no previously-included files found matching 'frozenlist/*.html'
2022-07-11T20:46:52.2786314Z no previously-included directories found matching 'docs/_build'
2022-07-11T20:46:52.2786456Z adding license file 'LICENSE'
2022-07-11T20:46:52.2786661Z writing manifest file 'frozenlist.egg-info/SOURCES.txt'
2022-07-11T20:46:52.2786893Z copying frozenlist/__init__.pyi -> build/lib.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2787149Z copying frozenlist/_frozenlist.pyx -> build/lib.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2787392Z copying frozenlist/py.typed -> build/lib.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2787476Z running build_ext
2022-07-11T20:46:52.2787653Z building 'frozenlist._frozenlist' extension
2022-07-11T20:46:52.2787831Z creating build/temp.linux-x86_64-cpython-311
2022-07-11T20:46:52.2788028Z creating build/temp.linux-x86_64-cpython-311/frozenlist
2022-07-11T20:46:52.2788649Z gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/runner/work/sunpy/sunpy/.tox/py311/include -I/opt/hostedtoolcache/Python/3.11.0-beta.3/x64/include/python3.11 -c frozenlist/_frozenlist.c -o build/temp.linux-x86_64-cpython-311/frozenlist/_frozenlist.o
2022-07-11T20:46:52.2788868Z frozenlist/_frozenlist.c: In function ‘__Pyx_AddTraceback’:
2022-07-11T20:46:52.2789184Z frozenlist/_frozenlist.c:432:62: error: dereferencing pointer to incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
2022-07-11T20:46:52.2789447Z 432 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
2022-07-11T20:46:52.2789552Z | ^~
2022-07-11T20:46:52.2789826Z frozenlist/_frozenlist.c:7127:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
2022-07-11T20:46:52.2789960Z 7127 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
2022-07-11T20:46:52.2790051Z | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-07-11T20:46:52.2790243Z error: command '/usr/bin/gcc' failed with exit code 1
2022-07-11T20:46:52.2790327Z [end of output]
2022-07-11T20:46:52.2790378Z
2022-07-11T20:46:52.2790545Z note: This error originates from a subprocess, and is likely not a problem with pip.
2022-07-11T20:46:52.2790659Z ERROR: Failed building wheel for frozenlist
Steps to reproduce
I haven't tried to reproduce this in isolation, but the sunpy CI build is here: https://github.com/sunpy/sunpy/runs/7290065780
Your environment
frozenlist
1.3.0, Python 3.11.0-beta3
This seems to be the same issue as #285
I hope the resolution will be the same as aio-libs/yarl#706. frozenlist
is the next on my list to try publishing a build using a newer version of Cython.
Release attempt: https://github.com/aio-libs/frozenlist/actions/runs/2785213955.
Release attempt: https://github.com/aio-libs/frozenlist/actions/runs/2785213955.
Release attempt: https://github.com/aio-libs/frozenlist/actions/runs/2785213955.
It works, thanks 🎁
Now, we're waiting only for aiohttp
.