# An error occurred when creating the image.

**URL:** <https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806>\
**Category:** AWX Project\
**Created:** [March 24, 2023, 12:04pm UTC](https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806 "2023-03-24T12:04:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user43](https://avatars.discourse-cdn.com/v4/letter/u/8dc957/32.png) [@user43](https://forum.ansible.com/u/user43)\
**Post date:** [March 24, 2023, 12:04pm UTC](https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806/1 "2023-03-24T12:04:08Z")

</div>

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](https://forum.ansible.com/uploads/short-url/6DgugR1KGBiIQy5hitgsd0ysf1N.txt) (16.4 KB)

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [March 31, 2023, 5:10pm UTC](https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806/2 "2023-03-31T17:10:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![user43](https://avatars.discourse-cdn.com/v4/letter/u/8dc957/32.png) [@user43](https://forum.ansible.com/u/user43)\
**Post date:** [April 4, 2023, 12:06pm UTC](https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806/3 "2023-04-04T12:06:17Z")

</div>

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

execution-environment.yml

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [April 7, 2023, 5:27pm UTC](https://forum.ansible.com/t/an-error-occurred-when-creating-the-image/37806/4 "2023-04-07T17:27:12Z")

</div>

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](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](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
