Closed NightMachinery closed 6 years ago
I am not familiar with conda, but from the docs you posted it seems that the result of the conda activate
is the thing that needs to be sourced. So this might do the trick:
(source-shell (sh-str conda activate))
Unfortunately it doesn't work, it uses custom bash functions it seems ... It'd be good to add automatic bash-to-closh script conversion to the roadmap?
On Thu, Mar 29, 2018 at 6:03 PM, Jakub Dundalek notifications@github.com wrote:
I am not familiar with conda, but from the docs you posted it seems that the result of the conda activate is the thing that needs to be sourced. So this might do the trick:
(source-shell (sh-str conda activate))
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dundalek/closh/issues/69#issuecomment-377236349, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--nuG8qC37KcBC8pTtNemenIm8H9Nks5tjOLAgaJpZM4S_Vyi .
I see, I overlooked some details. Maybe try:
(source-shell "bash" "/Users/evar/anaconda/etc/profile.d/conda.sh")
(source-shell "conda activate")
@NightMachinary Were you able to run conda with those last commands?
No, it returns errors:
On Sat, Apr 14, 2018 at 3:55 PM, Jakub Dundalek notifications@github.com wrote:
@NightMachinary https://github.com/NightMachinary Were you able to run conda with those last commands?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dundalek/closh/issues/69#issuecomment-381322510, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--lz0krPnvJp6lkvsLW1mAV0g96TVks5todykgaJpZM4S_Vyi .
Could you provide the error output?
@dundalek Oh, I had included an image of the error but it was lost during the mail to github conversion it seems. Here you go:
@NightMachinary I just tried conda in a VM, and I think I got it now:
(source-shell ". ~/anaconda/etc/profile.d/conda.sh; conda activate")
Thanks for your patience.
Thanks! This seems to work properly.
On Sun, Apr 15, 2018 at 7:41 PM, Jakub Dundalek notifications@github.com wrote:
@NightMachinary https://github.com/NightMachinary I just tried conda in a VM, and I think I got it now:
(source-shell ". ~/anaconda/etc/profile.d/conda.sh; conda activate")
Thanks for your patience.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dundalek/closh/issues/69#issuecomment-381413708, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--kJkaOKNTpB0eOxAZe0pMYH3C2WXks5to2MjgaJpZM4S_Vyi .
Cool!
Conda uses a .sh script to start itself up, and running that script via
source-shell
does no good.