Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Building frozenlist fails on Python 3.11 beta #305

Closed
dstansby opened this issue Jul 11, 2022 · 7 comments
Closed

Building frozenlist fails on Python 3.11 beta #305

dstansby opened this issue Jul 11, 2022 · 7 comments
Assignees

Comments

@dstansby
Copy link

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.2781615Zexit 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 typePyFrameObject’ {akastruct _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_SetLineNumber2022-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

@ConorMacBride
Copy link

This seems to be the same issue as #285

@cclauss
Copy link
Contributor

cclauss commented Jul 17, 2022

Failing test in #292, #306, #308

@webknjaz
Copy link
Member

webknjaz commented Aug 2, 2022

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.

@webknjaz
Copy link
Member

webknjaz commented Aug 2, 2022

@webknjaz
Copy link
Member

webknjaz commented Aug 3, 2022

Release attempt: https://github.com/aio-libs/frozenlist/actions/runs/2785213955.

Outcome: https://pypi.org/project/frozenlist/1.3.1/

@webknjaz webknjaz closed this as completed Aug 3, 2022
@felixxm
Copy link

felixxm commented Aug 3, 2022

Release attempt: https://github.com/aio-libs/frozenlist/actions/runs/2785213955.

Outcome: https://pypi.org/project/frozenlist/1.3.1/

It works, thanks 🎁

@felixxm
Copy link

felixxm commented Aug 3, 2022

Now, we're waiting only for aiohttp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants