title: ModuleNotFoundError: No module named 'ruamel'
body: <p>I'm using a Kubernetes inventory builder script found here: <a href="https://github.com/kubernetes-sigs/kubespray/blob/master/contrib/inventory_builder/inventory.py" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kubespray/blob/master/contrib/inventory_builder/inventory.py</a></p>
  
  <p>On <code>line 36</code>, the ruamel YML library is imported using the code <code>from ruamel.yaml import YAML</code>. This library can be found here: <a href="https://pypi.org/project/ruamel.yaml/" rel="nofollow noreferrer">https://pypi.org/project/ruamel.yaml/</a></p>
  
  <p>On my OSX device (<code>Mojave 10.14.3</code>), if I run <code>pip list</code>, I can clearly see the most up to date version of <code>ruamel.yaml</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/iuu1g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iuu1g.png" alt="pip list"></a></p>
  
  <p>If I run <code>pip show ruamel.yaml</code>, I get the following output:</p>
  
  <p><a href="https://i.stack.imgur.com/WRdHY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WRdHY.png" alt="pip show ruamel.yaml"></a></p>
  
  <p>I'm running the script with this command: <code>CONFIG_FILE=inventory/mycluster/hosts.ini python3 contrib/inventory_builder/inventory.py 10.0.0.1 10.0.0.2 10.0.0.4 10.0.0.5</code></p>
  
  <p>Bizarrely, it returns the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "contrib/inventory_builder/inventory.py", line 36, in &lt;module&gt;
      from ruamel.yaml import YAML
  ModuleNotFoundError: No module named 'ruamel'
  </code></pre>
  
  <p>I have very little experience with Python, so don't understand how this could be failing. Have I installed the library incorrectly or something? From the documentation on the <code>ruamel.yml</code> project page, it looks like the script is calling the library as it should be.</p>
  
  <p>Thanks in advance</p>