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

use latest ijson (at least 3.3.0) #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

InRiPa
Copy link

@InRiPa InRiPa commented Jan 14, 2025

I was unable to get the library installed. The reason is related to the use of ijson in the fixed version of 2.5.1.
This change uses the latest available version of it.

Following the build error for reference:

Building wheels for collected packages: ijson
  Building wheel for ijson (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for ijson (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-313/ijson
      copying ijson/__init__.py -> build/lib.linux-x86_64-cpython-313/ijson
      copying ijson/common.py -> build/lib.linux-x86_64-cpython-313/ijson
      copying ijson/compat.py -> build/lib.linux-x86_64-cpython-313/ijson
      copying ijson/utils.py -> build/lib.linux-x86_64-cpython-313/ijson
      copying ijson/version.py -> build/lib.linux-x86_64-cpython-313/ijson
      creating build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/__init__.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/python.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/yajl.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/yajl2.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/yajl2_c.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      copying ijson/backends/yajl2_cffi.py -> build/lib.linux-x86_64-cpython-313/ijson/backends
      running build_ext
      building 'ijson.backends._yajl2' extension
      creating build/temp.linux-x86_64-cpython-313/ijson/backends
      gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/home/user/snow/.venv/include -I/usr/include/python3.13 -c ijson/backends/_yajl2.c -o build/temp.linux-x86_64-cpython-313/ijson/backends/_yajl2.o
      ijson/backends/_yajl2.c: In function ‘parsegen_iternext’:
      ijson/backends/_yajl2.c:525:21: error: implicit declaration of function ‘PyUnicode_GET_SIZE’; did you mean ‘PyDict_GET_SIZE’? [-Wimplicit-function-declaration]
        525 |                 if( PyUnicode_GET_SIZE(last_path) > 0 ) {
            |                     ^~~~~~~~~~~~~~~~~~
            |                     PyDict_GET_SIZE
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ijson
Failed to build ijson
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ijson)

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

Successfully merging this pull request may close these issues.

1 participant