hmmm... that does not look like fun.  since numpy is compiled, i can  
definitely see that there would be a problem copying libs compiled on  
10.4 over to 10.6.  i haven't looked at this problem yet myself, but  
here are a few thoughts:

python2.6.1 is the default on snow leopard and it is 64 bit, which  
makes compiling anything against it much more complicated.  maya 2010  
is still 32 bit, so you should not compile anything against the system  
2.6 to use within 2010.

to get the best compatibility with maya, use mayapy to compile, rather  
than compiling against the system and copying over.  to do this,  
create an easy_install for each maya installation, changing the top  
line to the appropriate mayapy interpreter. our easy_install-maya2009  
looks like this:



#!/usr/bin/env /Applications/Autodesk/maya2009/Maya.app/Contents/bin/ 
mayapy
# EASY-INSTALL-ENTRY-SCRIPT:  
'setuptools==0.6c9','console_scripts','easy_install'
__requires__ = 'setuptools==0.6c9'
import sys
from pkg_resources import load_entry_point

sys.exit(
    load_entry_point('setuptools==0.6c9', 'console_scripts',  
'easy_install')()
)




not sure why the /usr/bin/env is necessary on osx (it's not on linux),  
but for me it doesn't work without it.  hope some of this helps.

-chad




On Oct 26, 2009, at 12:03 PM, rabidPraxis wrote:

>
> Hey Chad, thanks for the response. pyMel is badass, btw..
>
> I installed numpy on 10.4 (I remember it being a hassle for that first
> install, getting the gcc & fortran compilers working) and I have
> updated it a couple times since then. I installed snow leopard and
> migrated to a new machine, and things have been a little wonky since
> then.
>
> Anyways, here is the error I get. I have read posts about this being
> something to do with the gcc compiler and some env settings, but I
> have yet to find anything concrete.
>
>  File "/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/easy_install-
> p2grWq/numpy-1.3.0/numpy/distutils/command/build_src.py", line 130, in
> run
>  File "/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/easy_install-
> p2grWq/numpy-1.3.0/numpy/distutils/command/build_src.py", line 147, in
> build_sources
>  File "/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/easy_install-
> p2grWq/numpy-1.3.0/numpy/distutils/command/build_src.py", line 250, in
> build_extension_sources
>  File "/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/easy_install-
> p2grWq/numpy-1.3.0/numpy/distutils/command/build_src.py", line 307, in
> generate_sources
>  File "/private/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/
> easy_install-p2grWq/numpy-1.3.0/numpy/core/setup.py", line 286, in
> generate_config_h
>  File "/private/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/
> easy_install-p2grWq/numpy-1.3.0/numpy/core/setup.py", line 30, in
> check_types
>  File "/private/var/folders/p4/p4ALURh3FMKA+jcKljzZ2k+++TM/-Tmp-/
> easy_install-p2grWq/numpy-1.3.0/numpy/core/setup.py", line 186, in
> check_types
> SystemError: Cannot compiler 'Python.h'. Perhaps you need to install
> python-dev|python-devel.
>
> >


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to