#1622·garak

datasets<4.0 pin incompatible with inspect-evals but torchcodec now supports Windows

Author: AlbMejCreated Feb 18, 2026Updated Sep 29, 2026
Labelsdontautoclosefor-maintainersdependencies

Steps to reproduce

How'd you do it?

  1. Create a fresh Python 3.12 virtual environment using uv venv
  2. Attempt to install garak 0.14.0 and inspect-evals together: uv add garak==0.14.0 inspect-evals

Expected behavior

garak and inspect-evals should be installable in the same environment

Background: In July 2025 the datasets version had to be locked in issue #1290 due to incompatibilities between Windows and torchcodec. This shipped in v0.13.0

However, torchcodec has since added Windows support:

  • TorchCodec v0.7.0 (Sep 2025) torchcodec adds Windows support
  • TorchCodec v0.8.1 (Oct 2025) Adds support for FFmpeg 8 on Windows, supporting FFmpeg 4-8 across all platforms (Linux, MacOS and Windows).

inspect-evals requires datasets>=4.0.0 which caused the temporary incompatibility but given the updates to torchcodec, now there is no technical reason inspect-evals should conflict with garak on Linux/WSL2.

Current behavior

The resolver fails immediately showing:

$ uv add garak==0.14.0 inspect-evals
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.14' and
  │ sys_platform == 'win32'):
  ╰─▶ Because garak==0.14.0 depends on datasets>=3.0.0,<4.0 and inspect-evals==0.3.106 depends on datasets>=4.5.0,
      we can conclude that garak==0.14.0 and inspect-evals==0.3.106 are incompatible.
      And because only inspect-evals<=0.3.106 is available, we can conclude that garak==0.14.0 and
      inspect-evals>=0.3.106 are incompatible.
      And because your project depends on garak==0.14.0 and inspect-evals>=0.3.106, we can conclude that your
      project's requirements are unsatisfiable.

uv offers options for optional dependencies and Platform-specific dependencies. Since uv resolves dependencies for all platforms simultaneously, the error appearing in the sys_platform == 'win32' confirms the conflict is Windows-scoped. If the decision is to keep the dataset version pinned, it can be applied only on Windows using a platform marker in pyproject.toml: datasets>=3.0.0,<4.0; sys_platform == "win32", datasets>=3.0.0; sys_platform != "win32" (See: https://github.com/NVIDIA/garak/compare/main...AlbMej:garak:main)

Additional Information

  1. Operating system: WSL2 (Windows)
  2. Python version: 3.12
  3. Install method (pypi, pip based repo install, direct repository checkout with git): uv add