# "ERROR! Expecting requirements file to be a dict with the key 'collections' that contains a list of collections to install"

**URL:** <https://forum.ansible.com/t/error-expecting-requirements-file-to-be-a-dict-with-the-key-collections-that-contains-a-list-of-collections-to-install/36621>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng, kubernetes\
**Created:** [May 12, 2022, 5:29pm UTC](https://forum.ansible.com/t/error-expecting-requirements-file-to-be-a-dict-with-the-key-collections-that-contains-a-list-of-collections-to-install/36621 "2022-05-12T17:29:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagruti\_Belani](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jagruti\_Belani](https://forum.ansible.com/u/Jagruti_Belani)\
**Post date:** [May 12, 2022, 5:29pm UTC](https://forum.ansible.com/t/error-expecting-requirements-file-to-be-a-dict-with-the-key-collections-that-contains-a-list-of-collections-to-install/36621/1 "2022-05-12T17:29:57Z")

</div>

Getting this error when I try to sync the git repository in latest AWX version.  
AWX Operator Version: 0.21.0  
Kubernetes : v1.20.0

AWX. version: 21.0.0

TASK [fetch galaxy collections from collections/requirements.(yml/yaml)] \*\*\*\*\*\*\*10:10:37

29  
**[WARNING]: Unable to find**

30  
**‘/var/lib/awx/projects/ collections’ in expected**

31  
**paths (use -vvvvv to see paths)**

32  
failed: [localhost] (item=/var/lib/awx/projects/ /requirements.yml) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “cmd”: [“ansible-galaxy”, “collection”, “install”, “-r”, “/var/lib/awx/projects//requirements.yml”, “–collections-path”, “/var/lib/awx/projects/./stage/requirements\_collections”], “delta”: “0:00:00.622536”, “end”: “2022-05-12 17:10:38.083129”, “item”: “/var/lib/awx/projects//requirements.yml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-05-12 17:10:37.460593”, “stderr”: “ERROR! Expecting requirements file to be a dict with the key ‘collections’ that contains a list of collections to install”, “stderr\_lines”: [“ERROR! Expecting requirements file to be a dict with the key ‘collections’ that contains a list of collections to install”], “stdout”: “”, “stdout\_lines”: }

33

Please suggest the solution.  
Is there anything I need to install on k8s cluster or AWX containers or on git repository.

Thanks,  
Jagruti Belani

---

<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:** [May 18, 2022, 8:22pm UTC](https://forum.ansible.com/t/error-expecting-requirements-file-to-be-a-dict-with-the-key-collections-that-contains-a-list-of-collections-to-install/36621/2 "2022-05-18T20:22:01Z")

</div>

Hi Jagruiti,

Sounds like the /requirements.yml file is not properly formatted. e.g. [https://docs.ansible.com/ansible/latest/user\_guide/collections\_using.html#install-multiple-collections-with-a-requirements-file](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#install-multiple-collections-with-a-requirements-file)

If you need help formatting, you can copy and paste that file contents here

Seth
