Skip to content

fix: add botocore[crt] dependency to all Python agent templates#17

Closed
tejaskash wants to merge 6 commits into
mainfrom
fix/add-botocore-crt-dependency
Closed

fix: add botocore[crt] dependency to all Python agent templates#17
tejaskash wants to merge 6 commits into
mainfrom
fix/add-botocore-crt-dependency

Conversation

@tejaskash

Copy link
Copy Markdown
Contributor

Adds botocore[crt] dependency to all Python framework templates to support AWS login credential provider.

Changes:

  • Added 'botocore[crt] >= 1.35.0' to all Python framework templates
  • Affects: Strands, CrewAI, OpenAI Agents, Google ADK, AutoGen, LangChain/LangGraph
  • Required for AWS login credential provider used by bedrock-agentcore

Fixes 'Missing Dependency: pip install botocore[crt]' error when using AWS credentials.

…lity

- Replace rsync with Node.js script (scripts/copy-assets.mjs) for copying assets
- Replace 'rm -rf' with Node.js fs.rmSync for clean script
- Fix AGENTS.md exclusion to only apply at root level, preserving src/assets/agents/AGENTS.md
- Ensures build works on Windows without requiring Unix tools
- Check ptyAvailable flag before attempting to spawn script command
- Skip warmup on Windows where PTY is not available
- Prevents 'spawn script ENOENT' error on Windows
- Falls back to one-shot command execution automatically
- Remove code that was overwriting postinstall with wrong package name
- Template already has correct '@aws/agentcore-l3-cdk-constructs' in postinstall
- Fixes npm link to use full scoped package name instead of 'agentcore'
- Enables proper local development workflow with npm link
- Document npm link workflow for unpublished L3 constructs package
- Include troubleshooting steps for common issues
- Explain LOCAL_L3_PATH alternative approach
- Helps developers work with local packages before npm publication
- Create platform utilities module (lib/utils/platform.ts) with:
  - getVenvExecutable() for Python venv paths (bin/ vs Scripts/)
  - Platform detection flags (isWindows, isMacOS, isLinux)
  - Shell command helpers (getShellCommand, getShellArgs)
- Update dev server to use getVenvExecutable() for uvicorn path
- Update persistent-shell to use isWindows flag
- Abstracts platform differences for cleaner, maintainable code
- Fixes dev server spawn error on Windows (ENOENT)
- Add 'botocore[crt] >= 1.35.0' to all Python framework templates
- Required for AWS login credential provider used by bedrock-agentcore
- Fixes 'Missing Dependency: pip install botocore[crt]' error
- Affects: Strands, CrewAI, OpenAI Agents, Google ADK, AutoGen, LangChain/LangGraph
- Ensures AWS credential providers work correctly in all frameworks
@tejaskash tejaskash requested a review from a team February 1, 2026 00:29
@tejaskash tejaskash closed this Feb 1, 2026
@tejaskash tejaskash deleted the fix/add-botocore-crt-dependency branch February 1, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant