Skip to content
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

fixing condas strange exit code and json stdout outputs #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shaoran
Copy link

@shaoran shaoran commented May 18, 2017

The conda version I was using did not behave as it was exepcted by this
module.

conda list --json returns two different structures depending on whether
the package was initially installed by "pip".

I had the following problem: I wanted to make sure than some packages
are installed:

  • name: Installing packages
    conda: name=pip

The very first time that this was executed conda list --json returned a
json structure that was not expected. If you manually installed pip with
conda, then the have the regular structure.

I ran constantly into these kind of issues. I've been deploying conda on
several machines and not once they have failed.


Sometimes you want to conda install a bunch of packages at once
and for some of them you have a version restriction, like

  • name: installing conda packages
    conda:
    name: "{{ item }}"
    with_items:
    • pandas
    • pyqt=4.11.4
    • chardet

Sometimes you want to conda install a bunch of packages at once
and for some of them you have a version restriction, like

- name: installing conda packages
  conda:
    name: "{{ item }}"
  with_items:
    - pandas
    - pyqt=4.11.4
    - chardet

The version evaluation is not done yet
The conda version I was using did not behave as it was exepcted by this
module.

conda list --json returns two different structures depending on whether
the package was initially installed by "pip".

I had the following problem: I wanted to make sure than some packages
are installed:

- name: Installing packages
  conda: name=pip

The very first time that this was executed conda list --json returned a
json structure that was not expected. If you manually installed pip with
conda, then the have the regular structure.

I ran constantly into these kind of issues. I've been deploying conda on
several machines and not once they have failed.
@jiffyclub
Copy link
Member

Hi, thanks for this PR, sorry for taking so long to review. It looks like this had some conflicts with #14, could you resolve those and make sure this still works as expected?

@shaoran
Copy link
Author

shaoran commented Aug 30, 2017

At the moment I'm a little bit busy, I'll do that at the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants