Shebangs are going crazy. MacOS vs AgentCore Observability.
I experienced same issue on (local) Python versions 3.12 and 3.13 Prerequisites Setting up the environment CLI, user # Create virtual env on Python 3.14 and get inside python3.14 -m venv .venv sour...

Source: DEV Community
I experienced same issue on (local) Python versions 3.12 and 3.13 Prerequisites Setting up the environment CLI, user # Create virtual env on Python 3.14 and get inside python3.14 -m venv .venv source .venv/bin/activate # Install all dependencies pip install bedrock-agentcore-starter-toolkit pip install --upgrade pip # Verify the versions python --version && pip show bedrock-agentcore-starter-toolkit | grep Version This is what I got: Python 3.14.3 Version: 0.3.4 Creating a dummy agent Let's create a dummy strands agent: observability_lab.py """ Minimal Strands agent deployed on Amazon Bedrock AgentCore. Used to reproduce and fix the observability shebang bug on macOS. The agent itself is trivial — it just responds to any prompt. """ from bedrock_agentcore import BedrockAgentCoreApp from strands import Agent agent = Agent( model="us.amazon.nova-lite-v1:0", system_prompt="You are a helpful assistant. Respond briefly.", ) app = BedrockAgentCoreApp() @app.entrypoint def invoke(payl