Forums

Rpy2 not working

I tried to import rpy2 package like this:

import rpy2.robjects as ro

It gives "Something went wrong :-(" page with error "Error code: 502-backend". I reloaded the app, but it didn't help.

Any suggestions?

Best, Tauno

That looks like a bug in the version of rpy2 that we have installed. We'll look at getting that updated, but it may not make it into the next release. You can work around the issue with:

pip install --user singledispatch
pip install --user -U rpy2

Thank you for the answer, the workaround worked!

Excellent, thanks for confirming!