title: Cython: ValueError: '...'.Candle has the wrong size, try recompiling. Expected 16, got 24
body: <p>I have 3 cython files:</p>
  
  <p>File 1 - <code>candle.pxd</code>:</p>
  
  <pre><code>cdef class Candle:
      cdef:
          int ts
  </code></pre>
  
  <p>File 2 - <code>candle.pyx</code>:</p>
  
  <pre><code>cdef class Candle:
      def __init__(self, int ts):
          self.ts = ts
  </code></pre>
  
  <p>File 3 - <code>feeder.pyx</code>:</p>
  
  <pre><code>from src.cython.candle cimport Candle
  
  cdef class Feeder:
      cdef instantiate_first_candle(self):
          cdef int a = 1
  
          # Instantiates Candle
          cdef Candle candle = Candle(a)
  </code></pre>
  
  <p>The exact error it is throwing is:</p>
  
  <pre><code>from src.cython.feeder import Feeder
  File "src/cython/candle.pxd", line 3, in init feeder
  ValueError: src.cython.candle.Candle has the wrong size, try recompiling. Expected 16, got 24
  </code></pre>
  
  <p>I have not much of a clue of what is going on and how to solve this. I have tried quite a few different things without success.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I was able to import <code>Candle</code> on IPython, when I try to instantiate an object I get this error:</p>
  
  <p><code>AttributeError: 'candle.Candle' object has no attribute 'ts'</code></p>