davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.59k stars 3.38k forks source link

Yet Another DLIB installtion error despite having Cmake and Windows SDK #2529

Closed vybhav72954 closed 2 years ago

vybhav72954 commented 2 years ago

IF YOU ARE REPORTING A BUG OR PROBLEM WITH DLIB THEN FILL OUT THE ENTIRE TEMPLATE BELOW. ISSUES ASKING QUESTIONS ABOUT WHY SOMETHING DOESN'T WORK THAT FAIL TO FILL OUT THE ENTIRE TEMPLATE WILL BE CLOSED.

It is OK to suggest interesting improvements to dlib, even if you are not volunteering to implement them. However, the issue tracker is not a code writing service, do not ask for someone to write code for you. E.g. Do not ask for feature improvements to the example programs. If there is some feature improvement you want in an example program then it's up to you to write it.

Before you ask a question, check Google for a solution, the dlib FAQ, or consult the dlib documentation. Every single function in dlib is documented in detail. If you obviously haven't read the documentation your issue will be closed.

If you aren't reporting a bug or problem with dlib then delete this template and write whatever you want here.

Expected Behavior

Used pip install dlib to install dlib Installed Cmake from their website. Installed Visual Studio Installer to download Cmake tools, Windows SDK (10.0.18632 & 10.0.19041), VS 2019 C++, Virtual Studio Community, C++ Desktop Development Tools

Current Behavior

Error Encounterd:

Collecting dlib
  Using cached dlib-19.23.0.tar.gz (3.2 MB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [326 lines of output]
      running bdist_wheel
      running build
      running build_py
      package init file 'tools\python\dlib\__init__.py' not found (or not a regular file)
      running build_ext
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\setup.py:129: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        if LooseVersion(cmake_version) < '3.1.0':
      Building extension for Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]
      Invoking CMake setup: 'cmake C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\as
us\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\lib.win-amd64-3.10 -DPYTHON_EXECUTABLE=C:\Users\asus\PycharmProjects\drowsiness-detection\envt\Scripts\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\lib.win-amd64-3.10 -A x64'  
      -- Building for: Visual Studio 16 2019
      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
      -- The C compiler identification is MSVC 19.29.30140.0
      -- The CXX compiler identification is MSVC 19.29.30140.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - 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: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found PythonInterp: C:/Users/asus/PycharmProjects/drowsiness-detection/envt/Scripts/python.exe (found version "3.10.2")
      -- Found PythonLibs: C:/Users/asus/AppData/Local/Programs/Python/Python310/libs/Python310.lib
      -- pybind11 v2.2.4
      -- Using CMake version: 3.18.4
      -- Compiling dlib version: 19.23.0
      -- SSE4 instructions can be executed by the host processor.
      -- AVX instructions can be executed by the host processor.
      -- Looking for sys/types.h
      -- Looking for sys/types.h - found
      -- Looking for stdint.h
      -- Looking for stdint.h - found
      -- Looking for stddef.h
      -- Looking for stddef.h - found
      -- Check size of void*
      -- Check size of void* - done
      -- Enabling AVX instructions
      -- Searching for BLAS and LAPACK
      -- Searching for BLAS and LAPACK
      -- Looking for pthread.h
      -- Looking for pthread.h - not found
      -- Found Threads: TRUE
      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: C:/Users/asus/AppData/Local/Temp/pip-install-ax0surjt/dlib_9487eb5b29804805a178aa76c49399f8/build/temp.win-amd64-3.10/Release
      Invoking CMake build: 'cmake --build . --config Release -- /m'
      Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
      Copyright (C) Microsoft Corporation. All rights reserved.

      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: The Intermediate directory or Output d
irectory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\ZERO_CHECK.vcxproj]
        Checking Build System
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: The Intermediate directory or Output d
irectory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        Building Custom Rule C:/Users/asus/AppData/Local/Temp/pip-install-ax0surjt/dlib_9487eb5b29804805a178aa76c49399f8/dlib/CMakeLists.txt
        base64_kernel_1.cpp
        bigint_kernel_1.cpp
        bigint_kernel_2.cpp
        bit_stream_kernel_1.cpp
        entropy_decoder_kernel_1.cpp
        entropy_decoder_kernel_2.cpp
        entropy_encoder_kernel_1.cpp
        entropy_encoder_kernel_2.cpp
        md5_kernel_1.cpp
        tokenizer_kernel_1.cpp
        unicode.cpp
        test_for_odr_violations.cpp
        sockets_kernel_1.cpp
        bsp.cpp
        dir_nav_kernel_1.cpp
        dir_nav_kernel_2.cpp
        dir_nav_extensions.cpp
        fonts.cpp
        linker_kernel_1.cpp
        extra_logger_headers.cpp
        logger_kernel_1.cpp
        logger_config_file.cpp
        misc_api_kernel_1.cpp
        misc_api_kernel_2.cpp
        sockets_extensions.cpp
        sockets_kernel_2.cpp
        sockstreambuf.cpp
        sockstreambuf_unbuffered.cpp
        server_kernel.cpp
        server_iostream.cpp
        server_http.cpp
        multithreaded_object_extension.cpp
        threaded_object_extension.cpp
        threads_kernel_1.cpp
        threads_kernel_2.cpp
        threads_kernel_shared.cpp
        thread_pool_extension.cpp
        async.cpp
        timer.cpp
        stack_trace.cpp
        cpu_dlib.cpp
        tensor_tools.cpp
        image_dataset_metadata.cpp
        mnist.cpp
        cifar.cpp
        global_function_search.cpp
        kalman_filter.cpp
        auto.cpp
        widgets.cpp
        drawable.cpp
        canvas_drawing.cpp
        style.cpp
        base_widgets.cpp
        gui_core_kernel_1.cpp
        gui_core_kernel_2.cpp
        png_loader.cpp
        save_png.cpp
        jpeg_loader.cpp
        save_jpeg.cpp
        arm_init.c
        filter_neon_intrinsics.c
        png.c
        pngerror.c
        pngget.c
        pngmem.c
        pngpread.c
        pngread.c
        pngrio.c
        pngrtran.c
        pngrutil.c
        pngset.c
        pngtrans.c
        pngwio.c
        pngwrite.c
        pngwtran.c
        pngwutil.c
        adler32.c
        compress.c
        crc32.c
        deflate.c
        gzclose.c
        gzlib.c
        gzread.c
        gzwrite.c
        infback.c
        inffast.c
        inflate.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzread.c(319,20): warning C4267: '=': conversion from 'size_t' to '
unsigned int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        inftrees.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzwrite.c(212,27): warning C4267: '=': conversion from 'size_t' to 
'unsigned int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzread.c(400,35): warning C4267: '=': conversion from 'size_t' to '
unsigned int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzwrite.c(232,24): warning C4267: '=': conversion from 'size_t' to 
'unsigned int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzread.c(472,33): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]     
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\zlib\gzwrite.c(371,36): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]    
        trees.c
        uncompr.c
        zutil.c
        jaricom.c
        jcapimin.c
        jcapistd.c
        jcarith.c
        jccoefct.c
        jccolor.c
        jcdctmgr.c
        jchuff.c
        jcinit.c
        jcmainct.c
        jcmarker.c
        jcmaster.c
        jcomapi.c
        jcparam.c
        jcprepct.c
        jcsample.c
        jdapimin.c
        jdapistd.c
        jdarith.c
        jdatadst.c
        jdatasrc.c
        jdcoefct.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jdatadst.c(185,60): warning C4267: '=': conversion from 'size_t'
 to 'unsigned long', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        jdcolor.c
        jddctmgr.c
        jdhuff.c
        jdinput.c
        jdmainct.c
        jdmarker.c
        jdmaster.c
        jdmerge.c
        jdpostct.c
        jdsample.c
        jerror.c
        jfdctflt.c
        jfdctfst.c
        jfdctint.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jerror.c(193,5): warning C4996: 'sprintf': This function or vari
able may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jerror.c(195,5): warning C4996: 'sprintf': This function or vari
able may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        jidctflt.c
        jidctfst.c
        jidctint.c
        jmemmgr.c
        jmemnobs.c
        jquant1.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(307,53): warning C4267: '+=': conversion from 'size_t'
 to 'long', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        jquant2.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(367,70): warning C4267: '+=': conversion from 'size_t'
 to 'long', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        jutils.c
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(977,46): warning C4267: '-=': conversion from 'size_t'
 to 'long', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(991,46): warning C4267: '-=': conversion from 'size_t'
 to 'long', possible loss of data [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(1107,19): warning C4996: 'getenv': This function or va
riable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\libjpeg\jmemmgr.c(1110,11): warning C4996: 'sscanf': This function or va
riable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\dlib.vcxproj]
        dlib.vcxproj -> C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\dlib_build\Release\dlib19.23.0_release_64bit_msvc1929.lib
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: The Intermediate directory or Output d
irectory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
        Building Custom Rule C:/Users/asus/AppData/Local/Temp/pip-install-ax0surjt/dlib_9487eb5b29804805a178aa76c49399f8/tools/python/CMakeLists.txt
        dlib.cpp
        matrix.cpp
        vector.cpp
        svm_c_trainer.cpp
        svm_rank_trainer.cpp
        decision_functions.cpp
        other.cpp
        basic.cpp
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_c_trainer.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\matrix.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_c_trainer.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\matrix.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\vector.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\vector.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_rank_trainer.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\basic.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_rank_trainer.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\basic.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\decision_functions.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\decision_functions.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\dlib.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\dlib.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\other.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\other.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
        cca.cpp
        sequence_segmenter.cpp
        svm_struct.cpp
        image.cpp
        image2.cpp
        image3.cpp
        image4.cpp
        rectangles.cpp
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\cca.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\cca.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\sequence_segmenter.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\sequence_segmenter.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_struct.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\svm_struct.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image2.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image2.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image3.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image3.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image4.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image4.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\rectangles.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\rectangles.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
        object_detection.cpp
        shape_predictor.cpp
        correlation_tracker.cpp
        face_recognition.cpp
        cnn_face_detector.cpp
        global_optimization.cpp
        image_dataset_metadata.cpp
        numpy_returns.cpp
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\object_detection.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\object_detection.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\shape_predictor.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\shape_predictor.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\face_recognition.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\face_recognition.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\correlation_tracker.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\correlation_tracker.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\cnn_face_detector.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\cnn_face_detector.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image_dataset_metadata.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\image_dataset_metadata.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\numpy_returns.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\numpy_returns.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\global_optimization.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\global_optimization.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
        line.cpp
        gui.cpp
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\line.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\line.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,22): error C2065: 'ssize_t': undecl
ared identifier (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\gui.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\dlib\external\pybind11\include\pybind11/numpy.h(35,31): error C2338: ssize_t != Py_int
ptr_t (compiling source file C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\tools\python\src\gui.cpp) [C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\build\temp.win-amd64-3.10\Release\_dlib_pybind11.vcxproj]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\setup.py", line 222, in <module>
          setup(
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\__init__.py", line 155, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
          return run_commands(dist)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
          dist.run_commands()
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
          cmd_obj.run()
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
          cmd_obj.run()
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
          self.run_command(cmd_name)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\asus\PycharmProjects\drowsiness-detection\envt\lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
          cmd_obj.run()
        File "C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\setup.py", line 134, in run
          self.build_extension(ext)
        File "C:\Users\asus\AppData\Local\Temp\pip-install-ax0surjt\dlib_9487eb5b29804805a178aa76c49399f8\setup.py", line 174, in build_extension
          subprocess.check_call(cmake_build, cwd=build_folder)
        File "C:\Users\asus\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dlib
  Running setup.py clean for dlib
Failed to build dlib

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> dlib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

It also tried to run the setup.py file but throws the same error.

Steps to Reproduce

I have used pip and also tried to install it from the source. See this

davisking commented 2 years ago

Try the latest dlib from github.

dlib-issue-bot commented 2 years ago

Warning: this issue has been inactive for 35 days and will be automatically closed on 2022-04-13 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot commented 2 years ago

Warning: this issue has been inactive for 42 days and will be automatically closed on 2022-04-13 if there is no further activity.

If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.

dlib-issue-bot commented 2 years ago

Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.

bconstanzo commented 2 years ago

Sorry for reopening, but I just stumbled upon this and solved it by following jloh's answer on: https://stackoverflow.com/questions/70122322/error-in-installing-dlib-library-in-python-3-10

Basically, I installed cmake on windows through the installer (I did also pip-install cmake, it seems to have worked fine) and changed 26-29 of dlib/external/pybind11/include/pybind11/numpy.h from

#if defined(_MSC_VER)
#  pragma warning(push)
#  pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
#endif

to

#if defined(_MSC_VER)
#  pragma warning(push)
#  pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

After which I was able to build (and use) dlib 19.23 with Python 3.10 on Windows 10. The current version of the file on the repo includes those changes, but the release .zip doesn't. Would it be much of a hassle to make a new release .zip?

davisking commented 2 years ago

Yeah it's probably a good time for another release. I'll prepare one shortly :)

davisking commented 2 years ago

Ok, dlib v19.24 is officially out :)