Skip to content

1.7.0: Cannot find implementation or library stub for module named "scribe" #16466

Closed
@mtelka

Description

@mtelka

While updating mypy package for OpenIndiana from version 1.6.1 to version 1.7.0 I noticed two new test failures:

___________________ testIgnoreImportIfNoPython3StubAvailable ___________________
data: $(BUILD_DIR)/test-data/unit/pythoneval.test:1567:
Failed: Invalid output ($(BUILD_DIR)/test-data/unit/pythoneval.test, line 1567)
----------------------------- Captured stderr call -----------------------------
Expected:
  _testIgnoreImportIfNoPython3StubAvailable.py:4: error: Library stubs not installed for "docutils" (diff)
  _testIgnoreImportIfNoPython3StubAvailable.py:4: note: Hint: "python3 -m pip install types-docutils" (diff)
  _testIgnoreImportIfNoPython3StubAvailable.py:4: note: (or run "mypy --install-types" to install all missing stub packages) (diff)
  _testIgnoreImportIfNoPython3StubAvailable.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports (diff)
Actual:
  Traceback (most recent call last): (diff)
    File "/tmp/mypy-test-46a1te1g/tmp/_testIgnoreImportIfNoPython3StubAvailable.py", line 2, in <module> (diff)
      import scribe  # No Python 3 stubs available for scribe (diff)
  ModuleNotFoundError: No module named 'scribe' (diff)

Alignment of first line difference:
  E: _testIgnoreImportIfNoPython3StubAvailable.py:4: error: Library stubs not...
  A: Traceback (most recent call last):...
     ^
Update the test output using --update-data -n0 (you can additionally use the -k selector to update only specific tests)
__________________________ testNoPython3StubAvailable __________________________
data: $(BUILD_DIR)/test-data/unit/pythoneval.test:1580:
Failed: Invalid output ($(BUILD_DIR)/test-data/unit/pythoneval.test, line 1580)
----------------------------- Captured stderr call -----------------------------
Expected:
  _testNoPython3StubAvailable.py:1: error: Cannot find implementation or library stub for module named "scribe"
  _testNoPython3StubAvailable.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
  _testNoPython3StubAvailable.py:3: error: Library stubs not installed for "docutils" (diff)
  _testNoPython3StubAvailable.py:3: note: Hint: "python3 -m pip install types-docutils" (diff)
  _testNoPython3StubAvailable.py:3: note: (or run "mypy --install-types" to install all missing stub packages) (diff)
Actual:
  _testNoPython3StubAvailable.py:1: error: Cannot find implementation or library stub for module named "scribe"
  _testNoPython3StubAvailable.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Update the test output using --update-data -n0 (you can additionally use the -k selector to update only specific tests)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions