rmagic (rpy2) causes kernel crash in ipython notebook (Mac OSX) -


i've tried better part of last 6 months rmagic functions extension running in ipython notebook -- i'm on macos -- , when try load rmagic kernel crashes.

i using rpy2 in previous version of ipython notebook, somewhere along way 2 stopped communicating. have installed, reinstalled, reinstalled again, , smashed head on screen.

i've tried update rpy2 pip, easy_install, , compile source.

this solution windows didn't me. this 1 didn't either.

when env archflags="-arch i386 -arch x86_64" python setup.py build install source segmentation fault.

here's error i've been getting:

sudo env archflags="-arch i386 -arch x86_64" python setup.py build install running build running build_py running build_ext configuration r library: include_dirs: ('/library/frameworks/r.framework/resources/include',) libraries: ('rblas', 'rlapack') library_dirs: ('/library/frameworks/r.framework/resources/lib',) extra_link_args: ('-framework r', '-f/library/frameworks/r.framework/..') # osx-specific (included in extra_link_args) framework_dirs: ('-f/library/frameworks/r.framework/..',) frameworks: ('-framework r',) building 'rpy2.rinterface._rinterface' extension cc -fno-strict-aliasing -fno-common -dynamic -g -os -pipe -fno-common -fno-strict-    aliasing -fwrapv -mno-fused-madd -denable_dtrace -dmacosx -dndebug -wall -wstrict-prototypes -wshorten-64-to-32 -dndebug -g -fwrapv -os -wall -wstrict-prototypes -denable_dtrace -pipe -arch i386 -arch x86_64 -dr_interface_ptrs=1 -dhave_posix_sigjmp=1 -dcstack_defns=1 -drif_has_rsighand=1 -i./rpy/rinterface -i/system/library/frameworks/python.framework/versions/2.7/include/python2.7 -i/library/frameworks/r.framework/resources/include -c ./rpy/rinterface/_rinterface.c -o build/temp.macosx-10.9-intel-2.7/./rpy/rinterface/_rinterface.o clang: error: unknown argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future] clang: note: hard error (cannot downgraded warning) in future error: command 'cc' failed exit status 1 

does have more recommendations can try? advice.

just set these environment variables before build rpy2:

export cflags=-qunused-arguments export cppflags=-qunused-arguments 

see here more info.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -