-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exec path is set incorrectly #52
Comments
@orausch can you tell me a bit more about your system? OS, Emacs version, etc? |
Sure; my OS is debian testing, my emacs version is 26.1. Conda is installed in a non-standard location: |
Thank you! I'm unfortunately not likely to get back to this very soon,
but I'm hoping to have a look this weekend.
…On Wed, Apr 1, 2020 at 13:49, Oliver Rausch ***@***.***> wrote:
Sure; my OS is debian testing, my emacs version is 26.1. Conda is
installed in a non-standard location: ~/.local/opt/miniconda3, and my
conda version is 4.8.2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, I faced the same problem which seems to be due to the shell activation of conda which is supposed to set some variables. On my side, I replaced (defun conda--get-path-prefix (env-dir)
"Get a platform-specific path string to utilize the conda env in ENV-DIR.
It's platform specific in that it uses the platform's native path separator."
(s-trim
(with-output-to-string
(with-current-buffer standard-output
(process-file shell-file-name nil '(t nil) nil shell-command-switch
(format "%s/bin/conda ..activate \"%s\" %s"
conda-anaconda-home
(if (eq system-type 'windows-nt)
"cmd.exe"
"bash")
env-dir)))))) so it go take the full path of conda based on |
@seblemaguer Yes, that seems like a reasonable solution IMO. |
I'm having an issue with the
exec-path
.https://github.com/necaris/conda.el/blob/master/conda.el#L184
This function seems to return
""
on my system. This results innil
being added to the exec path, and this breaks subsequentconda-env-deactivate
calls.After some debugging, it seems like it fails because the command
conda
isn't found. I can resolve the issue locally by fully specifying the path of the conda command (i.e. i replace the substringconda
with the path of the conda executable)Any idea why this is happening?
The text was updated successfully, but these errors were encountered: