[yt-users] install error

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Fri Jul 13 00:16:56 PDT 2012


Hi Andrew,

We ran the install script from scratch, so I assume it would have installed the version of cython it needed?

Elizabeth


On Jul 13, 2012, at 1:59 PM, Andrew Myers wrote:

> Hi Elizabeth,
> 
> I saw errors like this when I tried to use an older version of Cython. Are you sure that you're using version 0.16? 
> 
> -Andrew M
> 
> On Thu, Jul 12, 2012 at 9:55 PM, Elizabeth Tasker <tasker at astro1.sci.hokudai.ac.jp> wrote:
> Hi,
> 
> We've had some problems installing yt via the install script.
> 
> Initially it did not download distribute, which we did by hand. Then, it couldn't get pip, so I commented that line out and now it's died on cython with:
> 
> 
> 
> cythonc:> yt/utilities/lib/PointsInVolume.c
> building extension "yt.utilities.lib.QuadTree" sources
> cythonc:> yt/utilities/lib/QuadTree.c
> building extension "yt.utilities.lib.RayIntegrators" sources
> cythonc:> yt/utilities/lib/RayIntegrators.c
> building extension "yt.utilities.lib.VolumeIntegrator" sources
> cythonc:> yt/utilities/lib/VolumeIntegrator.c
> building extension "yt.utilities.lib.grid_traversal" sources
> cythonc:> 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
> 
> 
> 
> Has anyone had a similar experience?
> 
> Elizabeth
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> 
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120713/20c8b4d8/attachment.html>


More information about the yt-users mailing list