ImportError: No module named ansible.constants

622 views
Skip to first unread message

John Wick

unread,
Mar 29, 2018, 6:18:02 PM3/29/18
to Ansible Project
Un-tar ansible from http://releases.ansible.com/ansible/ 

when typeing ansible -version from terminal got the below error 


line 40, in <module>

    import ansible.constants as C

ImportError: No module named ansible.constants

Pshem Kowalczyk

unread,
Mar 29, 2018, 6:28:47 PM3/29/18
to ansible...@googlegroups.com
If you're not using pip or other package manger you have to setup your paths:


source ./hacking/env-setup
kind regards
Pshem

--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bbd9fd00-b623-48f2-a81d-886ae5be344e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

John Wick

unread,
Mar 29, 2018, 7:11:28 PM3/29/18
to Ansible Project


After source ./hacking/env-setup getting below error


line 40, in <module>

    from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError

ImportError: No module named ansible.errors

Reply all
Reply to author
Forward
0 new messages