Compiling against Python 2.5 is still broken in rpy2-2.1.2. Since then the problem was solved, and the fix will be part of 2.1.3. (the debian package for 2.1.2 already includes the fix). http://bitbucket.org/lgautier/rpy2/changeset/a97a85353575
On 27/05/10 12:47, i...@whywouldwe.com wrote: > I've tried using pip, easy_install and python setup.py install, always > get the same error > > $ python setup.py install > running install > running build > running build_py > running build_ext > building 'rpy2.rinterface.rinterface' extension > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1 > -DHAVE_POSIX_SIGJMP=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 > -Irpy/rinterface > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > -I/Library/Frameworks/R.framework/Resources/include > -I/Library/Frameworks/R.framework/Resources/include/x86_64 -c > rpy/rinterface/rinterface.c -o > build/temp.macosx-10.3-i386-2.5/rpy/rinterface/rinterface.o > -F/Library/Frameworks/R.framework/.. -framework R > -L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRlapack > -L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRblas > In file included from rpy/rinterface/rinterface.c:88: > rpy/rinterface/rpy_rinterface.h:28: error: syntax error before ‘Py_Size’ > rpy/rinterface/rpy_rinterface.h:28: warning: data definition has no type > or storage class > In file included from rpy/rinterface/rinterface.c:100: > rpy/rinterface/na_values.c: In function ‘NAInteger_tp_new’: > rpy/rinterface/na_values.c:188: error: invalid lvalue in assignment > In file included from rpy/rinterface/rinterface.c:88: > rpy/rinterface/rpy_rinterface.h:28: error: syntax error before ‘Py_Size’ > rpy/rinterface/rpy_rinterface.h:28: warning: data definition has no type > or storage class > In file included from rpy/rinterface/rinterface.c:100: > rpy/rinterface/na_values.c: In function ‘NAInteger_tp_new’: > rpy/rinterface/na_values.c:188: error: invalid lvalue in assignment > lipo: can't figure out the architecture type of: > /var/folders/U8/U8LCaykgEUSp9RqX2wVkN++++TI/-Tmp-//cciVyzSI.out > error: command 'gcc' failed with exit status 1 > > > I'm using gcc 4.0 on OS X Snow Leopard (also tried 4.2). > > Thanks > > ------------------------------------------------------------------------------ > > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list