
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

Hi Eric,
We recently upgraded our dependency on Cython to 0.16. This error should be fixable if you run:
pip install -U cython
-Matt On Jul 25, 2012 10:16 AM, "Eric Hallman" hallman@txcorp.com wrote:
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@txcorp.com 5621 Arapahoe Ave, Suite A Phone: (720) 254-5833 Boulder, CO 80303 Fax: (303) 448-7756 --
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

Matt, thanks! I'll try to keep up on dependency changes in the future.
cheers,
Eric On Jul 25, 2012, at 10:22 AM, Matthew Turk wrote:
Hi Eric,
We recently upgraded our dependency on Cython to 0.16. This error should be fixable if you run:
pip install -U cython
-Matt
On Jul 25, 2012 10:16 AM, "Eric Hallman" hallman@txcorp.com wrote: 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@txcorp.com 5621 Arapahoe Ave, Suite A Phone: (720) 254-5833 Boulder, CO 80303 Fax: (303) 448-7756 --
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
Eric Hallman
-
Matthew Turk