on Ubuntu 14.04
I've suddenly started seeing the following error each time I try and import rpy2.robjects
from rpy2 import robjects
Error: 'rho' must be an environment not NULL: detected in C-level eval
*** stack smashing detected ***: python terminated
Aborted
I don't know any c++ and my google research shows this is a stack overflow error. Is there some way way I can fix this?
Thanks
Following on from @unutbu's comments above and the two links posted:
http://sourceforge.net/p/rpy/mailman/rpy-list/thread/[email protected]/ : "SourceForge RPy2 Error Report"
Django South Seg Fault
The error seems to have been some incompatibility between the older
python-rpy2library and a recent upgrade ofUbuntu 14.04.Upgrading to
Ubuntu 14.10didn't help.However installing through
pip(sudo apt-get install python-pipif you don't have it) with :pip install rpy2 --upgradeandpip install singledispatch(in response to amodule missingerror)solved the problem and rpy2 now works fine.