sublime-text-conda icon indicating copy to clipboard operation
sublime-text-conda copied to clipboard

Can't find executable

Open fredrikpaues opened this issue 1 year ago • 1 comments

I installed the Conda package using Package Control with Sublime Text 4126 on my work machine, but can't get it to work.

Anaconda was installed by my system administrator for all users on my machine under C:\ProgramData\Anaconda3.

First, the Conda package wouldn't list my environments, but I fixed that by overwriting the default package setting "environment_directory" with "C:\\ProgramData\\Anaconda3\\envs" (under Preferences / Package Settings / Conda / Settings).

But I can't get it to build my files. When open Anaconda Prompt and run where python, I get C:\ProgramData\Anaconda3\python.exe, which I enter in the package settings as "C:\\ProgramData\\Anaconda3\\python.exe".

All in all, my custom package settings are

{
  "executable": "C:\\ProgramData\\Anaconda3\\python.exe",
  "environment_directory": "C:\\ProgramData\\Anaconda3\\envs",
}

When I try to build, I get the following error message:

[WinError 2] The system cannot find the file specified
[cmd: ['C:\\Users\\frpa8185\\Anaconda3\\python', '-u', 'C:\\Users\\frpa8185\\Dropbox\\tmp\\tmp.py']]
[dir: C:\Users\frpa8185\Dropbox\tmp]
[path: C:\Program Files\ImageMagick-7.0.8-Q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\Program Files\MATLAB\R2021b\runtime\win64;C:\Program Files\MATLAB\R2021b\bin;C:\Users\frpa8185\AppData\Local\Microsoft\WindowsApps;C:\Users\frpa8185\AppData\Local\GitHubDesktop\bin;C:\Users\frpa8185\AppData\Local\Programs\Git\cmd;C:\Users\frpa8185\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\bin]
[Finished]

fredrikpaues avatar Apr 26 '23 10:04 fredrikpaues

Hi Fredrik. Thanks for reporting this issue.

I am not able to replicate this issue. Is your build system set to Conda, and are you activating the environment via Conda: Activate Environment prior to running your build?

mandeep avatar May 02 '23 16:05 mandeep