Traceback (most recent call last):


 "/Users/pilo/development/itba/pf/test/sma.py", line 94, in <module>

bt.plot(plot_equity=True, superimpose=False, resample="5T",


 "/Users/pilo/development/itba/pf/test/venv/lib/python3.8/site-packages/backtesting/backtesting.py", line 1704, in plot

plot(


 "/Users/pilo/development/itba/pf/test/venv/lib/python3.8/site-packages/backtesting/_plotting.py", line 185, in plot

df, indicators, equity_data, trades = _maybe_resample_data(


 "/Users/pilo/development/itba/pf/test/venv/lib/python3.8/site-packages/backtesting/_plotting.py", line 110, in _maybe_resample_data

indicators = [_Indicator(i.df.resample(freq, label='right').mean()


 "/Users/pilo/development/itba/pf/test/venv/lib/python3.8/site-packages/backtesting/_plotting.py", line 110, in <listcomp>

indicators = [_Indicator(i.df.resample(freq, label='right').mean()


 "/Users/pilo/development/itba/pf/test/venv/lib/python3.8/site-packages/backtesting/_util.py", line 83, in df

df = pd.DataFrame(values.T, index=self._opts['data'].index,
AttributeError: '_Indicator' object has no attribute '_opts'

Traceback (most recent call last):


 "/usr/lib/python3.4/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/usr/lib/python3.4/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/lib/python3.4/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/usr/lib/python3.4/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/lib/python3.4/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/usr/lib/python3.4/site-packages/flask_appbuilder/security/views.py", line 398, in login

user = self.appbuilder.sm.auth_user_ldap(form.username.data, form.password.data)


 "/usr/lib/python3.4/site-packages/flask_appbuilder/security/manager.py", line 634, in auth_user_ldap

except ldap.LDAPError as e:
AttributeError: 'module' object has no attribute 'LDAPError'
