14.02.2024, 21:48
Try to check your folder: Hybrid\64bit\Vapoursynth\Lib\site-packages
should be only one copy of: _dlib_pybind11.cp311-win_amd64.pyd
In the file __init__.py there is the following code:
What is relevant in windows are the DLLs. The path where are stored is recovered from the path of the libraries.
If the path for lib is: 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudart.lib'
The DLLs are searched in: 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/bin'
(see path contruction in the function: add_lib_to_dll_path).
This imply that in your case the DLLs are searched in: 'F:/Hybrid/64bit/bin'
Please check and move the libraries in: 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies/lib/x64'
But in any case the DLLs will be searched in: 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies/bin'
If you want to keep 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies' you must change the function add_lib_to_dll_path()
Dan
should be only one copy of: _dlib_pybind11.cp311-win_amd64.pyd
In the file __init__.py there is the following code:
def add_lib_to_dll_path(path):
""" On windows you must call os.add_dll_directory() to allow linking to external DLLs. See
https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew. This function adds the folder
containing path to the dll search path.
"""
try:
import os
os.add_dll_directory(os.path.join(os.path.dirname(path), '../../bin'))
except (AttributeError,KeyError,FileNotFoundError):
pass
if 'ON' == 'ON':
add_lib_to_dll_path('C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudnn.lib')
add_lib_to_dll_path('C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudart.lib')
from _dlib_pybind11 import *
from _dlib_pybind11 import __version__, __time_compiled__
What is relevant in windows are the DLLs. The path where are stored is recovered from the path of the libraries.
If the path for lib is: 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/lib/x64/cudart.lib'
The DLLs are searched in: 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4/bin'
(see path contruction in the function: add_lib_to_dll_path).
This imply that in your case the DLLs are searched in: 'F:/Hybrid/64bit/bin'
Please check and move the libraries in: 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies/lib/x64'
But in any case the DLLs will be searched in: 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies/bin'
If you want to keep 'F:/Hybrid/64bit/Vapoursynth/torch_dependencies' you must change the function add_lib_to_dll_path()
Dan