Skip to content

mypy nightly crashes with ModuleNotFoundError: No module named 'native_internal' #20006

@cmp0xff

Description

@cmp0xff

Crash Report

mypy nightly crashed upon starting, see this GitHub CI pipeline for an example. It is also reproducible on my local machine.

Traceback

Traceback (most recent call last):
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/bin/mypy", line 3, in <module>
    from mypy.__main__ import console_entry
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/__main__.py", line 9, in <module>
    from mypy.main import main, process_options
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/main.py", line 16, in <module>
    from mypy import build, defaults, state, util
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/build.py", line 41, in <module>
    import mypy.semanal_main
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/semanal_main.py", line 37, in <module>
    from mypy.checker import FineGrainedDeferredNode
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/checker.py", line 23, in <module>
    import mypy.checkexpr
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/checkexpr.py", line 16, in <module>
    from mypy import applytype, erasetype, join, message_registry, nodes, operators, types
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/applytype.py", line 6, in <module>
    import mypy.subtypes
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/subtypes.py", line 9, in <module>
    import mypy.constraints
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/constraints.py", line 10, in <module>
    import mypy.typeops
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/typeops.py", line 14, in <module>
    from mypy.checker_state import checker_state
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/checker_state.py", line 7, in <module>
    from mypy.checker_shared import TypeCheckerSharedApi
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/checker_shared.py", line 13, in <module>
    from mypy.errors import ErrorWatcher
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/errors.py", line 15, in <module>
    from mypy.nodes import Context
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/nodes.py", line 17, in <module>
    from mypy.cache import (
  File "/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/mypy/cache.py", line 7, in <module>
    from native_internal import (
ModuleNotFoundError: No module named 'native_internal'

To Reproduce

poetry run python -m pip install --upgrade --find-links https://github.com/mypyc/mypy_mypyc-wheels/releases/ mypy
poetry run mypy .

Your Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions