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

Need a wheel for python 3.13 #3601

Open
mistahanish opened this issue Feb 10, 2025 · 9 comments
Open

Need a wheel for python 3.13 #3601

mistahanish opened this issue Feb 10, 2025 · 9 comments

Comments

@mistahanish
Copy link

mistahanish commented Feb 10, 2025

When I am trying to install gensim with python 3.13, scipy is having trouble installing because it is trying to compile a new wheel but is unable to.

@piskvorky
Copy link
Owner

@mpenkov Misha how about a quick session for another release?

Or maybe just release the new wheels into the existing release? Because I don't think we've merged a single PR since the last one.

@mpenkov
Copy link
Collaborator

mpenkov commented Feb 14, 2025

I think it's simpler to make a new release (maybe a bugfix one) than to create wheels for an existing release, because of the way the wheel builder is set up.

@mpenkov
Copy link
Collaborator

mpenkov commented Feb 14, 2025

Unfortunately, since we've made the previous release, github has gone and deprecated the macos-12 workers: actions/runner-images#10721

The macos-14 workers appear to build the wheel, but then it fails to install: https://github.com/piskvorky/gensim/actions/runs/13274964157/job/37064784796

If someone is able to debug this problem, that'd be helpful, because at the moment we don't have a building wheel for macos.

I'll work on adding Py3.13 support in the meanwhile.

@mpenkov
Copy link
Collaborator

mpenkov commented Feb 14, 2025

This issue appears to be blocking Py3.13 builds for us:

2025-02-14T14:47:33.4599512Z   gensim/models/word2vec_inner.c:10388:51: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘fields’
2025-02-14T14:47:33.4602738Z   10388 |     __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 851, __pyx_L1_error)
2025-02-14T14:47:33.4605387Z         |                                                   ^~
2025-02-14T14:47:33.4629253Z   gensim/models/word2vec_inner.c:10589:79: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
2025-02-14T14:47:33.4632343Z   10589 |     (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);
2025-02-14T14:47:33.4636718Z         |                                                                               ^~
2025-02-14T14:47:33.5046471Z   gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_PY_LONG_LONG’:
2025-02-14T14:47:33.5061022Z   gensim/models/word2vec_inner.c:14538:27: error: too few arguments to function ‘_PyLong_AsByteArray’
2025-02-14T14:47:33.5063779Z   14538 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2025-02-14T14:47:33.5066796Z         |                           ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5071044Z   In file included from /opt/_internal/cpython-3.13.0/include/python3.13/longobject.h:107,
2025-02-14T14:47:33.5074173Z                    from /opt/_internal/cpython-3.13.0/include/python3.13/Python.h:81,
2025-02-14T14:47:33.5076818Z                    from gensim/models/word2vec_inner.c:25:
2025-02-14T14:47:33.5079585Z   /opt/_internal/cpython-3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
2025-02-14T14:47:33.5081804Z     111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
2025-02-14T14:47:33.5083978Z         |                 ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5090146Z   gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_int’:
2025-02-14T14:47:33.5107617Z   gensim/models/word2vec_inner.c:14772:27: error: too few arguments to function ‘_PyLong_AsByteArray’
2025-02-14T14:47:33.5109469Z   14772 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2025-02-14T14:47:33.5112060Z         |                           ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5115713Z   In file included from /opt/_internal/cpython-3.13.0/include/python3.13/longobject.h:107,
2025-02-14T14:47:33.5118138Z                    from /opt/_internal/cpython-3.13.0/include/python3.13/Python.h:81,
2025-02-14T14:47:33.5120302Z                    from gensim/models/word2vec_inner.c:25:
2025-02-14T14:47:33.5123285Z   /opt/_internal/cpython-3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
2025-02-14T14:47:33.5125320Z     111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
2025-02-14T14:47:33.5128014Z         |                 ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5135053Z   gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_unsigned_PY_LONG_LONG’:
2025-02-14T14:47:33.5152915Z   gensim/models/word2vec_inner.c:14968:27: error: too few arguments to function ‘_PyLong_AsByteArray’
2025-02-14T14:47:33.5156250Z   14968 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2025-02-14T14:47:33.5158663Z         |                           ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5162697Z   In file included from /opt/_internal/cpython-3.13.0/include/python3.13/longobject.h:107,
2025-02-14T14:47:33.5165738Z                    from /opt/_internal/cpython-3.13.0/include/python3.13/Python.h:81,
2025-02-14T14:47:33.5168987Z                    from gensim/models/word2vec_inner.c:25:
2025-02-14T14:47:33.5171058Z   /opt/_internal/cpython-3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
2025-02-14T14:47:33.5173197Z     111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
2025-02-14T14:47:33.5175080Z         |                 ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5181407Z   gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_npy_uint32’:
2025-02-14T14:47:33.5200431Z   gensim/models/word2vec_inner.c:15164:27: error: too few arguments to function ‘_PyLong_AsByteArray’
2025-02-14T14:47:33.5201785Z   15164 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2025-02-14T14:47:33.5203567Z         |                           ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5205917Z   In file included from /opt/_internal/cpython-3.13.0/include/python3.13/longobject.h:107,
2025-02-14T14:47:33.5207799Z                    from /opt/_internal/cpython-3.13.0/include/python3.13/Python.h:81,
2025-02-14T14:47:33.5210359Z                    from gensim/models/word2vec_inner.c:25:
2025-02-14T14:47:33.5212611Z   /opt/_internal/cpython-3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
2025-02-14T14:47:33.5214313Z     111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
2025-02-14T14:47:33.5215611Z         |                 ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5226576Z   gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_long’:
2025-02-14T14:47:33.5246323Z   gensim/models/word2vec_inner.c:15398:27: error: too few arguments to function ‘_PyLong_AsByteArray’
2025-02-14T14:47:33.5253866Z   15398 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
2025-02-14T14:47:33.5255249Z         |                           ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5256092Z   In file included from /opt/_internal/cpython-3.13.0/include/python3.13/longobject.h:107,
2025-02-14T14:47:33.5257983Z                    from /opt/_internal/cpython-3.13.0/include/python3.13/Python.h:81,
2025-02-14T14:47:33.5267840Z                    from gensim/models/word2vec_inner.c:25:
2025-02-14T14:47:33.5268583Z   /opt/_internal/cpython-3.13.0/include/python3.13/cpython/longobject.h:111:17: note: declared here
2025-02-14T14:47:33.5269110Z     111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
2025-02-14T14:47:33.5269448Z         |                 ^~~~~~~~~~~~~~~~~~~
2025-02-14T14:47:33.5607791Z   error: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
2025-02-14T14:47:33.5958959Z   error: subprocess-exited-with-error
2025-02-14T14:47:33.5959315Z   
2025-02-14T14:47:33.5959881Z   × Building wheel for gensim (pyproject.toml) did not run successfully.
2025-02-14T14:47:33.5960363Z   │ exit code: 1
2025-02-14T14:47:33.5960721Z   ╰─> See above for output.

I can see 3 distinct issues:

  1. error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘fields’
  2. error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
  3. gensim/models/word2vec_inner.c:15398:27: error: too few arguments to function ‘_PyLong_AsByteArray’

Here's a potential fix for the last problem (changed type signature): https://github.com/mkleehammer/pyodbc/pull/1361/files

@xk86
Copy link

xk86 commented Mar 7, 2025

Here is my build log from MacOS 15.3.1 with Python 3.13, if it helps:
(I'm using uv to manage my environment, but that shouldn't strictly matter). Most of these logs are deprecation warnings, so I separated them out for legibility.

Deprecation warnings
In file included from gensim/models/word2vec_inner.c:765:
      In file included from /Users/kate/.cache/uv/builds-v0/.tmpIne2jT/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5:
      In file included from /Users/kate/.cache/uv/builds-v0/.tmpIne2jT/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12:
      In file included from /Users/kate/.cache/uv/builds-v0/.tmpIne2jT/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1913:
      /Users/kate/.cache/uv/builds-v0/.tmpIne2jT/lib/python3.13/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define
      NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
         17 | #warning "Using deprecated NumPy API, disable it with " \
            |  ^
      gensim/models/word2vec_inner.c:853:59: warning: 'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
        853 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
            |                                                           ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/unicodeobject.h:10:1: note: 'Py_UNICODE' has been explicitly marked deprecated here
         10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
            | ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:854:11: warning: 'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
        854 |     const Py_UNICODE *u_end = u;
            |           ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/unicodeobject.h:10:1: note: 'Py_UNICODE' has been explicitly marked deprecated here
         10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
            | ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:1447:37: note: expanded from macro '__Pyx_INCREF'
       1447 |   #define __Pyx_INCREF(r) Py_INCREF(r)
            |                                     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/object.h:846:50: note: expanded from macro 'Py_INCREF'
        846 | #  define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op))
            |                                                  ^~
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/object.h:222:49: note: expanded from macro '_PyObject_CAST'
        222 | #define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
            |                                                 ^~
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:19:38: note: expanded from macro '_Py_CAST'
         19 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      gensim/models/word2vec_inner.c:10747:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10747 |   __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10762:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10762 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10780:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10780 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10798:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10798 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10816:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10816 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10834:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10834 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10852:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10852 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:10947:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       10947 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
             |   ^
      gensim/models/word2vec_inner.c:1714:43: note: expanded from macro '__Pyx_GetModuleGlobalName'
       1714 |     (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
            |                                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12062:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12062 |     return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
             |                           ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12074:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12074 |     return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
             |                                    ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12078:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12078 |     if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
             |                                                        ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12095:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12095 |     __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
             |     ^
      gensim/models/word2vec_inner.c:1688:21: note: expanded from macro '__PYX_UPDATE_DICT_CACHE'
       1688 |     (version_var) = __PYX_GET_DICT_VERSION(dict);\
            |                     ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12176:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12176 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
             |         ^
      gensim/models/word2vec_inner.c:1693:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
       1693 |     if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
            |                ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^
      gensim/models/word2vec_inner.c:12176:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
       12176 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
             |         ^
      gensim/models/word2vec_inner.c:1697:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
       1697 |         __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
            |                              ^
      gensim/models/word2vec_inner.c:1686:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
       1686 | #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
            |                                                                 ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/dictobject.h:25:5: note: 'ma_version_tag' has been explicitly marked deprecated here
         25 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
            |     ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
        251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
            |                                                      ^

Errors:

      gensim/models/word2vec_inner.c:9364:41: error: no member named 'subarray' in 'struct _PyArray_Descr'
       9364 |     __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
            |                              ~~~~~~~~~  ^
...
      gensim/models/word2vec_inner.c:9365:38: error: no member named 'subarray' in 'struct _PyArray_Descr'
       9365 |     __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
            |                           ~~~~~~~~~  ^
...
      gensim/models/word2vec_inner.c:11068:53: error: no member named 'ob_digit' in 'struct _longobject'
       11068 |         const digit* digits = ((PyLongObject*)op1)->ob_digit;
             |                               ~~~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:11918:36: error: no member named 'curexc_traceback' in 'struct _ts'
       11918 |         PyObject* tmp_tb = tstate->curexc_traceback;
             |                            ~~~~~~  ^
      gensim/models/word2vec_inner.c:11921:21: error: no member named 'curexc_traceback' in 'struct _ts'
       11921 |             tstate->curexc_traceback = tb;
             |             ~~~~~~  ^

      gensim/models/word2vec_inner.c:12812:55: error: no member named 'ob_digit' in 'struct _longobject'
       12812 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:12867:55: error: no member named 'ob_digit' in 'struct _longobject'
       12867 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:12955:70: error: too few arguments to function call, expected 6, have 5
       12953 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
             |                           ~~~~~~~~~~~~~~~~~~~
       12954 |                                               bytes, sizeof(val),
       12955 |                                               is_little, !is_unsigned);
             |                                                                      ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^                   ~~~~~~~~~~~~~~~~
        112 |     unsigned char* bytes, size_t n,
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        113 |     int little_endian, int is_signed, int with_exceptions);
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gensim/models/word2vec_inner.c:13046:55: error: no member named 'ob_digit' in 'struct _longobject'
       13046 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13101:55: error: no member named 'ob_digit' in 'struct _longobject'
       13101 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13189:70: error: too few arguments to function call, expected 6, have 5
       13187 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
             |                           ~~~~~~~~~~~~~~~~~~~
       13188 |                                               bytes, sizeof(val),
       13189 |                                               is_little, !is_unsigned);
             |                                                                      ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^                   ~~~~~~~~~~~~~~~~
        112 |     unsigned char* bytes, size_t n,
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        113 |     int little_endian, int is_signed, int with_exceptions);
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gensim/models/word2vec_inner.c:13242:55: error: no member named 'ob_digit' in 'struct _longobject'
       13242 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13297:55: error: no member named 'ob_digit' in 'struct _longobject'
       13297 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13385:70: error: too few arguments to function call, expected 6, have 5
       13383 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
             |                           ~~~~~~~~~~~~~~~~~~~
       13384 |                                               bytes, sizeof(val),
       13385 |                                               is_little, !is_unsigned);
             |                                                                      ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^                   ~~~~~~~~~~~~~~~~
        112 |     unsigned char* bytes, size_t n,
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        113 |     int little_endian, int is_signed, int with_exceptions);
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gensim/models/word2vec_inner.c:13438:55: error: no member named 'ob_digit' in 'struct _longobject'
       13438 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13493:55: error: no member named 'ob_digit' in 'struct _longobject'
       13493 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13581:70: error: too few arguments to function call, expected 6, have 5
       13579 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
             |                           ~~~~~~~~~~~~~~~~~~~
       13580 |                                               bytes, sizeof(val),
       13581 |                                               is_little, !is_unsigned);
             |                                                                      ^
      /opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^                   ~~~~~~~~~~~~~~~~
        112 |     unsigned char* bytes, size_t n,
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        113 |     int little_endian, int is_signed, int with_exceptions);
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      gensim/models/word2vec_inner.c:13634:55: error: no member named 'ob_digit' in 'struct _longobject'
       13634 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      gensim/models/word2vec_inner.c:13689:55: error: no member named 'ob_digit' in 'struct _longobject'
       13689 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
             |                                   ~~~~~~~~~~~~~~~~~~  ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      17 warnings and 20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1

I'm spotting a few more errors:

  • no member named 'subarray' in 'struct _PyArray_Descr'
  • no member named 'ob_digit' in 'struct _longobject'
  • no member named 'curexc_traceback' in 'struct _ts'
    and the same error too few arguments to function call, for _PyLong_AsByteArray()

I hope this information helps!

@barseghyanartur
Copy link

Please, fix this.

@hoodmane
Copy link

Since word2vec_inner is produced by cython, perhaps all that is needed to fix the compile errors in gensim/models/word2vec_inner.c is to recythonize with an up-to-date version of cython.

@spmartin823
Copy link

Having the same issue with 3.13, downgrading to 3.12 fixed it.

@milkywade
Copy link

3.13 build failing here too

using python 3.13.3, 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux

running build_ext building 'gensim.models.word2vec_inner' extension creating build/temp.linux-x86_64-cpython-313/gensim/models gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/home/debbie/tmp/dns2vec/.venv_3.13/include -I/usr/local/include/python3.13 -I/tmp/pip-build-env-9v4dpgja/overlay/lib/python3.13/site-packages/numpy/_core/include -c gensim/models/word2vec_inner.c -o build/temp.linux-x86_64-cpython-313/gensim/models/word2vec_inner.o In file included from /tmp/pip-build-env-9v4dpgja/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1913, from /tmp/pip-build-env-9v4dpgja/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12, from /tmp/pip-build-env-9v4dpgja/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/arrayobject.h:5, from gensim/models/word2vec_inner.c:765: /tmp/pip-build-env-9v4dpgja/overlay/lib/python3.13/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ gensim/models/word2vec_inner.c:853:1: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations] 853 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { | ^~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_Py_UNICODE_strlen’: gensim/models/word2vec_inner.c:854:5: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations] 854 | const Py_UNICODE *u_end = u; | ^~~~~ In file included from /usr/local/include/python3.13/Python.h:63, from gensim/models/word2vec_inner.c:25: gensim/models/word2vec_inner.c: In function ‘__pyx_f_5numpy_PyDataType_SHAPE’: gensim/models/word2vec_inner.c:9364:39: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’ 9364 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); | ^~ /usr/local/include/python3.13/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’ 19 | #define _Py_CAST(type, expr) ((type)(expr)) | ^~~~ /usr/local/include/python3.13/object.h:846:35: note: in expansion of macro ‘_PyObject_CAST’ 846 | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:1447:27: note: in expansion of macro ‘Py_INCREF’ 1447 | #define __Pyx_INCREF(r) Py_INCREF(r) | ^~~~~~~~~ gensim/models/word2vec_inner.c:9364:5: note: in expansion of macro ‘__Pyx_INCREF’ 9364 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape)); | ^~~~~~~~~~~~ gensim/models/word2vec_inner.c:9365:36: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’ 9365 | __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); | ^~ gensim/models/word2vec_inner.c: In function ‘__pyx_pymod_exec_word2vec_inner’: gensim/models/word2vec_inner.c:10747:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10747 | __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/python3.13/dictobject.h:101, from /usr/local/include/python3.13/Python.h:90: /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10762:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10762 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10780:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10780 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10798:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10798 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10816:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10816 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10834:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10834 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10852:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10852 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_fblas); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:10947:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 10947 | __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_NeObjC’: gensim/models/word2vec_inner.c:11068:51: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 11068 | const digit* digits = ((PyLongObject*)op1)->ob_digit; | ^~ gensim/models/word2vec_inner.c: In function ‘__Pyx_Raise’: gensim/models/word2vec_inner.c:11918:34: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’ 11918 | PyObject* tmp_tb = tstate->curexc_traceback; | ^~ gensim/models/word2vec_inner.c:11921:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’ 11921 | tstate->curexc_traceback = tb; | ^~ gensim/models/word2vec_inner.c: In function ‘__Pyx_get_tp_dict_version’: gensim/models/word2vec_inner.c:12062:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12062 | return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; | ^~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_get_object_dict_version’: gensim/models/word2vec_inner.c:12074:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12074 | return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; | ^~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_object_dict_version_matches’: gensim/models/word2vec_inner.c:12078:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12078 | if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) | ^~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx__GetModuleGlobalName’: gensim/models/word2vec_inner.c:12095:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12095 | __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_CLineForTraceback’: gensim/models/word2vec_inner.c:12176:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12176 | __PYX_PY_DICT_LOOKUP_IF_MODIFIED( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c:12176:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations] 12176 | __PYX_PY_DICT_LOOKUP_IF_MODIFIED( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/dictobject.h:25:34: note: declared here 25 | Py_DEPRECATED(3.12) uint64_t ma_version_tag; | ^~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_PY_LONG_LONG’: gensim/models/word2vec_inner.c:12812:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 12812 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:12867:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 12867 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:12953:27: error: too few arguments to function ‘_PyLong_AsByteArray’ 12953 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/python3.13/longobject.h:107, from /usr/local/include/python3.13/Python.h:81: /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | ^~~~~~~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_int’: gensim/models/word2vec_inner.c:13046:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13046 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13101:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13101 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13187:27: error: too few arguments to function ‘_PyLong_AsByteArray’ 13187 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | ^~~~~~~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_unsigned_PY_LONG_LONG’: gensim/models/word2vec_inner.c:13242:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13242 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13297:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13297 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13383:27: error: too few arguments to function ‘_PyLong_AsByteArray’ 13383 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | ^~~~~~~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_npy_uint32’: gensim/models/word2vec_inner.c:13438:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13438 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13493:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13493 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13579:27: error: too few arguments to function ‘_PyLong_AsByteArray’ 13579 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | ^~~~~~~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyInt_As_long’: gensim/models/word2vec_inner.c:13634:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13634 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13689:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 13689 | const digit* digits = ((PyLongObject*)x)->ob_digit; | ^~ gensim/models/word2vec_inner.c:13775:27: error: too few arguments to function ‘_PyLong_AsByteArray’ 13775 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ^~~~~~~~~~~~~~~~~~~ /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here 111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v, | ^~~~~~~~~~~~~~~~~~~ gensim/models/word2vec_inner.c: In function ‘__Pyx_PyIndex_AsSsize_t’: gensim/models/word2vec_inner.c:14208:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 14208 | const digit* digits = ((PyLongObject*)b)->ob_digit; | ^~ error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

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

8 participants