Due to issue
#274 this will fail with a
>>> import rpy2 >>> import rpy2.rinterface >>> from rpy2.robjects.packages import importr >>> print(rpy2.__version__) 2.5.6 >>> rpy2.rinterface.R_VERSION_BUILD ('3', '2.0', '', 68180L) >>> stats = importr('stats') Traceback (most recent call last): ... rpy2.robjects.packages.LibraryError: Conflict when converting R symbol in the package "stats" to a Python symbol (format.perc -> format_perc while there is already format_perc)
The exception can be suppressed as follows:
stats = importr('stats', on_conflict="warn")
The issue I'm having is that
on_conflict="warn" has no effect if it is used in a Django application served via Apache and mod_wsgi. It will still raise the same
LibraryError exception. The exception is suppressed as expected if the application is served via Django's development server.