mhammond / pywin32

Python for Windows (pywin32) Extensions
4.9k stars 783 forks source link

unable to compile pywin32 with python3.13 #2234

Closed Battant closed 2 weeks ago

Battant commented 3 months ago

Hello,

I try to compile pywin32 man branch with Python 3.13.0a5 with visual studio 2022 Community but i get this error 👍

win32/src/PyTime.cpp(280): error C3861: 'PyEval_CallObject' : identificateur not found

My Configuration 👍 Windows 11 pro pxthon3.13a5

visual studio 2022 wiothh required packages

step to reproduce 👍 Downloud python3.13 onclone pywin32 repository open a viisual studio 2022 prompt in pywin32 repository run this commanand ` python setup.py -q build

win32/src/PyTime.cpp(280): error C3861: 'PyEval_CallObject' : identificateur not found error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x86\cl.exe' failed with exit code 2 '

Could you help me please to fix this issus

Best regards

Battant

clin1234 commented 1 month ago

Same here. There are several instances where PyEval_CallObject* functions are called (see here). They aren't documented on Python's official document site, deprecated in 3.9, and removed in 3.13 (https://github.com/python/cpython/issues/105107)

What was the purpose of these functions?

clin1234 commented 1 month ago

Also, replace _PyLong_NumBits (bc of python/cpython#108743)