[yt-dev] Error in yt build from latest checkout
Matthew Turk
matthewturk at gmail.com
Wed Jul 25 07:22:06 PDT 2012
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 at 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 at txcorp.com
> 5621 Arapahoe Ave, Suite A Phone: (720) 254-5833
> Boulder, CO 80303 Fax: (303) 448-7756
> --
>
>
>
>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20120725/cc386754/attachment.htm>
More information about the yt-dev
mailing list