Skip to content

dmypy crash #18755

Open
Open

Description

@johnfn

Crash Report

dmypy run

Traceback

(env) grantmathews@grants-mbp gem % dmypy run
Daemon crashed!
Traceback (most recent call last):
  File "mypy/dmypy_server.py", line 237, in serve
  File "mypy/dmypy_server.py", line 286, in run_command
  File "mypy/dmypy_server.py", line 354, in cmd_run
  File "mypy/dmypy_server.py", line 433, in check
  File "mypy/dmypy_server.py", line 650, in fine_grained_increment_follow_imports
  File "mypy/dmypy_server.py", line 762, in find_reachable_changed_modules
KeyError: 'sqlite3.dbapi2'

To Reproduce

Sorry, can't provide better repro steps

Your Environment

see #18751

  • Mypy version used:
  • Mypy command-line flags:
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used:
  • Operating system and version:

Activity

  1. emmatyping commented on Aug 5, 2025

    @emmatyping
    Member

    Is there any additional information you can provide, like if any files import sqlite3? Without any actionable reproducer I would say we should close this.

  2. njgrisafi commented on Nov 20, 2025

    @njgrisafi
    Contributor

    Running into this issue post 1.18.2 upgrade.

    The first run passes but after 1-2 recheck it fails.

    It seems to be erroring on files we exclude in the mypy.ini

  3. JelleZijlstra commented on Nov 20, 2025

    @JelleZijlstra
    Member

    @njgrisafi what stack trace or other information are you seeing? Are you able to come up with a way to reproduce the failure?

  4. njgrisafi commented on Nov 20, 2025

    @njgrisafi
    Contributor

    @JelleZijlstra I've opened a new issue with simple reproduction of the crash #20279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions