Unable to configure mypy binary on Linux
See original GitHub issueStep 1: Are you in the right place?
- I have verified there are no duplicate active or recent bugs, questions, or requests
- I have verified that I am using the latest version of the plugin.
Step 2: Describe your environment
- Plugin version: 0.10.2
- PyCharm/IDEA version: 2018.2.4 (CE)
- Mypy version: 0.641
Step 3: Describe the problem:
Steps to reproduce:
- I am using Ubuntu/Debian based distro
- I have both python2 and python3 installed
- Installed python3-pip
- installed mypy using
pip3 install mypy
- Properly installed in
/usr/local/bin/mypy
- above path is in
$PATH
- mypy runs when started from shell
- Attempt to configure your plugin with either
mypy
or/usr/local/bin/mypy
as mypy binary does not work (test fails) withMypy Plugin: Failure: executable "mypy" not found
.
This looks similar to #12
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (1 by maintainers)
Top Results From Across the Web
Developers - Unable to configure mypy binary on Linux -
[x] I have verified that I am using the latest version of the plugin. Step 2: Describe your environment. Plugin version: 0.10.2; PyCharm/IDEA...
Read more >Getting started - Mypyc - Read the Docs
Install mypy like this (you need Python 3.5 or later): ... Run mypyc to compile the program to a binary C extension: $...
Read more >Mypy Documentation - Read the Docs
See The mypy command line and The mypy configuration file for a complete ... Mypy complains if it can't find a stub (or...
Read more >Working with the AWS CDK in Python
It is common for Linux distros to use the executable name python3 for Python ... Failing that, you can adjust the command used...
Read more >pydantic - PyPI
Data validation and settings management using python type hints. ... Fix bug when mypy plugin fails on construct method call for BaseSettings derived ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I ran into a similar issue, it was because it was using the python binary in my venv to execute the global mypy installed with pip3. I had to install mypy in my venv and then I had to provide the path to that mypy in the “Path to Mypy executable” setting.
This managed to fix the issue for me. I belive my pipenv enviroment appears twice in PyCharm. When I select the second one (see screenshot), it even automatically detected the package.