Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Run every installer Python child and a deep online installation through the short path view
Bowen Xuea912efd73d5d
diff --git a/freevideo_engine/environments.py b/freevideo_engine/environments.pyindex b477506..26753c3 100644--- a/freevideo_engine/environments.py+++ b/freevideo_engine/environments.py@@ -36,7 +36,7 @@ UV_FILE_LIST_OPTIONS = frozenset(('-c', '--constraint', '--constraints', '-b', 'UV_BUILD_PATH_CHARS = 200-UV_CHILD_MARKERS = ('--install-packages', 'freevideo_engine.comfy_host')+PYTHON_NAMES = ('python.exe', 'python', 'pythonw.exe')def uv_build_environment(command, root, environ):@@ -47,9 +47,10 @@ def uv_build_environment(command, root, environ):installation settings, cache ownership and the parent's environment stay put."""# `venv` and `python` also write into the cache (interpreter records, downloads) below the same root.- # The setup children that install the VDN and ComfyUI packages run `uv` themselves, with the same cache.+ # A Python child also needs it: it runs `uv` itself (VDN and ComfyUI packages) and the loader+ # refuses a DLL such as torch\\lib\\c10.dll whose full path exceeds the limit (WinError 206).runs_uv = list(command[1:2]) in (['pip'], ['venv'], ['python']) and Path(command[0]).name.lower() in ('uv', 'uv.exe')- if not command or not (runs_uv or any(str(item) in UV_CHILD_MARKERS for item in command)):+ if not command or not (runs_uv or Path(str(command[0])).name.lower() in PYTHON_NAMES):return environfrom . import launch_view, runtime_aliasfrom .long_paths import io_path, path_chars, plaindiff --git a/freevideo_engine/launch_view.py b/freevideo_engine/launch_view.pyindex f9c020b..e97ef24 100644--- a/freevideo_engine/launch_view.py+++ b/freevideo_engine/launch_view.py@@ -67,24 +67,30 @@ def view_for(real_root) -> View:def for_engine(engine_root) -> View:"""The view of the offline runtime around this engine folder, if it needs one.- An installation made online is its engine folder: it gets a view only where the- system code page cannot spell its folder, and one that cannot be made is not an error.+ An installation made online is its engine folder: it gets a view only where the system+ code page cannot spell its folder or its deepest library is beyond the loader's limit,+ and one that cannot be made is not an error."""from . import runtime_aliasengine = Path(plain(engine_root))- if engine.name.casefold() == ONLINE_ENGINE:- try:- return view_for(engine) if runtime_alias.needs_view(engine, spelling_only=True) else View(engine, engine)- except OSError: # Includes a junction that cannot be made: the checks after it name what fails.- return View(engine, engine)root = engine.parent# The first two tests read nothing from disk wherever no junction is needed.# The third asks by the extended path: where a junction is needed, the plain# one is not found beyond 259 characters.- if (engine.name.casefold() != 'engine' or not runtime_alias.needs_view(root)- or not io_path(root / 'portable.json').is_file()):+ if (engine.name.casefold() == 'engine' and runtime_alias.needs_view(root)+ and io_path(root / 'portable.json').is_file()):+ return view_for(root)+ if engine.name.casefold() == 'engine':return View(engine, engine)- return view_for(root)+ try:+ # An installation made online is its engine folder. It gets a view where the system code+ # page cannot spell the folder or the loader cannot open its deepest library; one that+ # cannot be made is not an error.+ if runtime_alias.needs_view(engine, spelling_only=True) or runtime_alias.online_loaded_too_long(engine):+ return view_for(engine)+ except OSError: # Includes a junction that cannot be made: the checks after it name what fails.+ pass+ return View(engine, engine)def for_file(path):diff --git a/freevideo_engine/runtime_alias.py b/freevideo_engine/runtime_alias.pyindex 37c4eb3..599e598 100644--- a/freevideo_engine/runtime_alias.py+++ b/freevideo_engine/runtime_alias.py@@ -20,6 +20,7 @@ from .long_paths import extended, io_path, path_chars, plain, resolvedfrom .package_paths import ALIAS_ROOT_RESERVE, KNOWN_RUNTIME_PATH_CHARS, WINDOWS_PATH_LIMITRESERVE = 40+ONLINE_LOADED_PATH_CHARS = 100 # below the engine folder: envs\\unified\\Lib\\site-packages\\nvidia\\cudnn\\bin\\<dll>PROGRAMS = ('.exe',)LOADED = PROGRAMS + ('.dll', '.pyd') # What Windows starts or loads, never from beyond the limit.# The licence texts a package carries are a runtime's deepest files, and no program opens them.@@ -544,6 +545,17 @@ def needs_view(root, longest=None, spelling_only=False) -> bool:return path_chars(root) + 1 + longest + RESERVE > WINDOWS_PATH_LIMIT+def online_loaded_too_long(engine) -> bool:+ """An online installation whose deepest program or library is beyond what Windows loads.++ The loader ignores the system's long-path setting for a DLL such as torch\\lib\\c10.dll.+ """+ if not _backend.windows() or os.environ.get('FREEVIDEO_RUNTIME_ALIAS') == '0':+ return False+ engine = _ordinary(resolved(checked_real_path(engine)))+ return path_chars(engine) + 1 + ONLINE_LOADED_PATH_CHARS > WINDOWS_PATH_LIMIT++def is_junction(path) -> bool:"""Any Windows directory junction or directory symlink, wherever it lives."""if not _backend.windows():