[yt-dev] Error in yt build from latest checkout

Eric Hallman hallman at txcorp.com
Wed Jul 25 07:16:43 PDT 2012


I am getting a cython error in the latest checkout of yt.

parent: 6116:e62a6e4015c5 tip
 Fixing scaling of data->pixels in the callbacks.
branch: yt

I pulled changes and did setup.py build, and I get this.  True with a clean build as well.: 

building extension "yt.utilities.lib.grid_traversal" sources
cythonc:> build/src.macosx-10.4-x86_64-2.7/yt/utilities/lib/grid_traversal.c

Error compiling Cython file:
------------------------------------------------------------
...
        if im.vd_strides[0] == -1:
            with nogil, parallel(num_threads = num_threads):
                idata = <ImageAccumulator *> malloc(sizeof(ImageAccumulator))
                idata.supp_data = self.supp_data
                v_pos = <np.float64_t *> malloc(3 * sizeof(np.float64_t))
                for j in prange(size, schedule="static",chunksize=1):
                              ^
------------------------------------------------------------

yt/utilities/lib/grid_traversal.pyx:368:31: Invalid keyword argument: chunksize

Error compiling Cython file:
------------------------------------------------------------
...
                idata.supp_data = self.supp_data
                v_pos = <np.float64_t *> malloc(3 * sizeof(np.float64_t))
                v_dir = <np.float64_t *> malloc(3 * sizeof(np.float64_t))
                # If we do not have a simple image plane, we have to cast all
                # our rays 
                for j in prange(size, schedule="dynamic", chunksize=100):
                              ^
------------------------------------------------------------

yt/utilities/lib/grid_traversal.pyx:393:31: Invalid keyword argument: chunksize

Error compiling Cython file:
------------------------------------------------------------
...
        cdef np.float64_t px, py 
        cdef np.float64_t width[3] 
        for i in range(3):
            width[i] = self.width[i]
        if im.vd_strides[0] == -1:
            with nogil, parallel(num_threads = num_threads):
                               ^
------------------------------------------------------------

yt/utilities/lib/grid_traversal.pyx:364:32: Invalid value for num_threads argument, expected an int
error: 3 errors while compiling 'yt/utilities/lib/grid_traversal.pyx' with Cython
-- 
Eric Hallman
Tech-X Corporation               hallman at txcorp.com
5621 Arapahoe Ave, Suite A       Phone: (720) 254-5833
Boulder, CO 80303                Fax:   (303) 448-7756
--







More information about the yt-dev mailing list