python / python/mypy

dmypy crash

Open
#18,755 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

crash pending topic-daemon
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

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 https://github.com/python/mypy/issues/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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in mypy/dmypy_server.py at find_reachable_changed_modules(), following the traceback through fine_grained_increment_follow_imports(), cmd_run(), and check(). Compare the sqlite3.dbapi2 KeyError with issue #18751, then reproduce dmypy run if possible and verify that the daemon no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.