Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
[pyfolio] [empyrical] RuntimeWarning: invalid value encountered in log1p cum_log_returns = np.log1p(returns).cumsum()

Hi all,
I'm trying to issue a pyfolio pf.create_returns_tear_sheet(returns, benchmark_rets=None) but I bump into an error of the like: 'RuntimeWarning: invalid value encountered in log1p cum_log_returns = np.log1p(returns).cumsum()' located in stats.py script of empyrical package.
I have a zipline environment python=3.5 with:
numpy 1.14.2
pyfolio 0.9.2
Apparently, the function np.log1p was updated with version 1.18 (https://stackoverflow.com/questions/57339209/numpy-runtimewarning-invalid-value-encountered-in-log1p), but my package cannot be updated.
Did somebody manage to handle this issue and circumvent the error?
Thanks!
Isabel