'no known parent package' in Python: how do I run the module?
Summary As of October 2026, an accepted GitHub Q&A answer and the official Python tutorial explain that direct script execution lacks the package context relative imports need; fix: launch the package with python -m from its parent directory. Do first: Identify the package containing the failing file.
Not for Python circular imports, see python-circular-import-cannot-import-name-partially-initialized-module
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread python-relative-import-no-known-parent-package-run-module and help me try it