Closed samueljohn closed 6 years ago
Thanks for reporting @samueljohn -- I'll try to put together a fix for this that maintains backwards compatibility. Thanks also for posting the workaround! Always nice to not have to start from zero!
Hey @samueljohn -- I've added a fix for this on master. I'll cut a new release tonight for pypi and conda-forge. Thanks again for raising the issue!
Conda seems to have changed how environments are de/activated.
And additionally it is no longer possible to
import conda.config
(they changed to relative imports). Not sure how/if to fix the latter. But the way they have changed de/activate, opens perhaps a simple way for xonsh to wrap conda. I just hacked it in my own.xonshrc
like so (but unfortunately I understand too little of xonda to contribute a proper pull request). Therefore, I hope you get the idea and can implement it with greater elegance than my hack (below).The command:
full/path/to/anaconda/bin/conda shell.posix activate my_environment
outputs posix compatible definitions. Same fordeactivate
andreactivate
. The remaining commands are simply forwarded.Conda no longer suggest to put the full path into the env since 4.4.something.