# Running Ansible from RPM

**URL:** <https://forum.ansible.com/t/running-ansible-from-rpm/18848>\
**Category:** Ansible Project\
**Created:** [July 24, 2015, 7:42pm UTC](https://forum.ansible.com/t/running-ansible-from-rpm/18848 "2015-07-24T19:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_S](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Post date:** [July 24, 2015, 7:42pm UTC](https://forum.ansible.com/t/running-ansible-from-rpm/18848/1 "2015-07-24T19:42:55Z")

</div>

When I run Ansible from source by sourcing the env-setup file under the hacking folder, I’m able to run Ansible just fine. So now I want to run it via an RPM that i built for my RH5 hosts. When I run “ansible --version” I get the following …

# ansible --version

ansible 1.9.2  
configured module search path = None

So i went digging into the env-setup file and noticed the PYTHONPATH is pointed to ~/ansible/lib. The libraries from my RPMs are installed under /usr/lib/python2.6/site-packages. If I export PYTHONPATH pointing to that path it doesn’t appear to be working. What am I doing wrong?
