matangover/mypy-vscode

Clean install of v0.3.1 fails to start with "thread-cert is not a valid Python package name" error

Closed this issue · 2 comments

Machine info:

  • MacBook Pro
  • Apple M3 Max
  • 14-inch November 2023
  • 64GB RAM
  • Python version at /usr/local/bin/python3: 3.12.2
  • mypy --version: mypy 1.10.1 (compiled: yes)

VSCode info:

Version: 1.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:46.768Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

Installing extension results in the following Output:

Mypy extension activated, version 0.3.1
Registering listener for interpreter changed event
Listener registered
[1] Check folder: /Users/natebank/src
Activation complete
[1] Received Python path from Python extension: /usr/local/bin/python3
[1] Running dmypy in folder /Users/natebank/src
/Library/Frameworks/Python.framework/Versions/3.12/bin/dmypy --status-file '/Users/natebank/Library/Application Support/Code/User/workspaceStorage/50e76e6323b99bc124e06110bfa4633a/matangover.mypy/dmypy-baf3706acce3f1363127e5268b75d268dbe72e9d-7791.json' run --log-file '/Users/natebank/Library/Application Support/Code/User/workspaceStorage/50e76e6323b99bc124e06110bfa4633a/matangover.mypy/dmypy-baf3706acce3f1363127e5268b75d268dbe72e9d.log' -- --python-executable /usr/local/bin/python3 . --show-error-end --no-error-summary --no-pretty --no-color-output
[1] stderr:
thread-cert is not a valid Python package name

[1] Error running mypy in /Users/natebank/src: mypy failed with error: "thread-cert is not a valid Python package name". See Output panel for details.

Thanks for the report. I can't reproduce this issue. Do you have a folder named thread-cert in your codebase? It seems to be tripping mypy up for some reason. What happens if you just run mypy . (in the terminal) in your code folder?

I can't reproduce this, please re-open if necessary 🙏