From 31914f998f9c46ed877f2d8223d8e15483dfc180 Mon Sep 17 00:00:00 2001 From: Brian Love Date: Wed, 13 May 2026 14:14:26 -0700 Subject: [PATCH] fix(deploy): drop examples/chat/python/src/__init__.py to keep namespace packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shared cockpit-dev LangGraph Cloud deployment stages every Python capability under its own `deps//` directory. Each dep ships its own `src/` subdir. When Python's import resolver encounters multiple `src/` directories on the path, the first one with a regular package marker (`__init__.py`) "claims" the namespace; subsequent `src/` directories become invisible. `cockpit/langgraph/streaming/python/src/` has no `__init__.py` — its `src` is a namespace package. After Phase 1 of the canonical-demo deployment added `examples/chat/python` to the shared bundle, that dep's `src/__init__.py` (empty) claimed the `src` namespace, and imports like `from src.dashboard_graph import graph` in `chat_graphs.py` started resolving against the wrong `src/` and failing with ModuleNotFoundError. The `__init__.py` was empty and no code imports `src` explicitly, so deleting it is safe. The streaming graph's `c-generative-ui` and sibling graphs load again; the new `chat` graph from this branch is unaffected (its own imports are all from `.foo` / module-relative). Fixes the DEPLOY_FAILED revision 30b289c4 on cockpit-dev. Co-Authored-By: Claude Opus 4.7 (1M context) --- examples/chat/python/src/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/chat/python/src/__init__.py diff --git a/examples/chat/python/src/__init__.py b/examples/chat/python/src/__init__.py deleted file mode 100644 index e69de29b..00000000