vmware / vmware/photon-docker-image
Ansible that installs with tdnf gives error message (does not work)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 51
- Forks
- 20
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
Ansible package not working with base Photon image.
Using "sudo docker run -it photon:latest"
Recreation steps:
- tdnf install ansible -y
- ansible --version
Gives this error:
"Traceback (most recent call last):
File "/usr/bin/ansible", line 60, in
import ansible.constants as C
File "/usr/lib/python2.7/site-packages/ansible/constants.py", line 12, in <modul
from jinja2 import Template
ImportError: No module named jinja2"
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with sudo docker run -it photon:latest, then run tdnf install ansible -y and ansible --version to confirm the missing jinja2 import. Check the installed Ansible and Python dependencies in the Photon image; done means ansible --version runs without the ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, docker, python
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100