Skip to content

noisy network

Tag: no module named ‘urlparse’

Ansible & Python 3

While using Ansible 2.2 and Python 3.x, I ran into the following error:

ERROR! Unexpected Exception: No module named 'urlparse'

Workaround: 

1. Downgrade Python to 2.x

2. If there is no root level permission, use virtual env:

virtualenv --python=python2.7
Posted on April 10, 2017Categories Bash, Network, Python, TCLTags Ansible, no module named 'urlparse', pythonLeave a comment on Ansible & Python 3
Proudly powered by WordPress