question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to configure mypy binary on Linux

See original GitHub issue

Step 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:

  1. I am using Ubuntu/Debian based distro
  2. I have both python2 and python3 installed
  3. Installed python3-pip
  4. installed mypy using pip3 install mypy
  5. Properly installed in /usr/local/bin/mypy
  6. above path is in $PATH
  7. mypy runs when started from shell
  8. Attempt to configure your plugin with either mypy or /usr/local/bin/mypy as mypy binary does not work (test fails) with Mypy Plugin: Failure: executable "mypy" not found.

This looks similar to #12

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
hackalyzecommented, Dec 7, 2018

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.

2reactions
sitnarfcommented, Jun 19, 2020

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. image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found