[Numpy-discussion] Having trouble installing Numpy on OS X
Sat Jan 24 20:04:15 CST 2009
Robert Kern wrote:
> On Sat, Jan 24, 2009 at 18:31, Nat Wilson <firstname.lastname@example.org> wrote:
>> It throws this out.
>> Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37)
>> [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import os
>> >>> os.urandom(16)
> Well, looking at the C code for random_seed(), I don't see a way for
> it to return NULL without having an exception set (assuming that the
> Python API calls aren't buggy). Except maybe the assert() call in
> there. When you built your Python, are you sure that -DNDEBUG was
> being used?
Well, the gcc used to compiler Python is rather ancient and that gcc
release by Apple has the reputation to be "buggier than a Florida swamp
in July" and at least for building Sage it is blacklisted. So I would
suggest updating gcc by using some more recent XCode and trying again.
More information about the Numpy-discussion