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

New release needed to support Python3.13 #47

Closed
vharitonsky opened this issue Oct 4, 2024 · 5 comments
Closed

New release needed to support Python3.13 #47

vharitonsky opened this issue Oct 4, 2024 · 5 comments

Comments

@vharitonsky
Copy link

pystemmer cannot be built for python3.13 due to CPython API changes: python/cpython#111140

26.12         829 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
26.12             | ^~~~~~
26.12       src/Stemmer.c: In function ‘__Pyx_Py_UNICODE_strlen’:
26.12       src/Stemmer.c:830:5: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations]
26.12         830 |     const Py_UNICODE *u_end = u;
26.12             |     ^~~~~
26.12       src/Stemmer.c: In function ‘__Pyx_PyInt_As_int’:
26.12       src/Stemmer.c:6005:27: error: too few arguments to function ‘_PyLong_AsByteArray’
26.12        6005 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
26.12             |                           ^~~~~~~~~~~~~~~~~~~
26.12       In file included from /usr/include/python3.13/longobject.h:107,
26.12                        from /usr/include/python3.13/Python.h:81,
26.12                        from src/Stemmer.c:6:
26.12       /usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
26.12         111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
26.12             |                 ^~~~~~~~~~~~~~~~~~~
26.12       src/Stemmer.c: In function ‘__Pyx_PyInt_As_long’:
26.12       src/Stemmer.c:6277:27: error: too few arguments to function ‘_PyLong_AsByteArray’
26.12        6277 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
26.12             |                           ^~~~~~~~~~~~~~~~~~~
26.12       In file included from /usr/include/python3.13/longobject.h:107,
26.12                        from /usr/include/python3.13/Python.h:81,
26.12                        from src/Stemmer.c:6:
26.12       /usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
26.12         111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
26.12             |                 ^~~~~~~~~~~~~~~~~~~
26.12       error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
26.12       [end of output]
26.12   
26.12   note: This error originates from a subprocess, and is likely not a problem with pip.
26.12   ERROR: Failed building wheel for pystemmer
26.12 Failed to build pystemmer
26.12 ERROR: Failed to build one or more wheels
@vharitonsky
Copy link
Author

Sorry, looks like an issue with cython

@jameshilliard
Copy link
Contributor

looks like an issue with cython

Yeah, I think pystemmer needs a new release for python3.13 support as d3d423d never made it into a release.

@ojwb
Copy link
Member

ojwb commented Oct 8, 2024

@felixonmars Please can you make a release on pypi (it'd be 2.2.0.2 I think)?

@ojwb ojwb reopened this Oct 8, 2024
@ojwb ojwb changed the title Support for Python3.13 New release needed to support Python3.13 Oct 8, 2024
felixonmars added a commit to felixonmars/pystemmer that referenced this issue Oct 8, 2024
New PyPI release for Python 3.13 support (snowballstem#47 (comment))
@felixonmars
Copy link
Contributor

@felixonmars Please can you make a release on pypi (it'd be 2.2.0.2 I think)?

PR opened :)

ojwb pushed a commit that referenced this issue Oct 8, 2024
New PyPI release for Python 3.13 support (#47 (comment))
@ojwb
Copy link
Member

ojwb commented Oct 8, 2024

PR opened :)

Thanks, merged.

@ojwb ojwb closed this as completed Oct 8, 2024
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

4 participants