generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
model/ and mcp_client/ directories in all 6 Python framework templates have no __init__.py. Imports in main.py rely on implicit namespace packages, which break depending on working directory, packaging tool (e.g., hatch build), or deployment method.
Steps to Reproduce
agentcore createwith any Python frameworkcdinto the agent directoryhatch buildor run from a different working directory- Observe
ModuleNotFoundErrorformodelormcp_clientimports
Expected Behavior
model/ and mcp_client/ should be proper Python packages with __init__.py, so imports work regardless of working directory or packaging method.
Actual Behavior
Imports fail when the working directory differs or when using packaging tools that require explicit packages.
Operating System
macOS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working