Hi all, when I try to install the latest yt from source, I get a gcc compilation failure:

yt/utilities/lib/image_samplers.cpp: In function ‘PyObject* __Pyx_Coroutine_Send(PyObject*, PyObject*)’:
yt/utilities/lib/image_samplers.cpp:36240:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
36240 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
      |                   ^~~~~~~~~~~
      |                   _PyGen_yf
yt/utilities/lib/image_samplers.cpp:36245:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
36245 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
      |                   ^~~~~~~~~~~
      |                   _PyGen_yf
yt/utilities/lib/image_samplers.cpp: In function ‘PyObject* __Pyx_Generator_Next(PyObject*)’:
yt/utilities/lib/image_samplers.cpp:36329:19: error: ‘_PyGen_Send’ was not declared in this scope; did you mean ‘_PyGen_yf’?
36329 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
      |                   ^~~~~~~~~~~
      |                   _PyGen_yf

Has anyone seen this?

I'm using GCC 11.2 and python 3.10.

Mike

--
Michael Zingale
Professor of Physics and Astronomy

Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800
phone:  631-632-8225