title: How to resolve ImportError: cannot import name 'makeMappingArray' from 'matplotlib.colors'
body: <p>I am just learning to code using the wordcloud and stylecloud libraries in python 3.9.0. I wrote the basic code for the stylecloud library but it gives an error that says:</p>
  <p><code>ImportError: cannot import name 'makeMappingArray' from 'matplotlib.colors'</code></p>
  <p>This is the code:</p>
  <pre><code>import wordcloud
  import matplotlib
  def cloud_design():
      stylecloud.gen_stylecloud(file_path=r&quot;C:\Users\Edwin Anil\OneDrive - AL RAYAN HOLDING CO\ALL PYTHON CODES\word cloud text file.txt&quot;,icon_name=&quot;&lt;i class='fas fa-guitar'&gt;&lt;/i&gt;&quot;)
  cloud_design()
  </code></pre>
  <p>The version of wordcloud that is being used is <code>wordcloud-1.8.1</code>.
  The version of matplotlib that is being used is <code>matplotlib-3.4.1</code>.</p>
  <p>this is the entire error message:</p>
  <pre><code>  File &quot;C:\Users\Edwin Anil\OneDrive - AL RAYAN HOLDING CO\ALL PYTHON CODES\word cloud.py&quot;, line 1, in &lt;module&gt;
      import stylecloud
    File &quot;C:\Users\Edwin Anil\AppData\Local\Programs\Python\Python39\lib\site-packages\stylecloud\__init__.py&quot;, line 1, in &lt;module&gt;
      from .stylecloud import gen_stylecloud
    File &quot;C:\Users\Edwin Anil\AppData\Local\Programs\Python\Python39\lib\site-packages\stylecloud\stylecloud.py&quot;, line 6, in &lt;module&gt;
      from matplotlib.colors import makeMappingArray, to_rgb
  ImportError: cannot import name 'makeMappingArray' from 'matplotlib.colors' (C:\Users\Edwin Anil\AppData\Local\Programs\Python\Python39\lib\site-packages\matplotlib\colors.py)```
  
  I did try various other syntax forms for import and tried uninstalling and reinstalling matplotlib too but I don't seem to figure it out. Some help is appreciated.
  </code></pre>