title: AttributeError: 'Animate' object has no attribute 'FuncAnimation' despite trying every suggestion
body: <p>I have been searching for hours about why this could be happening but to no avail.</p>
  
  <p>I have a class to define the animation process:</p>
  
  <pre><code>class Animate:
  
  def __init__(self, I, q, w):
      --variable setup---
      self.fig = plt.figure(figsize=(6,6))
      self.ax = p3.Axes3D(self.fig)
      self.verts_plot, = self.ax.plot([],[],[],'b')
                   . . .
  
  def anim_init(self):
      self.ax.axis([-3,3,-3,3])
      self.verts_plot.set_data([],[],[])
      return [self.z_trace_plot, self.y_trace_plot, self.verts_plot]
  
  def anim_func(self, frame, t_conv):
      step = t_conv
      sol = self.simulator.solve_step(frame*t_conv, step)
      self.verts_plot.set_data(self.vertices[:,0],self.vertices[:,1],self.vertices[:,2])
      return [self.z_trace_plot, self.y_trace_plot, self.verts_plot]
  
  
  def make_animation(self,t_1, t_conv):
      tvals = np.linspace(0, t_1, t_1*10 + 1)
      fig = plt.figure()
      anim = animation.FuncAnimation(fig, anim_func)
      plt.show()
      return anim
  </code></pre>
  
  <p>I then run these functions under the <strong>name</strong>=='<strong>main</strong>' check at the bottom with </p>
  
  <pre><code> animation = Animate(I, q_0, w_0)
   my_animation = animation.make_animation(10, 1)
  </code></pre>
  
  <p>I then get told:</p>
  
  <pre><code> File "animation.py", line 81, in &lt;module&gt;
     self.my_animation = animation.make_animation(10, 1)
   File "animation.py", line 62, in make_animation
     self.anim = animation.FuncAnimation(fig, anim_func)
  AttributeError: 'Animate' object has no attribute 'FuncAnimation'
  </code></pre>