Hi All,
I keep getting an “ImportError: No module named” when I try and run a playbook using a custom python module (that is trying to import a 3rd party python package).
Few things:
- importing the 3rd party package works from the python shell from all over my machine.
- PYTHONPATH seems to be correct, hence, importing the package works
- using the hacking test script also does NOT reproduce the error. So this works fine.
- I’ve tried ansible_python_interpreter=/usr/bin/python2.7
- Seem to have removed py3 just by using rm
- using ‘connection: local’ so the target host is “my host” also executing the playbook
I’m a new guy, so help me not leave any stone unturned :). Don’t assume anything please!
Thanks in advance.
-Jason