# AWX 3.0.1 virtual env bugs?

**URL:** <https://forum.ansible.com/t/awx-3-0-1-virtual-env-bugs/29710>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 19, 2019, 6:47pm UTC](https://forum.ansible.com/t/awx-3-0-1-virtual-env-bugs/29710 "2019-02-19T18:47:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkhan](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Darkhan](https://forum.ansible.com/u/Darkhan)\
**Post date:** [February 19, 2019, 6:47pm UTC](https://forum.ansible.com/t/awx-3-0-1-virtual-env-bugs/29710/1 "2019-02-19T18:47:26Z")

</div>

\*\*@\*\*Matthew Jones, some feedback would be appreciated on this.

I think the virtual environments in 3.0.1 introduced some big bugs.

I need to run some tasks on the awx\_celery container. I use host:127.0.0.1 and connection:local. This works for some other tasks I have.  
Now, when using the shell module or script module and use any kind of path I get the error “No such file or directory”. The file is there and is accessible to the awx user.  
If I run ansible-playbook my\_play.yml inside the awx\_celery container it works.

Also, for some reasons that will take to long to explain, I need to import my inventory in awx with awx\_manage.  
I wrote a play that also looks inside the awx\_celery container filesystem for a hosts file. The file is there, accessible to the awx user.  
I get this python error:

Traceback (most recent call last): File “/var/lib/awx/venv/awx/bin/awx-manage”, line 4, in import re File “/usr/lib64/python3.6/re.py”, line 142, in class RegexFlag(enum.IntFlag): AttributeError: module ‘enum’ has no attribute ‘IntFlag’

Again, if I run ansible\_playbook in awx\_celery it’s working great. Looks like some library version mix up. Ansible should use python 2.7 yet awx is using 3.6. Seems like somewhere the libs get confused or something.

---

<div class="post-metadata">

**Author:** ![rpetrell](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rpetrell](https://forum.ansible.com/u/rpetrell)\
**Post date:** [February 19, 2019, 10:13pm UTC](https://forum.ansible.com/t/awx-3-0-1-virtual-env-bugs/29710/2 "2019-02-19T22:13:41Z")

</div>

Adrian,

Could you file a bug (including details of how you encountered this error, the more detail the better) at [https://github.com/ansible/awx/issues/new?template=bug\_report.md](https://github.com/ansible/awx/issues/new?template=bug_report.md)
