Unable to build on Python 3.12
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start with the Python 3.12 build errors in asyncpg/pgproto/pgproto.c, especially the lines accessing PyLongObject.ob_digit. Compare the reported access with the proposed long_value->ob_digit change, then rebuild py-pgproto on Python 3.12 and confirm those errors are resolved.
Written by the indexing model from the issue text.
Description
Getting a lot of these errors when trying to build https://github.com/MagicStack/asyncpg on Python 3.12:
asyncpg/pgproto/pgproto.c:40800:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
asyncpg/pgproto/pgproto.c:40855:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
asyncpg/pgproto/pgproto.c:41034:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
I believe this can be solved by converting ((PyLongObject*)x)->ob_digit to ((PyLongObject*)x)->long_value->ob_digit
- Dominant language
- Cython
- Stars
- 38
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MagicStack/py-pgproto
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
MagicStack/py-pgproto#31 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
MagicStack/py-pgproto#30 ·
-
Tiny fix in hton.h Open
Difficulty 1/5 Under an hour Newbie friendliness 48/100
MagicStack/py-pgproto#6 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
MagicStack/py-pgproto#5 · 1 comment ·
All issues in MagicStack/py-pgproto
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·