matangover/mypy-vscode

mypy: Invalid python executable '...': Permission denied

mRcSchwering opened this issue · 3 comments

Since today I am getting an error from mypy extension when I start VSCode.
OUTPUT is shown for one project below with:

  • ~/magic-soup is the project folder
  • ~/anaconda3/envs/magicsoup_dev is the anaconda environment location
  • which mypy is ~/anaconda3/envs/magicsoup_dev/bin/mypy

I also tried it with other projects that use other conda environments.
I always get this mypy: Invalid python executable '...': Permission denied.

Mypy extension activated, version 0.2.3
Registering listener for interpreter changed event
Listener registered
[1] Check folder: /home/marc/magic-soup
Activation complete
[1] Received python path from Python extension: /home/marc/anaconda3/envs/magicsoup_dev
[1] Running dmypy in folder /home/marc/magic-soup
/home/marc/anaconda3/envs/magicsoup_dev/bin/dmypy --status-file /home/marc/.config/Code/User/workspaceStorage/1c387f10f4c98a2f971eba89898e3b60/matangover.mypy/dmypy-f51a0575549435360aae2b6e12dce0546fa0defc-24923.json run --log-file /home/marc/.config/Code/User/workspaceStorage/1c387f10f4c98a2f971eba89898e3b60/matangover.mypy/dmypy-f51a0575549435360aae2b6e12dce0546fa0defc.log -- . --show-column-numbers --no-error-summary --no-pretty --no-color-output --python-executable /home/marc/anaconda3/envs/magicsoup_dev
[1] stdout:
Daemon started

[1] stderr:
mypy: Invalid python executable '/home/marc/anaconda3/envs/magicsoup_dev': Permission denied

[1] Error running mypy in /home/marc/magic-soup: mypy failed with error: "mypy: Invalid python executable '/home/marc/anaconda3/envs/magicsoup_dev': Permission denied". See Output panel for details.

I am on Ubuntu 22.04 and I start VSCode from a bash with code ..

Could you please try this version that will be released soon?

works

Thanks @mRcSchwering this is now released to all.