vmware / vmware/photon-docker-image

Ansible that installs with tdnf gives error message (does not work)

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. tdnf install ansible -y
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.