Comments (2)
Do you get an error, or does it end up installing into the default environment?
from ansible-conda.
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)
- Contribute upstream to ansible-modules-extras HOT 16
- broken conda 4.3.11
- Error with conda.py HOT 3
- Change reported when no update - `conda` ignores trailing ".0"s
- Do not reinstall package by default
- Feature request: determine order of channels
- RFE: Be able to specify multiple packages to install
- creating conda environment from a specification file HOT 3
- conda hanging HOT 6
- conda hanging when installing a package HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-conda.