title: why my running section showing "AttributeError: 'numpy.ndarray' object has no attribute 'load'" even though I didn't write "load"?
body: <p>Code:</p>
  <pre><code>canvas = np.ones((800, 780, 3), dtype=&quot;uint8&quot;)
  canvas.fill(255)
  l_img = canvas
  
  
  text = 'love'
  
  font_path = &quot;CotrellCFExtraBold-ExtraBold.ttf&quot;
  font = ImageFont.truetype(font_path, 192)
  
  imgPil = Image.fromarray(l_img)
  ImageDraw.Draw(l_img).text((30, 30),  text, font = font, fill = (0, 0, 0))
  img = np.array(l_img)
  
  </code></pre>
  <p>Traceback:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\daphn\anaconda3\lib\site-packages\PIL\ImageDraw.py&quot;, line 465, in Draw
      return im.getdraw(mode)
  AttributeError: 'numpy.ndarray' object has no attribute 'getdraw'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:/Users/daphn/PycharmProjects/pythonProject/homework/05poster.b.py&quot;, line 153, in &lt;module&gt;
      ImageDraw.Draw(l_img).text((30, 30),  text, font = font, fill = (0, 0, 0))
    File &quot;C:\Users\daphn\anaconda3\lib\site-packages\PIL\ImageDraw.py&quot;, line 467, in Draw
      return ImageDraw(im, mode)
    File &quot;C:\Users\daphn\anaconda3\lib\site-packages\PIL\ImageDraw.py&quot;, line 59, in __init__
      im.load()
  **AttributeError: 'numpy.ndarray' object has no attribute 'load'**
  
  Process finished with exit code 1
  </code></pre>
  <p>Don't know why it shows 'AttributeError: 'numpy.ndarray' object has no attribute 'load''(solved now)
  But the words still didn't show up.</p>