title: How to make a turtle's shape an image in Python?
body: <p>I want to make a small game with my own image for the turtle's shape. I've put both the program and the image in the same directory. Whenever I run the code it says:</p>
  
  <hr>
  
  <p>File "C:\Users\Nobody PC\Desktop\THE PROJECT.py", line 51, in 
      p.shape('beara')
    File "C:\Users\Nobody\AppData\Local\Programs\Python\Python36-32\lib\turtle.py", line 2777, in shape
      self.turtle._setshape(name)
    File "C:\Users\Nobody\AppData\Local\Programs\Python\Python36-32\lib\turtle.py", line 2493, in _setshape
      if self._type == "polygon" == screen._shapes[shapeIndex]._type:
  AttributeError: 'str' object has no attribute '_type' </p>
  
  <hr>
  
  <p>My code includes nothing about a string (I think):</p>
  
  <hr>
  
  <pre><code>import turtle as t
  bear =  "bear.png"
  p = t.Turtle()
  t.register_shape('beara',bear)
  t.bgcolor('black')
  p.shape('beara')
  </code></pre>
  
  <hr>
  
  <p>I made it:</p>
  
  <pre><code>t.register_shape('beara',"bear.png")
  </code></pre>
  
  <p>but still had the same error.</p>