<p>Hi Eric, </p>
<p>We recently upgraded our dependency on Cython to 0.16. This error should be fixable if you run:</p>
<p>pip install -U cython</p>
<p>-Matt</p>
<div class="gmail_quote">On Jul 25, 2012 10:16 AM, "Eric Hallman" <<a href="mailto:hallman@txcorp.com">hallman@txcorp.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am getting a cython error in the latest checkout of yt.<br>
<br>
parent: 6116:e62a6e4015c5 tip<br>
 Fixing scaling of data->pixels in the callbacks.<br>
branch: yt<br>
<br>
I pulled changes and did setup.py build, and I get this.  True with a clean build as well.:<br>
<br>
building extension "yt.utilities.lib.grid_traversal" sources<br>
cythonc:> build/src.macosx-10.4-x86_64-2.7/yt/utilities/lib/grid_traversal.c<br>
<br>
Error compiling Cython file:<br>
------------------------------------------------------------<br>
...<br>
        if im.vd_strides[0] == -1:<br>
            with nogil, parallel(num_threads = num_threads):<br>
                idata = <ImageAccumulator *> malloc(sizeof(ImageAccumulator))<br>
                idata.supp_data = self.supp_data<br>
                v_pos = <np.float64_t *> malloc(3 * sizeof(np.float64_t))<br>
                for j in prange(size, schedule="static",chunksize=1):<br>
                              ^<br>
------------------------------------------------------------<br>
<br>
yt/utilities/lib/grid_traversal.pyx:368:31: Invalid keyword argument: chunksize<br>
<br>
Error compiling Cython file:<br>
------------------------------------------------------------<br>
...<br>
                idata.supp_data = self.supp_data<br>
                v_pos = <np.float64_t *> malloc(3 * sizeof(np.float64_t))<br>
                v_dir = <np.float64_t *> malloc(3 * sizeof(np.float64_t))<br>
                # If we do not have a simple image plane, we have to cast all<br>
                # our rays<br>
                for j in prange(size, schedule="dynamic", chunksize=100):<br>
                              ^<br>
------------------------------------------------------------<br>
<br>
yt/utilities/lib/grid_traversal.pyx:393:31: Invalid keyword argument: chunksize<br>
<br>
Error compiling Cython file:<br>
------------------------------------------------------------<br>
...<br>
        cdef np.float64_t px, py<br>
        cdef np.float64_t width[3]<br>
        for i in range(3):<br>
            width[i] = self.width[i]<br>
        if im.vd_strides[0] == -1:<br>
            with nogil, parallel(num_threads = num_threads):<br>
                               ^<br>
------------------------------------------------------------<br>
<br>
yt/utilities/lib/grid_traversal.pyx:364:32: Invalid value for num_threads argument, expected an int<br>
error: 3 errors while compiling 'yt/utilities/lib/grid_traversal.pyx' with Cython<br>
--<br>
Eric Hallman<br>
Tech-X Corporation               <a href="mailto:hallman@txcorp.com">hallman@txcorp.com</a><br>
5621 Arapahoe Ave, Suite A       Phone: <a href="tel:%28720%29%20254-5833" value="+17202545833">(720) 254-5833</a><br>
Boulder, CO 80303                Fax:   <a href="tel:%28303%29%20448-7756" value="+13034487756">(303) 448-7756</a><br>
--<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div>