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

PyJQ Does Not Build in Python 3.12 #84

Open
benbini opened this issue Mar 18, 2024 · 1 comment · Fixed by ExaForce/pyjq#1
Open

PyJQ Does Not Build in Python 3.12 #84

benbini opened this issue Mar 18, 2024 · 1 comment · Fixed by ExaForce/pyjq#1

Comments

@benbini
Copy link

benbini commented Mar 18, 2024

I recently tried to install pyjq in a Python 3.12 environment, and encountered the following error (along with a slew of deprecation warnings, omitted):

      _pyjq.c:6953:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      _pyjq.c:7008:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      _pyjq.c:7187:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      _pyjq.c:7242:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      _pyjq.c:7693:47: error: no member named 'ob_digit' in 'struct _longobject'
          const digit* digits = ((PyLongObject*)b)->ob_digit;

Based on the discussion here I believe references to ob_digit should be changed to ->long_value->ob_digit; I am unsure whether if there other breaking issues in 3.12.

@dlangille
Copy link

I came here because of Python 3.11 issues (the FreeBSD ports is tagged as working only with Python 3.8-3.9) and I was hoping for an updated release.

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