[Numpy-discussion] Installing numpy on py 3.1.2 , osx

Zachary Pincus zachary.pincus@yale....
Tue Jun 8 08:58:58 CDT 2010


This is unexpected, from the error log:
> /Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/ 
> Python.h:11:20: error: limits.h: No such file or directory

No good... it can't find basic system headers. Perhaps it's due to the  
MACOSX_DEPLOYMENT_TARGET environment variable that was warned about  
earlier? (I think I'd seen that sort of thing before... regardless of  
whether you have the 10.4 SDK, if MACOSX_DEPLOYMENT_TARGET is 10.3 I  
think it doesn't get used? Not sure.) Try setting  
MACOSX_DEPLOYMENT_TARGET to 10.4:
MACOSX_DEPLOYMENT_TARGET=10.4
export MACOSX_DEPLOYMENT_TARGET
(if you're using bash, the default OS X shell; for tcsh use "setenv  
MACOSX_DEPLOYMENT_TARGET 10.4")

If this fixes things, I suspect that the build process should probably  
give an error about MACOSX_DEPLOYMENT_TARGET instead of a warning...

Zach



On Jun 7, 2010, at 11:49 PM, Vincent Davis wrote:

> On Mon, Jun 7, 2010 at 7:59 PM, Vincent Davis <vincent@vincentdavis.net 
> > wrote:
>> On Mon, Jun 7, 2010 at 7:26 PM, Ralf Gommers
>> <ralf.gommers@googlemail.com> wrote:
>>>
>>>
>>> On Tue, Jun 8, 2010 at 4:46 AM, Vincent Davis <vincent@vincentdavis.net 
>>> >
>>> wrote:
>>>>
>>>> On Mon, Jun 7, 2010 at 2:11 PM, Skipper Seabold <jsseabold@gmail.com 
>>>> >
>>>> wrote:
>>>>> On Mon, Jun 7, 2010 at 4:02 PM, Vincent Davis <vincent@vincentdavis.net 
>>>>> >
>>>>> wrote:
>>>>>>   "Cannot compile 'Python.h'. Perhaps you need to "\
>>>>>> SystemError: Cannot compile 'Python.h'. Perhaps you need to  
>>>>>> install
>>>>>> python-dev|python-devel.
>>>>>
>>>>> Not sure about this.  Might be the compiler issue, but I know on  
>>>>> Linux
>>>>> you need to install the python-dev (or python-devel) package,  
>>>>> but I
>>>>> don't see that as a pre-req on the Mac page.
>>>>
>>>> So it seems to be seeing the newly installed fortran, but I do  
>>>> get an
>>>> error at the end.
>>>>  File "numpy/core/setup.py", line 260, in check_types
>>>>    "Cannot compile 'Python.h'. Perhaps you need to "\
>>>> SystemError: Cannot compile 'Python.h'. Perhaps you need to install
>>>> python-dev|python-devel.
>>>>
>>>> Any ideas, I looked into how python-dev|python-devel applied to  
>>>> python
>>>> but could make much of what I found. I tried to build python 3.1.2
>>>> from source but that didn't work out. If I need to go that  
>>>> direction I
>>>> guess I need to.
>>>>
>>> You are probably missing the 10.4 SDK. It's an optional install of  
>>> XCode on
>>> your Snow Leopard DVD.
>>
>> True I have 10.5 and 10.6 SDK I will install the 10.4 and try again.
>> Thanks
>> Vincent
>
> Still no go after installing 10.4 sdk
> Attached terminal output.
>
>>>
>>> Cheers,
>>> Ralf
>>>
>>>
>>>
>>> _______________________________________________
>>> NumPy-Discussion mailing list
>>> NumPy-Discussion@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>>
>>>
>>
> <Terminal Saved  
> Output.txt.zip>_______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list