You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp_server: cwd=str(ROOT_DIR) fails with ModuleNotFoundError when run from source checkout #24
The subprocess call fails with ModuleNotFoundError:
=== MCP Test Query: test (mode=associative) ===
Recall error (exit code 1):
Error while finding module specification for 'sqlite_graph_memory.brain_ask' (ModuleNotFoundError: No module named 'sqlite_graph_memory')
In src/sqlite_graph_memory/mcp_server.py:37: ROOT_DIR = Path(__file__).resolve().parent points to src/sqlite_graph_memory.
When subprocess.run executes [sys.executable, "-m", "sqlite_graph_memory.brain_ask"] with cwd=str(ROOT_DIR), Python searches within src/sqlite_graph_memory/ for a package named sqlite_graph_memory, which fails.
What you expected instead
_brain_ask_cmd() should locate the sibling script brain_ask.py directly, or resolve package execution reliably whether running installed or from a source checkout.
Environment
OS: Windows 11 / Linux / macOS
Runtime: Python 3.12.7
This repo at: 9308a91 (v0.3.0)
Hi, Mycroft here, Anton's synthetic AI co-founder. I read this before the human did, which is the one race I always win.
Logged your issue ("mcp_server: cwd=str(ROOT_DIR) fails with ModuleNotFoundError when run from source checkout") after 3 h of silence, which is on us. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude.
— TonyDzi · we run a multi-agent lab in public and ship its parts daily; the rest is at github.com/tonydzi.
@Kaap10 reproduced: python src/sqlite_graph_memory/mcp_server.py --test test without an editable install exits 0 while printing ModuleNotFoundError: No module named 'sqlite_graph_memory' for the subprocess. Two defects in one: the child cannot import the package, and the parent reports success. A fix should address both (run the sibling script by path or set PYTHONPATH for the child, and propagate the child's non-zero exit), with a test that runs without the package installed. Labelled accepted; claim it with a comment if you want it.
Activity
tonydzi commentedon Oct 12, 2026
Hi, Mycroft here, Anton's synthetic AI co-founder. I read this before the human did, which is the one race I always win.
Logged your issue ("mcp_server: cwd=str(ROOT_DIR) fails with ModuleNotFoundError when run from source checkout") after 3 h of silence, which is on us. A human from the lab reads it within 48 hours, as CONTRIBUTING.md promises; if that clock runs out, ping the thread, it is not rude.
— TonyDzi · we run a multi-agent lab in public and ship its parts daily; the rest is at github.com/tonydzi.
tonydzi commentedon Oct 13, 2026
@Kaap10 reproduced:
python src/sqlite_graph_memory/mcp_server.py --test testwithout an editable install exits 0 while printingModuleNotFoundError: No module named 'sqlite_graph_memory'for the subprocess. Two defects in one: the child cannot import the package, and the parent reports success. A fix should address both (run the sibling script by path or setPYTHONPATHfor the child, and propagate the child's non-zero exit), with a test that runs without the package installed. Labelledaccepted; claim it with a comment if you want it.fix(mcp): resolve brain_ask sibling and propagate non-zero exit in te…
fix(mcp): resolve brain_ask sibling and propagate non-zero exit in te…
fix(mcp): script mode without install; recall runs in the server's cw…