<p>I'm trying to install the ingress-nginx controller via helm. When I run the install command on the <a href="https://kubernetes.github.io/ingress-nginx/deploy/#environment-specific-instructions" rel="nofollow noreferrer">Kubernetes website</a>, I get the error &quot;module 'glib' has no attribute 'get_user_config_dir&quot;.</p>
<pre><code>helm upgrade --install ingress-nginx ingress-nginx --repo https://kubernetes.github.io/ingress-nginx --namespace ingress-nginx --create-namespace
</code></pre>
<p>Here is the traceback:</p>
<pre><code>Traceback (most recent call last):
  File &quot;/Library/Frameworks/Python.framework/Versions/3.8/bin/helm&quot;, line 42, in &lt;module&gt;
    main()
  File &quot;/Library/Frameworks/Python.framework/Versions/3.8/bin/helm&quot;, line 28, in main
    config_dirs = (glib.get_user_config_dir(),) + glib.get_system_config_dirs()
AttributeError: module 'glib' has no attribute 'get_user_config_dir'
</code></pre>
<p>I get a similar error when I just run helm on its own.</p>
<pre><code>$ helm
Traceback (most recent call last):
  File &quot;/Library/Frameworks/Python.framework/Versions/3.8/bin/helm&quot;, line 42, in &lt;module&gt;
    main()
  File &quot;/Library/Frameworks/Python.framework/Versions/3.8/bin/helm&quot;, line 28, in main
    config_dirs = (glib.get_user_config_dir(),) + glib.get_system_config_dirs()
AttributeError: module 'glib' has no attribute 'get_user_config_dir'
</code></pre>
<p>How can I set the attribute get_user_config_dir so that helm installs the ingress-nginx controller?</p>
<hr>
<p>Edit:</p>
<p>I'm updating this question to show the version of glib I am using.</p>
<pre><code>$ pip3 show glib
Name: glib
Version: 1.0.0
Summary: A python graphics library that piggy-backs off of pyqt5
Home-page: UNKNOWN
Author: its_me
Author-email: rycepie3909@gmail.com
License: MIT
Location: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
Requires: 
Required-by: 
</code></pre>

ktm5124
<p>I had exactly the same problem when running helm via ansible.</p>
<p>I checked the helm module I installed. It turned out I installed the wrong <a href="https://pypi.org/project/helm/" rel="nofollow noreferrer">helm</a> module:
<strong>Helm is a system monitor released under GNU GPLv3.</strong></p>
<p>Instead I had to install <a href="https://pypi.org/project/helm-python/" rel="nofollow noreferrer">helm-python</a>:</p>
<pre><code>pip install helm-python
</code></pre>
<p>Hope this helps</p>
<p>Regards!</p>
