Repository navigation
Can't install on Python 3.12 #709
Description
Activity
Seconded.
`Collecting lightfm
Using cached lightfm-1.17.tar.gz (316 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from lightfm) (1.26.4)
Requirement already satisfied: scipy>=0.17.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from lightfm) (1.12.0)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from lightfm) (2.31.0)
Requirement already satisfied: scikit-learn in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from lightfm) (1.4.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->lightfm) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->lightfm) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->lightfm) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests->lightfm) (2024.2.2)
Requirement already satisfied: joblib>=1.2.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from scikit-learn->lightfm) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from scikit-learn->lightfm) (3.4.0)
Building wheels for collected packages: lightfm
Building wheel for lightfm (setup.py) ... error
error: subprocess-exited-with-error× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [387 lines of output]
Compiling without OpenMP support.
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. By 2024-Sep-26, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-universal2-cpython-312 creating build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/lightfm.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/evaluation.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/__init__.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/_lightfm_fast.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/data.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/cross_validation.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm creating build/lib.macosx-10.9-universal2-cpython-312/lightfm/datasets copying lightfm/datasets/_common.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm/datasets copying lightfm/datasets/__init__.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm/datasets copying lightfm/datasets/movielens.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm/datasets copying lightfm/datasets/stackexchange.py -> build/lib.macosx-10.9-universal2-cpython-312/lightfm/datasets copying lightfm/_lightfm_fast_no_openmp.c -> build/lib.macosx-10.9-universal2-cpython-312/lightfm copying lightfm/_lightfm_fast_openmp.c -> build/lib.macosx-10.9-universal2-cpython-312/lightfm running build_ext building 'lightfm._lightfm_fast_no_openmp' extension creating build/temp.macosx-10.9-universal2-cpython-312 creating build/temp.macosx-10.9-universal2-cpython-312/lightfm clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c lightfm/_lightfm_fast_no_openmp.c -o build/temp.macosx-10.9-universal2-cpython-312/lightfm/_lightfm_fast_no_openmp.o -ffast-math lightfm/_lightfm_fast_no_openmp.c:3590:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pyx_unpickle_CSRMatrix); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 13, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:3636:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_CSRMatrix); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:4484:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_n_s_pyx_unpickle_FastLightFM); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 13, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:4530:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_pyx_unpickle_FastLightFM); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 15, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:6958:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:6963:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:7041:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 814, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:7808:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 944, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:7813:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 944, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:7891:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 945, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:8762:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:8767:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:8845:3: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1103, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:13782:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 13, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:13828:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Enum); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 15, __pyx_L1_error) ^ lightfm/_lightfm_fast_no_openmp.c:1507:43: note: expanded from macro '__Pyx_GetModuleGlobalName' (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:18965:17: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations] if (unlikely(!Py_OptimizeFlag)) { ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:27445:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:27457:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:27461:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:27478:5: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) ^ lightfm/_lightfm_fast_no_openmp.c:1481:21: note: expanded from macro '__PYX_UPDATE_DICT_CACHE' (version_var) = __PYX_GET_DICT_VERSION(dict);\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:27998:36: error: no member named 'curexc_traceback' in 'struct _ts' PyObject* tmp_tb = tstate->curexc_traceback; ~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:28001:21: error: no member named 'curexc_traceback' in 'struct _ts' tstate->curexc_traceback = tb; ~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:28635:53: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)op1)->ob_digit; ~~~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:28949:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __PYX_PY_DICT_LOOKUP_IF_MODIFIED( ^ lightfm/_lightfm_fast_no_openmp.c:1486:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED' if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:28949:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations] __PYX_PY_DICT_LOOKUP_IF_MODIFIED( ^ lightfm/_lightfm_fast_no_openmp.c:1490:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED' __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ ^ lightfm/_lightfm_fast_no_openmp.c:1479:65: note: expanded from macro '__PYX_GET_DICT_VERSION' #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here Py_DEPRECATED(3.12) uint64_t ma_version_tag; ^ /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ lightfm/_lightfm_fast_no_openmp.c:30261:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:30316:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:30457:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:30512:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:30691:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:30746:55: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)x)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ lightfm/_lightfm_fast_no_openmp.c:31097:47: error: no member named 'ob_digit' in 'struct _longobject' const digit* digits = ((PyLongObject*)b)->ob_digit; ~~~~~~~~~~~~~~~~~~ ^ 22 warnings and 10 errors generated. error: command '/usr/bin/clang' 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 lightfm
Running setup.py clean for lightfm
Failed to build lightfm
ERROR: Could not build wheels for lightfm, which is required to install pyproject.toml-based projects`Can you try installing my forked version to see if it works?
pip install git+https://github.com/daviddavo/lightfmReacted by 岡﨑 建太, H_TF, Adam Mitrenga, Roman, Helen Mary Labao Barrameda, Pallandos, zilin chen, vcbin, BSeul, Andrei and 3 moreReacted by Helen Mary Labao Barrameda, Dicle Öztürk, zilin chen, Tigran Saluev, Shiqian Xia and Rutanshu DesaiAny solution around it? @daviddavo @K-Winkles
ModuleNotFoundError: No module named 'lightfm._lightfm_fast_no_openmp'
Reacted by Mina IlievaThe only solution I found was recompiling using newest Cython and creating my own package.
pip install git+https://github.com/daviddavo/lightfmI'm no expert on Cython, so I don't know what caveats does it have or If I broke something. All tests are passing, though.
Reacted by Cosier Lucas, Rodion Khvorostov, Tiago Cabo, Qiang Chen, juanmontedistelsa, adaniel105, Matheus Silva, Martin Bielik, Andrés Ingelmo, Mokitha and 5 moreHonestly I just downgraded to Python 3.10.10 and it started working for me again
The only solution I found was recompiling using newest Cython and creating my own package.
pip install git+https://github.com/daviddavo/lightfmI'm no expert on Cython, so I don't know what caveats does it have or If I broke something. All tests are passing, though.
Thanks, this worked just fine!
The only solution I found was recompiling using newest Cython and creating my own package.
pip install git+https://github.com/daviddavo/lightfmI'm no expert on Cython, so I don't know what caveats does it have or If I broke something. All tests are passing, though.
Thanks! worked
I had the same issue and I solved it in this way, I use pacman and yay as package managers.
Install python 3.10
yay -S python310
(I also suggest to use conda for scientific packages)
create a python310 venv with
python3.10 -m venv .venv
activate it with
source .venv/bin/activate
now with pip:
pip install lightfm
or with conda:
conda install conda-forge::lightfmpip fails because it uses the prebuild wheels, which are not compatible with the latest python's version.
Instead if you use conda it tells right away for what versions the build are for.
You can also recompile them manually as stated from the other users if you want to.A few suggestions
It is better to create a virtual environment (from now on venv) for every project you create with a requirements.txt and type there every package you'll need or you installed. This adds a layer of compatibility, it's also better if you specify the versions.
Adding a readme.md could help, just type the python and pip/conda versions you used to download the packages.
Creating a venv for every project is better than installing packages globally because, in this way, you won't have conflicts when you use an older version rather than the latest one.
I also suggest to add an alias in your .zshrc or .bashrc, or even better having a file with all the aliases and source it with .*rc:
alias vactivate = source ./.venv/bin/activate.
[note that you'll need to source .zshrc for it to take effect]The only solution I found was recompiling using newest Cython and creating my own package.
pip install git+https://github.com/daviddavo/lightfmI'm no expert on Cython, so I don't know what caveats does it have or If I broke something. All tests are passing, though.
worked for me as well thank you !
Reacted by DechthanaReacted by David DavóAny solution around it? @daviddavo @K-Winkles
ModuleNotFoundError: No module named 'lightfm._lightfm_fast_no_openmp'
https://making.lyst.com/lightfm/docs/home.html#pypi
Note for OSX and Windows users: ... it should helps
Can you try installing my forked version to see if it works?
pip install git+https://github.com/daviddavo/lightfmYup! This worked as well. Thank you.
Reacted by Dechthana and Calin-Mihnea- added a commit that references this issue
on Sep 4, 2026
I tried to install the
lightfmpackage on Python 3.12I tried installing wheel and setuptools beforehand, and I get another different error:
Logs after installing setuptools and wheel