Selur's Little Message Board

Full Version: DeHalo filters producing a script error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hybrid version: 2025.03.09.1

Steps to reproduce: I added my .avi file to the input path in the Base tab, then went to Filtering > Vapoursynth > DeHalo and enabled FineDeHalo. The only settings I changed were to adjust the strength to 1.5.

When I click on VapourSynth preview, the result is the error below.

Link to HybridDebugOutput.txt: https://mega.nz/file/WR0GWYTJ#qLQUweFOUD...1OaGsD_kUU

The error that appears in VapourSynth editor is the following:
Code:
Failed to evaluate the script:
Python exception: expected 'else' after 'if' expression (dehalo.py, line 63)

Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3365, in vapoursynth._vpy_evaluate
File "src\\cython\\vapoursynth.pyx", line 3366, in vapoursynth._vpy_evaluate
File "C:\Users\Terzenaus\AppData\Local\Temp\tempPreviewVapoursynthFile12_50_00_838.vpy", line 17, in
import dehalo
File "C:\Program Files\Hybrid\64bit\vsscripts\dehalo.py", line 63
so = so.vszip.Limiter() if hasattr(core,'vszip') so.std.Limiter()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: expected 'else' after 'if' expression
either:
a. update to latest dev
or
b. change "C:\Program Files\Hybrid\64bit\vsscripts\dehalo.py", line 63
from
Code:
so = so.vszip.Limiter() if hasattr(core,'vszip') so.std.Limiter()
to
Code:
so = so.vszip.Limiter() if hasattr(core,'vszip') else so.std.Limiter()

Cu Selur
Great, thank you! Smile