Closed kishikaisei closed 1 year ago
Installed pyenv, and installed python 3.8.10 and it worked, os there is an issue with the latest python.
Same issue : "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\XXX\AppData\Local\Programs\Python\Python312\include -IC:\Users\XXX\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcaiohttp/_websocket.c /Fobuild\temp.win-amd64-cpython-312\Release\aiohttp/_websocket.obj _websocket.c aiohttp/_websocket.c(1475): warning C4996: 'Py_OptimizeFlag': deprecated in 3.12 C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/pydebug.h(13): note: Siehe Deklaration von "Py_OptimizeFlag" aiohttp/_websocket.c(3042): error C2039: "ob_digit": Ist kein Element von "_longobject" C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: Siehe Deklaration von "_longobject" aiohttp/_websocket.c(3097): error C2039: "ob_digit": Ist kein Element von "_longobject" C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: Siehe Deklaration von "_longobject" aiohttp/_websocket.c(3238): error C2039: "ob_digit": Ist kein Element von "_longobject" C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: Siehe Deklaration von "_longobject" aiohttp/_websocket.c(3293): error C2039: "ob_digit": Ist kein Element von "_longobject" C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: Siehe Deklaration von "_longobject" aiohttp/_websocket.c(3744): error C2039: "ob_digit": Ist kein Element von "_longobject" C:\Users\XXX\AppData\Local\Programs\Python\Python312\include\cpython/longintrepr.h(87): note: Siehe Deklaration von "_longobject" error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe' failed with exit code 2
Is there a solution?
@Chi-Hoang please check this out: https://stackoverflow.com/questions/77388920/warning-c4996-py-optimizeflag-deprecated-in-3-12-aiohttp-websocket-c3042/77388956#77388956
Expected Behavior
Successful installation when running
pip install -e .
Current Behavior
For me, I have this log: