25.09.2024, 20:21
I tested your environment, and I get the same error:
more precisely from spatial_correlation_sampler_backend.py that has this code
'spatial_correlation_sampler_backend.cp312-win_amd64.pyd' is the DLL not found, but is available.
try to downgrade to importlib 7.10
debugging this kind of errors in python is almost impossible.
What is strange is that on my side the DLL is found.
I deleted the file spatial_correlation_sampler_backend.cpython-312.pyc in Lib\site-packages\__pycache__
But the filter is working fine, it seems that this file is not necessary to load the DLL.
Don't have any idea on how to fix this problem
Dan
File "D:\SYNC\Software\Hybrid\Torch\testing\Vapoursynth\Lib\site-packages\spatial_correlation_sampler\spatial_correlation_sampler.py", line 6, in <module>
import spatial_correlation_sampler_backend as correlation
ImportError: DLL load failed while importing spatial_correlation_sampler_backend: Impossibile trovare la procedura specificata.
more precisely from spatial_correlation_sampler_backend.py that has this code
def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, importlib.util
__file__ = pkg_resources.resource_filename(__name__, 'spatial_correlation_sampler_backend.cp312-win_amd64.pyd')
__loader__ = None; del __bootstrap__, __loader__
spec = importlib.util.spec_from_file_location(__name__,__file__)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
__bootstrap__()
'spatial_correlation_sampler_backend.cp312-win_amd64.pyd' is the DLL not found, but is available.
try to downgrade to importlib 7.10
debugging this kind of errors in python is almost impossible.
What is strange is that on my side the DLL is found.
I deleted the file spatial_correlation_sampler_backend.cpython-312.pyc in Lib\site-packages\__pycache__
But the filter is working fine, it seems that this file is not necessary to load the DLL.
Don't have any idea on how to fix this problem

Dan