pyrender.cpp: In function ‘void __Pyx__ExceptionSave(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pyrender.cpp:20999:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
20999 | *type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21000:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21000 | *value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21001:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21001 | *tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp: In function ‘void __Pyx__ExceptionReset(PyThreadState*, PyObject*, PyObject*, PyObject*)’:
pyrender.cpp:21008:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21008 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21009:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21009 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21010:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21010 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp:21011:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21011 | tstate->exc_type = type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21012:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21012 | tstate->exc_value = value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21013:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21013 | tstate->exc_traceback = tb;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pyrender.cpp:21083:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21083 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21084:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21084 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21085:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21085 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp:21086:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21086 | tstate->exc_type = local_type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21087:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21087 | tstate->exc_value = local_value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21088:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21088 | tstate->exc_traceback = local_tb;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp: In function ‘void __Pyx__ExceptionSwap(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pyrender.cpp:21346:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21346 | tmp_type = tstate->exc_type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21347:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21347 | tmp_value = tstate->exc_value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21348:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21348 | tmp_tb = tstate->exc_traceback;
| ^~~~~~~~~~~~~
| curexc_traceback
pyrender.cpp:21349:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
21349 | tstate->exc_type = *type;
| ^~~~~~~~
| curexc_type
pyrender.cpp:21350:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
21350 | tstate->exc_value = *value;
| ^~~~~~~~~
| curexc_value
pyrender.cpp:21351:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
21351 | tstate->exc_traceback = *tb;
| ^~~~~~~~~~~~~
| curexc_traceback
error: command '/usr/bin/gcc' failed with exit code 1
根据报错语句的提示,修改pyredner.cpp
文件内容即可:
exc_type
->curexc_type
exc_traceback
->curexc_traceback
exc_value
->curexc_value