Skip to content

[BUG] ModuleNotFoundError: No module named 'fcntl' when running on Windows machine #15

@mnmcho

Description

@mnmcho

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

0.1.0

Python Version

3.13.3

Operating System

Windows 10

Installation Method

pip

Steps to Reproduce

https://strandsagents.com/0.1.x/user-guide/quickstart/

Follow the quickstart guidance on Windows machine.

Expected Behavior

Being able to run the basic quickstart agent that can perform mathematical calculations, get the current time, run Python code, and count letters in words.

Actual Behavior

(.venv) PS C:\Users\mnmcho\downloads\adhoc\strands\my_agent> python -u agent.py
Traceback (most recent call last):
  File "C:\Users\mnmcho\downloads\adhoc\strands\my_agent\agent.py", line 2, in <module>
    from strands_tools import calculator, current_time, python_repl
  File "C:\Users\mnmcho\downloads\adhoc\strands\.venv\Lib\site-packages\strands_tools\python_repl.py", line 35, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'

Additional Context

No response

Possible Solution

No response

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions