Skip to content

UvAPI hardcodes POSIX venv paths and fails on Windows (bin/python vs Scripts/python.exe) #268

Description

@yoodn

clearml_agent/helper/package/uv_api.py hardcodes POSIX virtualenv paths in several places:

  • .venv/bin/python in UvAPI.get_python_command()
  • /bin/python... after uv venv creation
  • <uv_install_venv>/bin/uv in install_uv_package()

On Windows, venv executables are located under Scripts/, e.g. Scripts/python.exe and Scripts/uv.exe.
The existing VirtualenvPip implementation already uses select_for_platform(linux="bin/python", windows="scripts/python.exe"), so UvAPI should probably use the same platform-specific logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions