ModuleNotFoundError when trying to execute Python using ansible

18 views
Skip to first unread message

magae

unread,
Nov 17, 2020, 8:53:39 PM11/17/20
to Ansible Project

Hi, everyone
I'm trying to execute Python Files on EC2 using ansible

I got an error message like this

'import influxdb\nModuleNotFoundError: No module named 'influxdb'

I installed 'influxdb' module on EC2
and it works well when I connected EC2 directly and execute Python directly.

But, it doesn't work when using ansible...

Help ! Thanks

Abhijeet Kasurde

unread,
Nov 17, 2020, 11:45:12 PM11/17/20
to ansible...@googlegroups.com
Can you please share `ansible --version` and influxdb installed location?

There might be a difference between Python used interactively and used by Ansible.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5d34875a-e73b-438f-a13e-fff2552fec10n%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde
Reply all
Reply to author
Forward
0 new messages