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

Python 3.12: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ #829

Closed
1 task done
hugovk opened this issue Mar 1, 2023 · 8 comments · Fixed by #881
Closed
1 task done
Labels

Comments

@hugovk
Copy link

hugovk commented Mar 1, 2023

Describe the bug

We're using yarl in https://github.com/python/blurb_it and are testing against 3.12-dev on GitHub Actions to help find problems early so they can be fixed before the full release.

With Python 3.12.0a4, yarl-1.8.2.tar.gz installed fine.

With the newest Python 3.12.0a5, yarl-1.8.2.tar.gz fails to install (on Ubuntu). For example:

yarl/_quoting_c.c:10674:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
10674 |             const digit* digits = ((PyLongObject*)x)->ob_digit;

Looks like this is the cause: python/cpython#101292 / python/cpython#101291

Here's a similar report for Cython: cython/cython#5238

To Reproduce

  1. With Ubuntu 22.04 (or macOS Ventura 13.2.1) and Python 3.12.0a5
  2. python3.12 -m pip install yarl

Expected behavior

yarl installs.

Logs/tracebacks

2023-03-01T04:57:41.6052624Z   Building wheel for yarl (pyproject.toml): started
2023-03-01T04:57:42.0820357Z   Building wheel for yarl (pyproject.toml): finished with status 'error'
2023-03-01T04:57:42.1015360Z �[0m  �[1;31merror�[0m: �[1msubprocess-exited-with-error�[0m
2023-03-01T04:57:42.1015657Z   
2023-03-01T04:57:42.1016126Z   �[31m�[0m �[32mBuilding wheel for yarl �[0m�[1;32m(�[0m�[32mpyproject.toml�[0m�[1;32m)�[0m did not run successfully.
2023-03-01T04:57:42.1016528Z   �[31m│�[0m exit code: �[1;36m1�[0m
2023-03-01T04:57:42.1016867Z   �[31m╰─>�[0m �[31m[268 lines of output]�[0m
2023-03-01T04:57:42.1017599Z   �[31m   �[0m /tmp/pip-build-env-z56s99yf/overlay/lib/python3.12/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
2023-03-01T04:57:42.1018164Z   �[31m   �[0m   warnings.warn(msg, warning_class)
2023-03-01T04:57:42.1018607Z   �[31m   �[0m **********************
2023-03-01T04:57:42.1019182Z   �[31m   �[0m * Accelerated build *
2023-03-01T04:57:42.1019460Z   �[31m   �[0m **********************
2023-03-01T04:57:42.1019732Z   �[31m   �[0m running bdist_wheel
2023-03-01T04:57:42.1019999Z   �[31m   �[0m running build
2023-03-01T04:57:42.1020250Z   �[31m   �[0m running build_py
2023-03-01T04:57:42.1020519Z   �[31m   �[0m creating build
2023-03-01T04:57:42.1020861Z   �[31m   �[0m creating build/lib.linux-x86_64-cpython-312
2023-03-01T04:57:42.1021241Z   �[31m   �[0m creating build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1021677Z   �[31m   �[0m copying yarl/_quoting.py -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1022460Z   �[31m   �[0m copying yarl/_url.py -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1022897Z   �[31m   �[0m copying yarl/__init__.py -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1023360Z   �[31m   �[0m copying yarl/_quoting_py.py -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1023702Z   �[31m   �[0m running egg_info
2023-03-01T04:57:42.1024020Z   �[31m   �[0m writing yarl.egg-info/PKG-INFO
2023-03-01T04:57:42.1024407Z   �[31m   �[0m writing dependency_links to yarl.egg-info/dependency_links.txt
2023-03-01T04:57:42.1024822Z   �[31m   �[0m writing requirements to yarl.egg-info/requires.txt
2023-03-01T04:57:42.1025226Z   �[31m   �[0m writing top-level names to yarl.egg-info/top_level.txt
2023-03-01T04:57:42.1025619Z   �[31m   �[0m reading manifest file 'yarl.egg-info/SOURCES.txt'
2023-03-01T04:57:42.1025994Z   �[31m   �[0m reading manifest template 'MANIFEST.in'
2023-03-01T04:57:42.1026461Z   �[31m   �[0m warning: no previously-included files matching '*.pyc' found anywhere in distribution
2023-03-01T04:57:42.1026994Z   �[31m   �[0m warning: no previously-included files matching '*.cache' found anywhere in distribution
2023-03-01T04:57:42.1027462Z   �[31m   �[0m warning: no previously-included files found matching 'yarl/*.html'
2023-03-01T04:57:42.1027912Z   �[31m   �[0m warning: no previously-included files found matching 'yarl/*.so'
2023-03-01T04:57:42.1028374Z   �[31m   �[0m warning: no previously-included files found matching 'yarl/*.pyd'
2023-03-01T04:57:42.1028814Z   �[31m   �[0m no previously-included directories found matching 'docs/_build'
2023-03-01T04:57:42.1029182Z   �[31m   �[0m adding license file 'LICENSE'
2023-03-01T04:57:42.1029547Z   �[31m   �[0m writing manifest file 'yarl.egg-info/SOURCES.txt'
2023-03-01T04:57:42.1029985Z   �[31m   �[0m copying yarl/__init__.pyi -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1030429Z   �[31m   �[0m copying yarl/_quoting_c.pyi -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1030890Z   �[31m   �[0m copying yarl/_quoting_c.pyx -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1031335Z   �[31m   �[0m copying yarl/py.typed -> build/lib.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1031657Z   �[31m   �[0m running build_ext
2023-03-01T04:57:42.1031975Z   �[31m   �[0m building 'yarl._quoting_c' extension
2023-03-01T04:57:42.1032345Z   �[31m   �[0m creating build/temp.linux-x86_64-cpython-312
2023-03-01T04:57:42.1032718Z   �[31m   �[0m creating build/temp.linux-x86_64-cpython-312/yarl
2023-03-01T04:57:42.1033441Z   �[31m   �[0m gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12 -c yarl/_quoting_c.c -o build/temp.linux-x86_64-cpython-312/yarl/_quoting_c.o
2023-03-01T04:57:42.1034109Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__pyx_pf_4yarl_10_quoting_c_7_Quoter_4__reduce_cython__’:
2023-03-01T04:57:42.1034652Z   �[31m   �[0m yarl/_quoting_c.c:4425:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1035282Z   �[31m   �[0m  4425 |     __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle__Quoter); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error)
2023-03-01T04:57:42.1035685Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1036159Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1036793Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1037178Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1037679Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1038139Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1038499Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1039006Z   �[31m   �[0m yarl/_quoting_c.c:4471:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1039619Z   �[31m   �[0m  4471 |     __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pyx_unpickle__Quoter); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 15, __pyx_L1_error)
2023-03-01T04:57:42.1040033Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1040503Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1041032Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1041427Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1041922Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1042368Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1042732Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1043159Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__pyx_f_4yarl_10_quoting_c_9_Unquoter__do_unquote’:
2023-03-01T04:57:42.1043693Z   �[31m   �[0m yarl/_quoting_c.c:5166:9: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1044135Z   �[31m   �[0m  5166 |         if (unlikely(!Py_OptimizeFlag)) {
2023-03-01T04:57:42.1044437Z   �[31m   �[0m       |         ^~
2023-03-01T04:57:42.1044891Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:48,
2023-03-01T04:57:42.1045290Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1045779Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/pydebug.h:13:37: note: declared here
2023-03-01T04:57:42.1046255Z   �[31m   �[0m    13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
2023-03-01T04:57:42.1046639Z   �[31m   �[0m       |                                     ^~~~~~~~~~~~~~~
2023-03-01T04:57:42.1047099Z   �[31m   �[0m yarl/_quoting_c.c:5471:11: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1047548Z   �[31m   �[0m  5471 |           if (unlikely(!Py_OptimizeFlag)) {
2023-03-01T04:57:42.1047857Z   �[31m   �[0m       |           ^~
2023-03-01T04:57:42.1048306Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:48,
2023-03-01T04:57:42.1048707Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1049201Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/pydebug.h:13:37: note: declared here
2023-03-01T04:57:42.1049677Z   �[31m   �[0m    13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
2023-03-01T04:57:42.1050037Z   �[31m   �[0m       |                                     ^~~~~~~~~~~~~~~
2023-03-01T04:57:42.1050515Z   �[31m   �[0m yarl/_quoting_c.c:5505:9: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1050963Z   �[31m   �[0m  5505 |         if (unlikely(!Py_OptimizeFlag)) {
2023-03-01T04:57:42.1051261Z   �[31m   �[0m       |         ^~
2023-03-01T04:57:42.1051698Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:48,
2023-03-01T04:57:42.1052183Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1052673Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/pydebug.h:13:37: note: declared here
2023-03-01T04:57:42.1053134Z   �[31m   �[0m    13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
2023-03-01T04:57:42.1053512Z   �[31m   �[0m       |                                     ^~~~~~~~~~~~~~~
2023-03-01T04:57:42.1053952Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__pyx_pf_4yarl_10_quoting_c_9_Unquoter_4__reduce_cython__’:
2023-03-01T04:57:42.1054544Z   �[31m   �[0m yarl/_quoting_c.c:6220:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1055151Z   �[31m   �[0m  6220 |     __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle__Unquoter); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 13, __pyx_L1_error)
2023-03-01T04:57:42.1055566Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1056042Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1056583Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1056970Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1057469Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1057931Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1058280Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1058744Z   �[31m   �[0m yarl/_quoting_c.c:6266:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1059359Z   �[31m   �[0m  6266 |     __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle__Unquoter); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 15, __pyx_L1_error)
2023-03-01T04:57:42.1059780Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1060232Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1060769Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1061168Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1061666Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1062361Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1062721Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1063107Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__pyx_pymod_exec__quoting_c’:
2023-03-01T04:57:42.1063605Z   �[31m   �[0m yarl/_quoting_c.c:8425:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1064214Z   �[31m   �[0m  8425 |   __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ascii_letters); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
2023-03-01T04:57:42.1064615Z   �[31m   �[0m       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1065084Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1065618Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1066028Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1066528Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1066989Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1067429Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1067888Z   �[31m   �[0m yarl/_quoting_c.c:8427:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1068476Z   �[31m   �[0m  8427 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_digits); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error)
2023-03-01T04:57:42.1068872Z   �[31m   �[0m       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1069330Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1069940Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1070350Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1070837Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1071307Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1071667Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1072130Z   �[31m   �[0m yarl/_quoting_c.c:8506:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1072687Z   �[31m   �[0m  8506 |     __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 71, __pyx_L1_error)
2023-03-01T04:57:42.1073083Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1073556Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1074099Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1074486Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1074984Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1075450Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1075791Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1076258Z   �[31m   �[0m yarl/_quoting_c.c:8527:7: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1076831Z   �[31m   �[0m  8527 |       __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error)
2023-03-01T04:57:42.1077224Z   �[31m   �[0m       |       ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1077684Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1078228Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1078630Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1079131Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1079579Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1079938Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1080403Z   �[31m   �[0m yarl/_quoting_c.c:8540:7: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1080960Z   �[31m   �[0m  8540 |       __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error)
2023-03-01T04:57:42.1081357Z   �[31m   �[0m       |       ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1081824Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1082367Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1082821Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1083317Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1083778Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1084137Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1084581Z   �[31m   �[0m yarl/_quoting_c.c:8562:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1085208Z   �[31m   �[0m  8562 |     __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 74, __pyx_L1_error)
2023-03-01T04:57:42.1085606Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1086072Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1086609Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1087012Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1087551Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1087995Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1088351Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1088816Z   �[31m   �[0m yarl/_quoting_c.c:8583:7: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1089388Z   �[31m   �[0m  8583 |       __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
2023-03-01T04:57:42.1089766Z   �[31m   �[0m       |       ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1090240Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1090782Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1091182Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1091666Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1092127Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1092485Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1092861Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_init_unicode_iteration’:
2023-03-01T04:57:42.1093506Z   �[31m   �[0m yarl/_quoting_c.c:557:51: warning: implicit declaration of function ‘_PyUnicode_Ready’; did you mean ‘PyUnicode_READY’? [-Wimplicit-function-declaration]
2023-03-01T04:57:42.1094092Z   �[31m   �[0m   557 |                                               0 : _PyUnicode_Ready((PyObject *)(op)))
2023-03-01T04:57:42.1094483Z   �[31m   �[0m       |                                                   ^~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1094865Z   �[31m   �[0m yarl/_quoting_c.c:935:43: note: in definition of macro ‘unlikely’
2023-03-01T04:57:42.1095272Z   �[31m   �[0m   935 |   #define unlikely(x) __builtin_expect(!!(x), 0)
2023-03-01T04:57:42.1095629Z   �[31m   �[0m       |                                           ^
2023-03-01T04:57:42.1096042Z   �[31m   �[0m yarl/_quoting_c.c:8944:18: note: in expansion of macro ‘__Pyx_PyUnicode_READY’
2023-03-01T04:57:42.1096487Z   �[31m   �[0m  8944 |     if (unlikely(__Pyx_PyUnicode_READY(ustring) < 0)) return -1;
2023-03-01T04:57:42.1096853Z   �[31m   �[0m       |                  ^~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1097228Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_get_tp_dict_version’:
2023-03-01T04:57:42.1097820Z   �[31m   �[0m yarl/_quoting_c.c:9614:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1098299Z   �[31m   �[0m  9614 |     return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
2023-03-01T04:57:42.1098619Z   �[31m   �[0m       |     ^~~~~~
2023-03-01T04:57:42.1099081Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1099617Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1100016Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1100571Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1101030Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1101391Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1101780Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_get_object_dict_version’:
2023-03-01T04:57:42.1102404Z   �[31m   �[0m yarl/_quoting_c.c:9626:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1102893Z   �[31m   �[0m  9626 |     return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
2023-03-01T04:57:42.1103224Z   �[31m   �[0m       |     ^~~~~~
2023-03-01T04:57:42.1103685Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1104236Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1104621Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1105118Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1105582Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1105933Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1106327Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_object_dict_version_matches’:
2023-03-01T04:57:42.1106839Z   �[31m   �[0m yarl/_quoting_c.c:9630:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1107358Z   �[31m   �[0m  9630 |     if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
2023-03-01T04:57:42.1107676Z   �[31m   �[0m       |     ^~
2023-03-01T04:57:42.1108143Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1108688Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1109073Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1109571Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1110034Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1110388Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1110764Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx__GetModuleGlobalName’:
2023-03-01T04:57:42.1111275Z   �[31m   �[0m yarl/_quoting_c.c:9647:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1111789Z   �[31m   �[0m  9647 |     __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
2023-03-01T04:57:42.1112164Z   �[31m   �[0m       |     ^~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1112619Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1113162Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1113652Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1114140Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1114601Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1114961Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1115346Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_CLineForTraceback’:
2023-03-01T04:57:42.1115902Z   �[31m   �[0m yarl/_quoting_c.c:10311:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1116345Z   �[31m   �[0m 10311 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
2023-03-01T04:57:42.1116686Z   �[31m   �[0m       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1117142Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1117689Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1118090Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1118588Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1119037Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1119395Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1119861Z   �[31m   �[0m yarl/_quoting_c.c:10311:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
2023-03-01T04:57:42.1120303Z   �[31m   �[0m 10311 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
2023-03-01T04:57:42.1120628Z   �[31m   �[0m       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-03-01T04:57:42.1121098Z   �[31m   �[0m In file included from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/dictobject.h:90,
2023-03-01T04:57:42.1121644Z   �[31m   �[0m                  from /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/Python.h:61,
2023-03-01T04:57:42.1122028Z   �[31m   �[0m                  from yarl/_quoting_c.c:6:
2023-03-01T04:57:42.1122527Z   �[31m   �[0m /opt/hostedtoolcache/Python/3.12.0-alpha.5/x64/include/python3.12/cpython/dictobject.h:22:34: note: declared here
2023-03-01T04:57:42.1122996Z   �[31m   �[0m    22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
2023-03-01T04:57:42.1123352Z   �[31m   �[0m       |                                  ^~~~~~~~~~~~~~
2023-03-01T04:57:42.1123711Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_PyInt_As_uint8_t’:
2023-03-01T04:57:42.1124231Z   �[31m   �[0m yarl/_quoting_c.c:10674:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1124715Z   �[31m   �[0m 10674 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1125162Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1125626Z   �[31m   �[0m yarl/_quoting_c.c:10729:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1126099Z   �[31m   �[0m 10729 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1126475Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1126834Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_PyInt_As_uint64_t’:
2023-03-01T04:57:42.1127361Z   �[31m   �[0m yarl/_quoting_c.c:10870:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1127842Z   �[31m   �[0m 10870 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1128219Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1128679Z   �[31m   �[0m yarl/_quoting_c.c:10925:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1129162Z   �[31m   �[0m 10925 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1129533Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1129896Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_PyInt_As_long’:
2023-03-01T04:57:42.1130387Z   �[31m   �[0m yarl/_quoting_c.c:11066:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1130908Z   �[31m   �[0m 11066 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1131342Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1131811Z   �[31m   �[0m yarl/_quoting_c.c:11121:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1132285Z   �[31m   �[0m 11121 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1132668Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1133030Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_PyInt_As_int’:
2023-03-01T04:57:42.1133522Z   �[31m   �[0m yarl/_quoting_c.c:11359:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1133997Z   �[31m   �[0m 11359 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1134374Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1134859Z   �[31m   �[0m yarl/_quoting_c.c:11414:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1135319Z   �[31m   �[0m 11414 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
2023-03-01T04:57:42.1135692Z   �[31m   �[0m       |                                                     ^~
2023-03-01T04:57:42.1136079Z   �[31m   �[0m yarl/_quoting_c.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
2023-03-01T04:57:42.1136577Z   �[31m   �[0m yarl/_quoting_c.c:11865:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
2023-03-01T04:57:42.1137048Z   �[31m   �[0m 11865 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
2023-03-01T04:57:42.1137413Z   �[31m   �[0m       |                                             ^~
2023-03-01T04:57:42.1137778Z   �[31m   �[0m error: command '/usr/bin/gcc' failed with exit code 1
2023-03-01T04:57:42.1138098Z   �[31m   �[0m �[31m[end of output]�[0m
2023-03-01T04:57:42.1138312Z   
2023-03-01T04:57:42.1138709Z   �[1;35mnote�[0m: This error originates from a subprocess, and is likely not a problem with pip.
2023-03-01T04:57:42.1139178Z �[31m  ERROR: Failed building wheel for yarl�[0m�[31m
2023-03-01T04:57:42.1139725Z �[0m�[31mERROR: Could not build wheels for aiohttp, frozenlist, yarl, which is required to install pyproject.toml-based projects�[0m�[31m
2023-03-01T04:57:42.1140198Z Successfully built coverage multidict
2023-03-01T04:57:42.1140474Z Failed to build aiohttp frozenlist yarl
2023-03-01T04:57:42.1710460Z �[0m
2023-03-01T04:57:42.1711053Z �[1m[�[0m�[34;49mnotice�[0m�[1;39;49m]�[0m�[39;49m A new release of pip is available: �[0m�[31;49m23.0�[0m�[39;49m -> �[0m�[32;49m23.0.1�[0m
2023-03-01T04:57:42.1711582Z �[1m[�[0m�[34;49mnotice�[0m�[1;39;49m]�[0m�[39;49m To update, run: �[0m�[32;49mpip install --upgrade pip�[0m
2023-03-01T04:57:42.4971815Z ##[error]Process completed with exit code 1.

https://github.com/python/blurb_it/actions/runs/4300204463/jobs/7496181606



### Python Version

```console
$ python3.12 --version
Python 3.12.0a5

multidict Version

$ python -m pip show multidict

Not installed.

yarl Version

$ python -m pip show yarl

Not installed.

OS

Ubuntu 22.04
macOS Ventura 13.2.1

Additional context

https://github.com/hugovk/blurb_it/actions/runs/4301170729 shows alpha 4 passing and alpha 5 failing.

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@mgorny
Copy link
Contributor

mgorny commented May 26, 2023

I think it's fixed in newer Cython version.

@webknjaz
Copy link
Member

@mjpieters where have bumped Cython already? Was it multidict? Do we need to do the same here?

@webknjaz
Copy link
Member

Ah... it was frozenlist: aio-libs/frozenlist#436

@mjpieters
Copy link
Contributor

@mjpieters where have bumped Cython already? Was it multidict? Do we need to do the same here?

I was waiting to see if there'd be a new 3.0.0 beta or final release as there were new changes in the 3.12 alpha release cycle that broke more things. Let me see what the current status is.

@mjpieters
Copy link
Contributor

mjpieters commented Jun 6, 2023

The latest release is 3.0.0b3, released 2023-05-24, and this produces C code that works with 3.12. It is likely that 3.0.0b3 would also fix this issue.

I misstook a 3.12 test failure in frozenlist to be a Cython failure, but the same error happens in the run without Cython, there is a different 3.12 issue where Pytest's assert rewriting triggers a deprecation warning: pytest-dev/pytest#10977

@mgorny
Copy link
Contributor

mgorny commented Jun 6, 2023

pytest is already fixed in git, so hopefully the next release will be green.

@hugovk
Copy link
Author

hugovk commented Jun 6, 2023

pytest has a fix for the deprecation warnings, and is waiting for another fix in the next Python 3.12 beta: pytest-dev/pytest#10894 (comment)

The next Python 3.12 is beta 2, due out today: https://peps.python.org/pep-0693/

@mjpieters
Copy link
Contributor

I just added filterwarnings entries for the pytest issues in frozenlist, and will do so here too, plus move cython to 3.0.0b3.

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

Successfully merging a pull request may close this issue.

4 participants