Skip to content

[BUG] Resolve tools from file failing on Windows #12

@galuszkm

Description

@galuszkm

Checks

  • I have updated to the latest version of strands-compose
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

strands-compose Version

0.1.1

strands-agents Version

1.33.0

Python Version

3.13.8

Operating System

Windows 11

Installation Method

uv

Relevant YAML Config

models:
  default:
    provider: bedrock
    model_id: openai.gpt-oss-20b-1:0

x-system_prompt: &system_prompt |
  You are a text analysis assistant.
  You have tools to count words, count characters, extract sentences,
  and reverse word order in text.
  Always use your tools when analysing text — never estimate by eye.
  Report results clearly with the exact numbers from the tool output.

agents:
  analyst:
    model: default
    tools:
      - ./tools.py
    system_prompt: *system_prompt

entry: analyst

Steps to Reproduce

Run example: 03_tools

Expected Behavior

Tools should be loaded similar to linux runtime

Actual Behavior

ModuleNotFoundError: No module named 'C'

Additional Context

No response

Possible Solution

No response

Related Issues

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions