CUDA / GPU support not workin

Howdy's set up and works great for me. However, digging around in the settings I note that there's an option to use the CNN algorithm, which is intended for use with CUDA. Enabling it does not result in GPU usage reported by nvidia-smi.
Digging around the issue tracker, I realized the issue is that dlib does not have CUDA support enabled, and that some users were able to fix this by simply using pip3 to reinstall that library.
That makes sense; however, pip3 does this by attempting to build from source. That's great, but it's failing on my machine because of missing CUDA development libraries. The key snippet from the error output:
      -- Found BLAS and LAPACK via pkg-config
      CUDA_TOOLKIT_ROOT_DIR not found or specified
      -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
      -- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.
      -- DID NOT FIND CUDA
      -- Disabling CUDA support for dlib.  DLIB WILL NOT USE CUDA

Fedora DNF on the other hand, disagrees:
Package xorg-x11-drv-nvidia-cuda-libs-3:520.56.06-1.fc37.x86_64 is already installed.
Package xorg-x11-drv-nvidia-cuda-libs-3:520.56.06-1.fc37.i686 is already installed.

If I'm misunderstanding and this package does not contain the correct files, please correct me.
Linux distribution (if applicable): Fedora 37
Howdy version: 2.6.1

Full console output:
pip3 install dlib

Defaulting to user installation because normal site-packages is not writeable
Collecting dlib
  Using cached dlib-19.24.0.tar.gz (3.2 MB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib
  Running setup.py install for dlib ... error
  error: subprocess-exited-with-error

  × Running setup.py install for dlib did not run successfully.
  │ exit code: 1
  ╰─> [1635 lines of output]
      running install
      /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
      running build_ext
      Building extension for Python 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)]
      Invoking CMake setup: 'cmake /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/build/lib.linux-x86_64-cpython-311 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release'
      -- The C compiler identification is GNU 12.2.1
      -- The CXX compiler identification is GNU 12.2.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/lib64/ccache/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found PythonInterp: /usr/bin/python3 (found version "3.11")
      -- Found PythonLibs: /usr/lib64/libpython3.11.so
      -- Performing Test HAS_CPP14_FLAG
      -- Performing Test HAS_CPP14_FLAG - Success
      -- pybind11 v2.2.4
      -- Using CMake version: 3.24.2
      -- Compiling dlib version: 19.24.0
      -- SSE4 instructions can be executed by the host processor.
      -- AVX instructions can be executed by the host processor.
      -- Enabling AVX instructions
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Found X11: /usr/include
      -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
      -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
      -- Looking for gethostbyname
      -- Looking for gethostbyname - found
      -- Looking for connect
      -- Looking for connect - found
      -- Looking for remove
      -- Looking for remove - found
      -- Looking for shmat
      -- Looking for shmat - found
      -- Found system copy of libpng: /usr/lib64/libpng.so;/usr/lib64/libz.so
      -- Found system copy of libjpeg: /usr/lib64/libjpeg.so
      -- Found WebP: /usr/lib64/libwebp.so
      -- Searching for BLAS and LAPACK
      -- Searching for BLAS and LAPACK
      -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
      -- Checking for module 'cblas'
      --   Found cblas, version 3.10.1
      -- Checking for module 'lapack'
      --   Found lapack, version 3.10.1
      -- Looking for cblas_ddot
      -- Looking for cblas_ddot - found
      -- Found BLAS and LAPACK via pkg-config
      CUDA_TOOLKIT_ROOT_DIR not found or specified
      -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
      -- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.
      -- DID NOT FIND CUDA
      -- Disabling CUDA support for dlib.  DLIB WILL NOT USE CUDA
      -- C++11 activated.
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/build/temp.linux-x86_64-cpython-311
      Invoking CMake build: 'cmake --build . --config Release -- -j16'
      [  1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
      [  2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
      [  4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
      [  4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
      [  5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
      [  6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
      [  7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
      [  8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
      [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
      [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
      [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
      [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
      [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
      [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o
      [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
      [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
      [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
      [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o
      [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
      [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
      [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
      [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
      [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
      [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
      [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
      [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
      [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
      [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
      [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
      [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
      [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
      [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
      [ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
      [ 38%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
      [ 39%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
      [ 40%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
      [ 41%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
      [ 42%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
      [ 43%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
      [ 44%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
      [ 46%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o
      [ 47%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o
      [ 48%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
      [ 49%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
      [ 50%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/cifar.cpp.o
      [ 51%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o
      [ 52%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o
      [ 53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o
      [ 55%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o
      [ 56%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o
      [ 57%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o
      [ 58%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/style.cpp.o
      [ 59%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o
      [ 60%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o
      [ 61%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o
      [ 62%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o
      [ 64%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o
      [ 65%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o
      [ 66%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o
      [ 67%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/webp_loader.cpp.o
      [ 68%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_webp.cpp.o
      [ 69%] Linking CXX static library libdlib.a
      [ 69%] Built target dlib
      [ 70%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/svm_c_trainer.cpp.o
      [ 71%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/svm_rank_trainer.cpp.o
      [ 73%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/other.cpp.o
      [ 74%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/svm_struct.cpp.o
      [ 75%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/matrix.cpp.o
      [ 77%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/decision_functions.cpp.o
      [ 77%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/cca.cpp.o
      [ 78%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/sequence_segmenter.cpp.o
      [ 79%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/image.cpp.o
      [ 80%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/vector.cpp.o
      [ 82%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/dlib.cpp.o
      [ 83%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/image4.cpp.o
      [ 85%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/image2.cpp.o
      [ 85%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/basic.cpp.o
      [ 86%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/rectangles.cpp.o
      [ 87%] Building CXX object CMakeFiles/_dlib_pybind11.dir/src/image3.cpp.o
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/matrix.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:90: CMakeFiles/_dlib_pybind11.dir/src/matrix.cpp.o] Error 1
      gmake[2]: *** Waiting for unfinished jobs....
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/dlib.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:76: CMakeFiles/_dlib_pybind11.dir/src/dlib.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/cca.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:188: CMakeFiles/_dlib_pybind11.dir/src/cca.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/vector.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:104: CMakeFiles/_dlib_pybind11.dir/src/vector.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/decision_functions.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:146: CMakeFiles/_dlib_pybind11.dir/src/decision_functions.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/other.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:160: CMakeFiles/_dlib_pybind11.dir/src/other.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/sequence_segmenter.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:202: CMakeFiles/_dlib_pybind11.dir/src/sequence_segmenter.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/svm_struct.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:216: CMakeFiles/_dlib_pybind11.dir/src/svm_struct.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/rectangles.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:286: CMakeFiles/_dlib_pybind11.dir/src/rectangles.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/svm_rank_trainer.cpp:4:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:132: CMakeFiles/_dlib_pybind11.dir/src/svm_rank_trainer.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/image.cpp:3:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:230: CMakeFiles/_dlib_pybind11.dir/src/image.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/basic.cpp:3:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:66: error: expected primary-expression before ‘)’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                                                                  ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:444:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        444 |             frame = frame->f_back;
            |                          ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1890:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
       1890 |     PyFrameObject *frame = PyThreadState_Get()->frame;
            |                                                 ^~~~~
            |                                                 cframe
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1891:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1891 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
            |                                         ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1892:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1892 |         frame->f_code->co_argcount > 0) {
            |              ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                  ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /usr/include/python3.11/Python.h:38:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                                                    ^~
      /usr/include/python3.11/pyport.h:24:38: note: in definition of macro ‘_Py_CAST’
         24 | #define _Py_CAST(type, expr) ((type)(expr))
            |                                      ^~~~
      /usr/include/python3.11/cpython/tupleobject.h:30:38: note: in expansion of macro ‘_PyTuple_CAST’
         30 | #define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[index])
            |                                      ^~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:1895:30: note: in expansion of macro ‘PyTuple_GET_ITEM’
       1895 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
            |                              ^~~~~~~~~~~~~~~~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      gmake[2]: *** [CMakeFiles/_dlib_pybind11.dir/build.make:174: CMakeFiles/_dlib_pybind11.dir/src/basic.cpp.o] Error 1
      In file included from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pybind11.h:43,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python/pybind_utils.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/../dlib/python.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/opaque_types.h:6,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/tools/python/src/image4.cpp:3:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/internals.h:194:27: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
        194 |         PyEval_InitThreads();
            |         ~~~~~~~~~~~~~~~~~~^~
      In file included from /usr/include/python3.11/Python.h:95,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/detail/common.h:112,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:13:
      /usr/include/python3.11/ceval.h:132:37: note: declared here
        132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
            |                                     ^~~~~~~~~~~~~~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                    ^~
      In file included from /usr/include/python3.11/Python.h:42:
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:75: error: expected primary-expression before ‘>’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                           ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:441:77: error: expected primary-expression before ‘)’ token
        441 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
            |                                                                             ^
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:29: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";
            |                             ^~
      /usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      /tmp/pip-install-fmyee_bm/dlib_6920fc3ef79b449a83b0d2170087c472/dlib/external/pybind11/include/pybind11/cast.h:443:64: error: expected primary-expression before ‘>’ token
        443 |                 handle(frame->f_code->co_name).cast<std::string>() + "\n";