Skip to content

Windows 11 Home: Test suite crashes due to PyTorch/OMP conflict in Anaconda environment #1381

@ASHUTOSH-KUMAR-RAO

Description

@ASHUTOSH-KUMAR-RAO

Environment

  • OS: Windows 11 Home
  • Python: 3.13.9 (Anaconda)
  • Package: cua-agent v0.7.39

Problem

Running pytest tests/ -v in libs/python/agent causes fatal crash:

  • Fatal Python error: Aborted
  • Caused by huggingfacelocal_adapter.py importing torch
  • OMP duplicate library conflict between Anaconda's numpy and cua's torch

Steps to Reproduce

  1. Clone repo on Windows 11 Home
  2. cd libs/python/agent
  3. pip install -e .
  4. pytest tests/ -v

Expected

Tests should run or skip gracefully

Suggested Fix

  • Add KMP_DUPLICATE_LIB_OK=TRUE to Windows setup docs
  • Mock torch in tests to avoid actual import
  • Add Windows setup guide in CONTRIBUTING.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions