Hello all,

When I run “lean backtest --download-data test_project” for a brand new project named test_project, I get the following error that I could use some help resolving:

Unhandled exception. System.ArgumentException: Unable to locate any exports matching the requested typeName: QuantConnect.Data.Auxiliary.LocalZipMapFileProvider (Parameter 'typeName')

Below is the algorithm class code.  I removed the default SPY security and added a single Forex security that I ordered a few months ago through QuantConnect's Data Library.  Backtests with this security were working fine in an older version of the Lean CLI.

I appreciate any help getting around this as I prefer backtesting locally first.

This occurs with Lean CLI version 1.0.5.

  1. class Testproject(QCAlgorithm):
  2. def Initialize(self):
  3. self.SetStartDate(2021, 1, 2) # Set Start Date
  4. self.SetEndDate(2021, 1, 3)
  5. self.SetCash(10000) # Set Strategy Cash
  6. self.AddForex("GBPUSD", Resolution.Hour, Market.Oanda)
  7. def OnData(self, data):
  8. """OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
  9. Arguments:
  10. data: Slice object keyed by symbol containing the stock data
  11. """
  12. self.Debug(self.UtcTime)

Author

Jose Torres

June 2021