# Ansible's paths crossed? or need to install python 3 in right folder?

**URL:** <https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842>\
**Category:** Ansible Project\
**Created:** [March 24, 2021, 4:51am UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842 "2021-03-24T04:51:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristina\_Bressler](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@Kristina\_Bressler](https://forum.ansible.com/u/Kristina_Bressler)\
**Post date:** [March 24, 2021, 4:51am UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842/1 "2021-03-24T04:51:15Z")

</div>

Was trying to fix a problem in my project with Vagrant. I got this error:

`System info:  
Ansible 2.7.1; Vagrant 2.2.14; Darwin  
Trellis 1.0.3: April 30th, 2019

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 24, 2021, 7:22pm UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842/2 "2021-03-24T19:22:14Z")

</div>

I suspect you are not suing teh ansible supplied 'setup.py', try  
executing with -vvvv and look for 'Using module file ...' in the  
output.  
If what im' guessing is correct you have a 'library' directory  
adjacent to play that is proving the 'right names' but incorrect code.

---

<div class="post-metadata">

**Author:** ![Kristina\_Bressler](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@Kristina\_Bressler](https://forum.ansible.com/u/Kristina_Bressler)\
**Post date:** [March 29, 2021, 4:41pm UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842/3 "2021-03-29T16:41:44Z")

</div>

Hi,  
I’m not sure what you mean.  
So what I can gather from your message is what I did:

1. type in ansible -vvvv
2. I don’t see anything like “Using module file…”
3. What I’m seeing are Module\_Path: prepend colon-separated path(s) to module library  
(default=[‘/Users/kiki/.ansible/plugins/modules’,  
‘/usr/share/ansible/plugins/modules’])
4. I also see at the end  
Some modules do not make sense in Ad-Hoc (include, meta, etc)  
ERROR! Missing target hosts

Do I copy over the python3.9 folder over to /usr/lib from /usr/local/lib?

-Kristina

---

<div class="post-metadata">

**Author:** ![Kristina\_Bressler](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@Kristina\_Bressler](https://forum.ansible.com/u/Kristina_Bressler)\
**Post date:** [March 29, 2021, 4:58pm UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842/4 "2021-03-29T16:58:03Z")

</div>

Hi,  
Additionally, everything was fine when I start up a project with “vagrant up” but when I checked with “vagrant provision”, I got this error mentioned in my first email. I was just wondering if “vagrant provision” does play a role in getting this error?

-Kristina

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 30, 2021, 4:45pm UTC](https://forum.ansible.com/t/ansibles-paths-crossed-or-need-to-install-python-3-in-right-folder/34842/5 "2021-03-30T16:45:30Z")

</div>

Something is injecting a 'setup.py' into the modules path that is not  
the same setup.py as ansible uses for fact gathering. I would start  
with new simple install and add layers until you find what causes it.
