# AWX not using specified virtual environment

**URL:** <https://forum.ansible.com/t/awx-not-using-specified-virtual-environment/30407>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 23, 2019, 5:01pm UTC](https://forum.ansible.com/t/awx-not-using-specified-virtual-environment/30407 "2019-05-23T17:01:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim\_Spasaro](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@Kim\_Spasaro](https://forum.ansible.com/u/Kim_Spasaro)\
**Post date:** [May 23, 2019, 5:01pm UTC](https://forum.ansible.com/t/awx-not-using-specified-virtual-environment/30407/1 "2019-05-23T17:01:45Z")

</div>

**Context**

- AWX version 1.0.7

- I’m creating an inventory using a source script in a project

- I have a custom venv with the required packages for the source script

- Project is set to use this venv

- Organization is set to use this venv

- Default venv is set to this venv

**Problem**

- The inventory job fails, saying that a required package is not installed
- When I exec into the task and web containers, I see that the required package is indeed installed to the custom venv
- The inventory job used to work fine (I can see in the job history when it stopped working)

**Conclusion**

- AWX isn’t actually using the custom venv?

**Questions**

- Has anyone encountered this problem?
- If so, how do I solve it?
- If not, does anyone have any idea what might be wrong?

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [May 23, 2019, 5:20pm UTC](https://forum.ansible.com/t/awx-not-using-specified-virtual-environment/30407/2 "2019-05-23T17:20:40Z")

</div>

AWX did not run inventory updates in custom virtual environments in 1.0.7 (it would always use the default). It should work if you upgrade to 4.0.0, and you can select it in the UI for the inventory source edit page.

---

<div class="post-metadata">

**Author:** ![Kim\_Spasaro](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@Kim\_Spasaro](https://forum.ansible.com/u/Kim_Spasaro)\
**Post date:** [May 23, 2019, 5:39pm UTC](https://forum.ansible.com/t/awx-not-using-specified-virtual-environment/30407/3 "2019-05-23T17:39:48Z")

</div>

Awesome, thank you for the info.
