I have run into so many build issues trying to install this and now I'm up against this error. At my wit's end.
× Building wheel for rife-ncnn-vulkan-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [276 lines of output]
C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
Downloading: https://github.com/nihui/rife-ncnn-vulkan/archive/c806e66490679aebc1b4a6832985e004fd552f46.zip
Total size: 420066225
Chunk size: 4096
Saving to: C:\Users\Aaron\AppData\Local\Temp\tmpfv2u3w2e
running bdist_wheel
running build
running build_ext
-- The C compiler identification is MSVC 19.27.29111.0
-- The CXX compiler identification is MSVC 19.27.29111.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/Professional/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
CMake Warning in C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/CMakeFiles/CMakeTmp/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/CMakeFiles/CMakeTmp/CMakeFiles/cmTC_937d6.dir/./
has 224 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
CMakeCXXCompilerABI.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Found Vulkan: C:/VulkanSDK/1.3.224.1/Lib/vulkan-1.lib (found version "1.3.224") found components: glslc glslangValidator
-- Found Python: C:/Python/Python39/libs/python39.lib (found version "3.9.2") found components: Development Development.Module Development.Embed
-- Found SWIG: C:/swigwin-4.0.2/swig.exe (found version "4.0.2") found components: python
SWIG found: C:/swigwin-4.0.2/swig.exe
-- CMAKE_INSTALL_PREFIX = C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/lib.win-amd64-cpython-39/rife_ncnn_vulkan_python
-- NCNN_VERSION_STRING = 1.0.20220922
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_FMA
-- Performing Test NCNN_COMPILER_SUPPORT_X86_FMA - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_XOP
-- Performing Test NCNN_COMPILER_SUPPORT_X86_XOP - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_F16C
-- Performing Test NCNN_COMPILER_SUPPORT_X86_F16C - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX2
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX2 - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX_VNNI
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX_VNNI - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX512
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX512 - Success
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX512_VNNI
-- Performing Test NCNN_COMPILER_SUPPORT_X86_AVX512_VNNI - Success
CMake Warning at rife-ncnn-vulkan/src/ncnn/CMakeLists.txt:428 (message):
The compiler does not support avx512 bf16 extension. NCNN_AVX512BF16 will
be OFF.
CMake Warning at rife-ncnn-vulkan/src/ncnn/CMakeLists.txt:435 (message):
The compiler does not support avx512 fp16 extension. NCNN_AVX512FP16 will
be OFF.
-- Target arch: x86
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
CMake Warning (dev) at C:/Users/Aaron/AppData/Local/Temp/pip-build-env-4_4jfuv0/overlay/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/UseSWIG.cmake:775 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:302 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/Aaron/AppData/Local/Temp/pip-build-env-4_4jfuv0/overlay/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/UseSWIG.cmake:617 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
C:/Users/Aaron/AppData/Local/Temp/pip-build-env-4_4jfuv0/overlay/Lib/site-packages/cmake/data/share/cmake-3.24/Modules/UseSWIG.cmake:888 (SWIG_ADD_SOURCE_TO_MODULE)
CMakeLists.txt:302 (swig_add_library)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Warning in CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/CMakeFiles/rife_ncnn_vulkan_wrapper.dir/./
has 218 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
rife-ncnn-vulkan/src/warp.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeFiles/GenericCodeGen.dir/./
has 250 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
GenericCodeGen/CodeGen.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeFiles/MachineIndependent.dir/./
has 254 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
MachineIndependent/preprocessor/PpContext.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/glslang/CMakeFiles/glslang.dir/./
has 243 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
CInterface/glslang_c_interface.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/glslang/OSDependent/Windows/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/glslang/OSDependent/Windows/CMakeFiles/OSDependent.dir/./
has 267 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
ossource.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/OGLCompilersDLL/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/OGLCompilersDLL/CMakeFiles/OGLCompiler.dir/./
has 255 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
InitializeDll.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/glslang/SPIRV/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/glslang/SPIRV/CMakeFiles/SPIRV.dir/./
has 239 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
SpvBuilder.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in rife-ncnn-vulkan/src/ncnn/src/CMakeLists.txt:
The object file directory
C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/src/CMakeFiles/ncnn.dir/./
has 228 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
layer/x86/deconvolution_x86_fma.cpp.obj
cannot be safely placed under this directory. The build may not work
correctly.
-- Generating done
-- Build files have been written to: C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python
**_ninja: error: Stat(C:/Users/Aaron/AppData/Local/Temp/pip-install-a1my1s33/rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30/build/temp.win-amd64-cpython-39/Release_rife-ncnn-vulkan-python/rife-ncnn-vulkan/src/ncnn/src/convolution_3x3s1d1_winograd23_transform_input.comp.hex.h): Filename longer than 260 characters_**
==> Configuring:
$ cmake -S C:\Users\Aaron\AppData\Local\Temp\pip-install-a1my1s33\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\rife_ncnn_vulkan_python -B C:\Users\Aaron\AppData\Local\Temp\pip-install-a1my1s33\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\build\temp.win-amd64-cpython-39\Release_rife-ncnn-vulkan-python -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\Aaron\AppData\Local\Temp\pip-install-a1my1s33\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\build\lib.win-amd64-cpython-39\rife_ncnn_vulkan_python -DCMAKE_MAKE_PROGRAM=C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Scripts\ninja.EXE -DBUILD_SHARED_LIBS:BOOL=OFF -DCALL_FROM_SETUP_PY:BOOL=ON
==> Building:
$ cmake --build C:\Users\Aaron\AppData\Local\Temp\pip-install-a1my1s33\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\build\temp.win-amd64-cpython-39\Release_rife-ncnn-vulkan-python --config Release
==> Installing:
$ cmake --install C:\Users\Aaron\AppData\Local\Temp\pip-install-a1my1s33\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\build\temp.win-amd64-cpython-39\Release_rife-ncnn-vulkan-python
Traceback (most recent call last):
File "C:\Python\Python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Python\Python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python\Python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\build_meta.py", line 412, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 98, in <module>
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_commands
self.run_command(cmd)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 992, in run_command
cmd_obj.run()
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\cmake_build_extension\build_extension.py", line 113, in run
self.build_extension(ext)
File "C:\Users\Aaron\AppData\Local\Temp\pip-build-env-4_4jfuv0\overlay\Lib\site-packages\cmake_build_extension\build_extension.py", line 230, in build_extension
subprocess.check_call(build_command)
File "C:\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', 'C:\\Users\\Aaron\\AppData\\Local\\Temp\\pip-install-a1my1s33\\rife-ncnn-vulkan-python_8861ce3bafba40479c5ef3bdc5d5ee30\\build\\temp.win-amd64-cpython-39\\Release_rife-ncnn-vulkan-python', '--config', 'Release']' 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 rife-ncnn-vulkan-python
Failed to build rife-ncnn-vulkan-python
ERROR: Could not build wheels for rife-ncnn-vulkan-python, which is required to install pyproject.toml-based projects`