[yt-users] install error
Sam Skillman
samskillman at gmail.com
Fri Jul 13 08:09:37 PDT 2012
Beware -- updating gcc to anything past 4.2 will likely break the compile
on a mac. You want to make sure to use the Xcode gcc, which you should be
able to do by setting:
export CC=gcc-4.2
export CXX=g++-4.2
or the equivaltent command in csh if you aren't a bash person. If you had
done that, then I'm not sure what the problem would be. You'll likely have
to wipe the existing install for those exports to do you any good.
Sam
On Fri, Jul 13, 2012 at 1:33 AM, Elizabeth Tasker <
tasker at astro1.sci.hokudai.ac.jp> wrote:
> Hi Nathan,
>
> This is also a mac - but I'll suggest we update gcc. Thanks!
>
> Elizabeth
>
>
> On Jul 13, 2012, at 4:21 PM, Nathan Goldbaum wrote:
>
> > Hi Elizabeth,
> >
> > I tried running the install script on my mac laptop after your e-mail.
> I was able to build yt from the install script with no problems.
> >
> > It would help if you could let us know a bit more about the system
> you're trying to build yt on. In particular, I think you'll run into
> issues if you're using an old version of gcc that doesn't support OpenMP.
> Version 4.2 or newer should work.
> >
> > -Nathan
> >
> >
> > On 7/13/12 12:16 AM, Elizabeth Tasker wrote:
> >> 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 <mailto: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 <mailto: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 <mailto: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
> >
> >
> > _______________________________________________
> > 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/3041db23/attachment.html>
More information about the yt-users
mailing list