An error occurred when creating the image.

Hi all.

I am working with Ansible for the first time.

And I apologize for the language, I use google translate, the English language is at a low level.

The following errors occurred when creating the image. Maybe I’m doing something wrong.
I need to connect to mikrotik. Perhaps there is already a ready-made image, unfortunately I did not find it, so I am trying to create my own.

(attachments)

LogError.txt (16.4 KB)

What command are you running that outputs that error? is this ansible-builder output?

either way it looks like your system (or whatever build context this is running in) needs to python3-devel

AWX Team

This error occurs while building the image.
Command:
ansible-builder build -v 3 -t test-ee:latest --container-runtime=docker

execution-environment.yml

The required libraries might not be in the ansible-runner:latest image that you are using as a base image.
There are a couple ways around it, one of which you can see in the awx-ee repo: https://github.com/ansible/awx-ee/blob/devel/execution-environment.yml
In here we have a dependencies clause referencing a bindeep.txt file. In there, on line 1, you can see we use python3.9-devel for compile time activities. https://github.com/ansible/awx-ee/blob/devel/_build/bindep.txt#L1
Try adding a bindeep.txt file and the required entries to see if this compile issue goes away.

  • The AWX Team