absa-subatomic-legacy / local-hadron-collider

Resources for getting a local Subatomic development environment up and running
Apache License 2.0
0 stars 1 forks source link

Plugin import does not work for python 3 #31

Open kbristow opened 5 years ago

kbristow commented 5 years ago

It appears as though the latest version of Ansible uses Python 3 or perhaps my system is just configured to use Python 3 with Ansible. When running the command

ansible-playbook -i inventory/hosts roles/openshift-applier/playbooks/openshift-cluster-seed.yml

I get an error saying that no module urlparse can be found. According to https://github.com/FriendCode/gittle/issues/49 the urlparse module has been renamed to urllib.parse. Changing roles/openshift-applier/roles/openshift-applier/filter_plugins/applier-filters.py to from urllib.parse import urlparse avoids the issue.

donovanmuller commented 5 years ago

Might be time to update OpenShift Applier. Believe this has been fixed already.