indygreg / python-zstandard

Python bindings to the Zstandard (zstd) compression library
BSD 3-Clause "New" or "Revised" License
512 stars 90 forks source link

Build fails on Python 3.13 and Windows #223

Closed clin1234 closed 6 months ago

clin1234 commented 7 months ago

Build breaks with the following error, due to cffi pinned to 1.16

Collecting zstandard (from pwntools<5.0.0,>=4.12.0->pwndbg)
  Using cached zstandard-0.22.0.tar.gz (660 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [166 lines of output]
      Collecting cffi==1.16.0
        Using cached cffi-1.16.0.tar.gz (512 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting setuptools==68.2.2
        Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
      Collecting wheel==0.41.2
        Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
      Collecting pycparser (from cffi==1.16.0)
        Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
      Using cached setuptools-68.2.2-py3-none-any.whl (807 kB)
      Using cached wheel-0.41.2-py3-none-any.whl (64 kB)
      Using cached pycparser-2.22-py3-none-any.whl (117 kB)
      Building wheels for collected packages: cffi
        Building wheel for cffi (pyproject.toml): started
        Building wheel for cffi (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        × Building wheel for cffi (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [133 lines of output]
            _configtest.c
            running bdist_wheel
            running build
            running build_py
            creating build
            creating build\lib.win-amd64-cpython-313
            creating build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\api.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\backend_ctypes.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\cffi_opcode.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\commontypes.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\cparser.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\error.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\ffiplatform.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\lock.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\model.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\pkgconfig.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\recompiler.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\setuptools_ext.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\vengine_cpy.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\vengine_gen.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\verifier.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\_imp_emulation.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\_shimmed_dist_utils.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\__init__.py -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\_cffi_include.h -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\parse_c_type.h -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\_embedding.h -> build\lib.win-amd64-cpython-313\cffi
            copying src\cffi\_cffi_errors.h -> build\lib.win-amd64-cpython-313\cffi
            running build_ext
            building '_cffi_backend' extension
            creating build\temp.win-amd64-cpython-313
            creating build\temp.win-amd64-cpython-313\Release
            creating build\temp.win-amd64-cpython-313\Release\src
            creating build\temp.win-amd64-cpython-313\Release\src\c
            creating build\temp.win-amd64-cpython-313\Release\src\c\libffi_x86_x64
            "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DFFI_BUILDING=1 -Isrc/c/libffi_x86_x64 -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\include -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /Tcsrc/c/_cffi_backend.c /Fobuild\temp.win-amd64-cpython-313\Release\src/c/_cffi_backend.obj
            _cffi_backend.c
            src/c/_cffi_backend.c(413): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(414): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1105): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1114): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1139): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1162): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1181): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1195): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1344): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1346): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1696): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1697): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1699): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1711): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1712): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1715): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1734): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1778): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1843): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1845): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1856): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(1859): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(2258): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(2263): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(2267): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(2282): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(2341): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(3271): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(3992): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4092): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4208): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4249): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4521): warning C4133: 'function': incompatible types - from 'PyUnicodeObject *' to 'PyObject *'
            src/c/_cffi_backend.c(4532): warning C4996: 'Py_FileSystemDefaultEncoding': deprecated in 3.12
            src/c/_cffi_backend.c(4816): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4834): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4975): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4966): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(4987): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5383): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5430): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5437): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5656): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
            src/c/_cffi_backend.c(5790): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5794): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5810): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5823): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5852): warning C4244: 'function': conversion from 'Py_ssize_t' to 'int', possible loss of data
            src/c/_cffi_backend.c(5918): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
            src/c/_cffi_backend.c(6006): warning C4244: 'function': conversion from 'Py_ssize_t' to 'long', possible loss of data
            src/c/_cffi_backend.c(6121): warning C4013: '_PyErr_WriteUnraisableMsg' undefined; assuming extern returning int
            src/c/_cffi_backend.c(6556): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\parse_c_type.c(218): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\parse_c_type.c(287): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\parse_c_type.c(341): warning C4244: '=': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\parse_c_type.c(445): warning C4244: 'return': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(425): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(430): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(448): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(460): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(559): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(621): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(700): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\realize_c_type.c(753): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(130): warning C4244: 'initializing': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(306): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(358): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(384): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(405): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\lib_obj.c(419): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(170): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(215): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(247): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(248): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(260): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(261): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(281): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(301): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(302): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(307): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(327): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\cdlopen.c(331): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
            C:\Users\ךינשגכהד\AppData\Local\Temp\pip-install-1p1g4bps\cffi_b3c057a246d14de09ac8a0bf8c42c15e\src\c\call_python.c(110): warning C4244: 'function': conversion from 'intptr_t' to 'int', possible loss of data
            "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DFFI_BUILDING=1 -Isrc/c/libffi_x86_x64 -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\include -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /Tcsrc/c/libffi_x86_x64\ffi.c /Fobuild\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\ffi.obj
            ffi.c
            "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DFFI_BUILDING=1 -Isrc/c/libffi_x86_x64 -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\include -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /Tcsrc/c/libffi_x86_x64\prep_cif.c /Fobuild\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\prep_cif.obj
            prep_cif.c
            src/c/libffi_x86_x64\prep_cif.c(169): warning C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data
            "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DFFI_BUILDING=1 -Isrc/c/libffi_x86_x64 -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\include -IC:\Users\ךינשגכהד\scoop\apps\python-alpha\current\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /Tcsrc/c/libffi_x86_x64\types.c /Fobuild\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\types.obj
            types.c
            "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\ךינשגכהד\scoop\apps\python-alpha\current\libs /LIBPATH:C:\Users\ךינשגכהד\scoop\apps\python-alpha\current /LIBPATH:C:\Users\ךינשגכהד\scoop\apps\python-alpha\current\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33807\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\x64" /EXPORT:PyInit__cffi_backend build\temp.win-amd64-cpython-313\Release\src/c/_cffi_backend.obj build\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\ffi.obj build\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\prep_cif.obj build\temp.win-amd64-cpython-313\Release\src/c/libffi_x86_x64\types.obj /OUT:build\lib.win-amd64-cpython-313\_cffi_backend.cp313-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-313\Release\src/c\_cffi_backend.cp313-win_amd64.lib src/c/libffi_x86_x64\win64.obj
               Creating library build\temp.win-amd64-cpython-313\Release\src/c\_cffi_backend.cp313-win_amd64.lib and object build\temp.win-amd64-cpython-313\Release\src/c\_cffi_backend.cp313-win_amd64.exp
            _cffi_backend.obj : error LNK2001: unresolved external symbol _PyErr_WriteUnraisableMsg
            build\lib.win-amd64-cpython-313\_cffi_backend.cp313-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
            error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for cffi
      Failed to build cffi
      ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

The cffi repository already fixes the build issue, and per python-cffi/cffi#71, the maintainer will release an updated version once 3.13b1 comes out

clin1234 commented 6 months ago

Any update?

jm-nab commented 6 months ago

+1

pip install --upgrade zstandard
Collecting zstandard
  Using cached zstandard-0.22.0.tar.gz (660 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      <string>:37: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      <string>:38: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      Traceback (most recent call last):
        File "/home/jm/repos/test/llm_loaders/venv_313/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "/home/jm/repos/test/llm_loaders/venv_313/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/jm/repos/test/llm_loaders/venv_313/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 106, in <module>
        File "/tmp/pip-install-coeiug4_/zstandard_3a536872c7fa4e369fdbd56dd6d9e34d/make_cffi.py", line 161, in <module>
          ffi = cffi.FFI()
        File "/tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/cffi/api.py", line 48, in __init__
          import _cffi_backend as backend
      ImportError: /tmp/pip-build-env-8jn7sepo/overlay/lib/python3.13/site-packages/_cffi_backend.cpython-313-aarch64-linux-gnu.so: undefined symbol: _PyErr_WriteUnraisableMsg
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(venv_313) 22:06:56 jm@jm:~/repos/test/llm_loaders:
genai-qa:$ python --version
Python 3.13.0b1
(venv_313) 22:08:26 jm@jm:~/repos/test/llm_loaders:
genai-qa:$ uname -a
Linux jm 5.15.0-100-generic #110-Ubuntu SMP Wed Feb 7 13:28:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
indygreg commented 6 months ago

Python 3.13 support is on the main branch with commit f90e2bbcb800047cc971864162998a99d4c2673f.