Hi,

I have been using keras module. At certain point my old algos started giving me this error:

 

System.NullReferenceException: Object reference not set to an instance of an object
at Python.Runtime.Dispatcher.Dispatch (System.Collections.ArrayList args) [0x00018] in <0f995c28c5b446ad8835419f76b319a3>:0 
at __System_EventHandler`1[[QuantConnect_Data_Market_TradeBar, QuantConnect_Common, Version=2_4_0_0, Culture=neutral, PublicKeyToken=null]]Dispatcher.Invoke (System.Object , QuantConnect.Data.Market.TradeBar ) [0x00018] in <404737580f4c43f09e3571fd3219f088>:0 
at QuantConnect.Data.Consolidators.PeriodCountConsolidatorBase`2[T, TConsolidated].OnDataConsolidated (TConsolidated e) [0x0001d] in :0 
at QuantConnect.Data.Consolidators.PeriodCountConsolidatorBase`2[T, TConsolidated].Update (T data) [0x00265] in :0 
at QuantConnect.Data.Consolidators.DataConsolidator`1[TInput].Update (QuantConnect.Data.IBaseData data) [0x00046] in :0 
at QuantConnect.Lean.Engine.AlgorithmManager.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Interfaces.IAlgorithm algorithm, QuantConnect.Lean.Engine.DataFeeds.IDataFeed feed, QuantConnect.Lean.Engine.TransactionHandlers.ITransactionHandler transactions, QuantConnect.Lean.Engine.Results.IResultHandler results, QuantConnect.Lean.Engine.RealTime.IRealTimeHandler realtime, QuantConnect.Lean.Engine.Server.ILeanManager leanManager, QuantConnect.Lean.Engine.Alpha.IAlphaHandler alphas, System.Threading.CancellationToken token) [0x00f97] in Lean.Engine.Alpha.IAlphaHandler alphas, System.Threading.CancellationToken token) [0x00f97] in <2006430fa8154de385aea0ee80b63ec4>:0 

 

Does anybody know, what is going on here? If I don't use keras in the code, it works fine.