ImportError: No module name jnpr.junos OSX
See original GitHub issueGetting this error, PyEz installed, and reinstalled. Ansible reinstalled. Any ideas?
Error from ansible-playbook:
TASK [Install Junos OS package] **********************************************************************************************************************************************************************************
fatal: [192.168.2.17]: FAILED! => {"changed": false, "failed": true, "msg": "ImportError: No module named jnpr.junos"}
$ ansible-galaxy list
- Juniper.junos, 1.4.2
$ python --version
Python 2.7.13
>>> import jnpr.junos
>>> jnpr.junos.__version__
'2.1.3'
>>>
$ ansible --version
ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No module named 'jnpr' | Automation
I am using Windows and trying to run this python code as mentioned below but unable to get past this error: from jnpr.junos...
Read more >ImportError: No module named jnpr.junos - Bountysource
I am getting the importError when i tried packaging the python application. Module which are causing issues is jnpr.junos.
Read more >junos-eznc required but does not appear to be installed
... but does not appear to be installed. It can be installed using `pip install junos-eznc`"} ... ImportError: No module named cryptography.hazmat.backends
Read more >Import Error: jnpr.junos - Python Forum
Thread Modes. Import Error: jnpr.junos ... I am trying use the library called jnpr.junos. ... ModuleNotFoundError: No module named 'jnpr'
Read more >Mac - Python - import error: "No module named site"
pip is installed against the Python 2.7 version you downloaded (the one you see in your Applications folder), unfortunately the default Python ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK - That appears to have solved it! I am waiting for the upgrade to compelte. Thanks so much for your time! I will report back and close this when the playbook has completed
You’ll need to set
ansible_python_interpreter
in your playbook or inventory.