Giter Site home page Giter Site logo

Comments (2)

jiffyclub avatar jiffyclub commented on August 24, 2024

Do you get an error, or does it end up installing into the default environment?

from ansible-conda.

ericpardee avatar ericpardee commented on August 24, 2024

I feel the conda ansible module install should work like the conda create command and create the environment if it does not exist.

  • name: Create virtual environment rtp and install biopython
    conda: name=biopython state=latest extra_args="-n rtp" executable="{{ app_home }}/rtp/anaconda3/bin/conda"

Instead, conda ansible module errors:
TASK [rtp-python : Create virtual environment rtp and install biopython] *************************
fatal: [eric-rtp-python.preprod.com]: FAILED! => {"changed": false, "module_stderr": "Shared connection to eric-rtp-python.preprod.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 373, in \r\n _main()\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 369, in _main\r\n conda, name, version, state, module.check_mode, command_runner, module.fail_json, module.exit_json)\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 94, in run_package_operation\r\n correct_version_installed = check_package_installed(command_runner, conda, name, version)\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 126, in check_package_installed\r\n command_runner, name, version, [conda, 'install', '--json', '--dry-run', get_install_target(name, version)])\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 239, in run_conda_package_command\r\n return command_runner(command)\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 366, in command_runner\r\n return run_conda_command(module, command)\r\n File "/tmp/ansible_XRIZTY/ansible_module_conda.py", line 333, in run_conda_command\r\n raise CondaCommandJsonDescribedError(command, output, stderr)\r\n__main.CondaCommandJsonDescribedError: Error running command: ['/home/app/rtp/anaconda3/bin/conda', 'install', '--name', 'rtp', '--json', '--dry-run', 'biopython']. stdout: {"exception_name": "EnvironmentLocationNotFound", "caused_by": "None", "exception_type": "<class 'conda.exceptions.EnvironmentLocationNotFound'>", "location": "/home/app/rtp/anaconda3/envs/rtp", "error": "EnvironmentLocationNotFound: Not a conda environment: /home/app/rtp/anaconda3/envs/rtp", "message": "Not a conda environment: /home/app/rtp/anaconda3/envs/rtp"}.\r\n", "msg": "MODULE FAILURE", "rc": 1}

from ansible-conda.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.