python-greenlet / greenlet

Lightweight in-process concurrent programming
Other
1.64k stars 247 forks source link

Greenlet needs updating to work with 3.12 #363

Closed gramster closed 1 year ago

gramster commented 1 year ago

I'm trying to update pydevd tests to work with 3.12, and encountering this:

    creating build\temp.win-amd64-cpython-312\Release\src\greenlet
    "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWIN32=1 -IC:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include -IC:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/greenlet/greenlet.cpp /Fobuild\temp.win-amd64-cpython-312\Release\src/greenlet/greenlet.obj /EHsr /GT
    greenlet.cpp
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(831): error C2039: 'use_tracing': is not a member of '_PyCFrame'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(67): note: see declaration of '_PyCFrame'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(834): error C2039: 'recursion_limit': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(834): error C2039: 'recursion_remaining': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(848): error C2039: 'trash_delete_nesting': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(867): error C2039: 'use_tracing': is not a member of '_PyCFrame'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(67): note: see declaration of '_PyCFrame'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(870): error C2039: 'recursion_remaining': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(870): error C2039: 'recursion_limit': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(881): error C2039: 'trash_delete_nesting': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(891): error C2039: 'use_tracing': is not a member of '_PyCFrame'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(67): note: see declaration of '_PyCFrame'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(899): error C2039: 'recursion_limit': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    C:\Users\runneradmin\AppData\Local\Temp\pip-install-8suoep5j\greenlet_f4c2003f14604d0498cba73212c9a7e7\src\greenlet\greenlet_greenlet.hpp(899): error C2039: 'recursion_remaining': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    src/greenlet/greenlet.cpp(3095): error C2039: 'trash_delete_nesting': is not a member of '_ts'
    C:\hostedtoolcache\windows\Python\3.12.0-beta.3\x64\include\cpython/pystate.h(115): note: see declaration of '_ts'
    error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    [end of output]
jamadden commented 1 year ago

You need to install the latest version of greenlet (3.0a1)