Tahnoon Pasha
Tahnoon Pasha

Reputation: 6018

rpy2 robjects causing stack smashing error

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

Upvotes: 1

Views: 1442

Answers (1)

Tahnoon Pasha
Tahnoon Pasha

Reputation: 6018

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-rpy2 library and a recent upgrade of Ubuntu 14.04.

Upgrading to Ubuntu 14.10 didn't help.

However installing through pip (sudo apt-get install python-pip if you don't have it) with :

pip install rpy2 --upgrade and

pip install singledispatch (in response to a module missing error)

solved the problem and rpy2 now works fine.

Upvotes: 4

Related Questions