Domanda

Ho provato per la parte migliore degli ultimi 6 mesi per ottenere l'estensione delle funzioni RMAGIC in esecuzione in Ippython Notebook - sono su un macos - e quando provo a caricare il RMAGIC, il kernel si schianta.

Stavo usando RPY2 in una versione precedente di Ippython Notebook, ma da qualche parte lungo il modo in cui i due hanno smesso di comunicare. Ho installato, reinstallato, reinstallato di nuovo e distrutto la testa sullo schermo.

Ho provato ad aggiornare RPY2 da PIP, EASY_Install e compilare da origine.

Questa soluzione per Windows non mi ha aiutato. Questo uno non ha aiutato neanche.

Quando I env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build install da Source ottengo un errore di segmentazione.

Ecco l'errore che ho ricevuto:

sudo env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build install
running build
running build_py
running build_ext
Configuration for R as a 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: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
.

Qualcuno ha più raccomandazioni che posso provare? Grazie mille per qualsiasi consiglio.

È stato utile?

Soluzione

Basta impostare queste variabili di ambiente prima di costruire RPY2:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
.

Vedi qui perMaggiori informazioni.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top