question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vim-conda is not compatible with the latest conda env activation mechanism

See original GitHub issue

Starting from Conda 4.4, the recommended way of activating conda env has been changed.

Now when I execute CondaChangeEnv command with the latest setup (setting . /opt/conda/etc/profile.d/conda.sh in .bashrc). The vim command complains as follows:

~/.conda/envs/vim_test/lib/python3.6/subprocess.py in check_output(timeout, *popenargs, **kwargs)
    334 
    335     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
--> 336                **kwargs).stdout
    337 
    338 

~/.conda/envs/vim_test/lib/python3.6/subprocess.py in run(input, timeout, check, *popenargs, **kwargs)
    416         if check and retcode:
    417             raise CalledProcessError(retcode, process.args,
--> 418                                      output=stdout, stderr=stderr)
    419     return CompletedProcess(process.args, retcode, stdout, stderr)
    420 

CalledProcessError: Command 'conda info --json' returned non-zero exit status 127.

Changing back to the old export PATH=... solves the above issue. But would it be possible to be compatible with latest conda? Thank you!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cjrhcommented, Sep 18, 2018

@Nikasa1889 If you submit a PR that fixes this problem, I will merge it and make you a contributor to this repo.

1reaction
cjrhcommented, Jun 16, 2018

If you submit a pull request to fix this I will likely merge it. I don’t use Conda anymore, so we should also check with: @jfishe @hstarmans @ryanfreckleton

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · cjrh/vim-conda - GitHub
Change conda environments in the Vim editor (with Jedi-vim support) - Issues ... vim-conda is not compatible with the latest conda env activation...
Read more >
Visual Studio Code terminal doesn't activate Conda environment
First, open the Anaconda prompt (How to access Anaconda command prompt in Windows 10 (64-bit)), and type: conda activate tom. To activate your...
Read more >
How to Get Ready for the Release of conda 4.4 - Anaconda
This will make the conda command itself available to all users, but conda's base (root) environment will not be activated by default. Users...
Read more >
Managing Scientific Python environments using Conda ...
If you screw up a Conda environment by installing the wrong software, ... And one more thing: If you meet incompatible Python packages, ......
Read more >
vim + conda environment : r/vim - Reddit
My usual vim plugins for python (for instance, python-mode) fail when using conda environments. I think this is because vim does not detect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found