How to fix TypeError : Cant compile non template nodes While running ansible-test

Hey,

I have used Ubuntu 18.04 LTS and installed ansible 2.9.27 and python 2.7.17. I am going to test ansible-collection with the ansible-test command. When I give “ansible-test unit” , I am getting the below error. Kindly help me to fix this error.

Thanks,
Selvi

Hi,

I have used Ubuntu 18.04 LTS and installed ansible 2.9.27 and python
2.7.17. I am going to test ansible-collection with the ansible-test
command. When I give "ansible-test unit" , I am getting the below
error. Kindly help me to fix this error.

I'm not sure where this error comes from (looks like a bug to me), but
you have to run `ansible-test unit` in a correct path structure. The
current working directory must be of the form
`.../ansible_collections/<namespace>/<collection>/`, where the
collection you are working on is `<namespace>.<collection>`.

[image: Error.png]

Please note that providing error messages only in screenshots is a very
bad idea.

Cheers,
Felix