leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
194 stars 31 forks source link

failed on python 2.7 virtualenv #18

Open hoaivan opened 6 years ago

hoaivan commented 6 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

Error in Event Log of Pycharm after click on Test button in Settings > Mypy

10:03 AM    Mypy Plugin: Failure: executable "/usr/local/bin/python3.7 -m mypy" not found
10:03 AM    Mypy Plugin: Failure: executable "mypy" not found

Steps to reproduce:

  1. Setup project's virtualenv using python 2.7. My project requires it
  2. Set Path to mypy executable as: mypy or /usr/local/bin/python3.7 -m mypy
  3. Click Test button
  4. Found error in Event Log

According to Mypy's document, it needs python 3 to run but able to verify both python 2.7 and 3 source code.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days.