I have installed lean, created a test project, and successfully ran a local backtest. However, running backtesting locally fails for some of my projects pulled from the cloud. The error is: 

 




(lean.1) C:\_git_c\inv\lean.ws\1>lean backtest "My\DumbExp3"
[…] 
20210829 08:24:34.971 TRACE:: PythonInitializer.Initialize(): ended
20210829 08:24:34.974 TRACE:: AlgorithmPythonWrapper(): Python version 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:25:33)
[GCC 7.3.0]: Importing python module main
20210829 08:24:35.173 ERROR:: Loader.TryCreatePythonAlgorithm():  System.Exception: AlgorithmPythonWrapper(): NameError : name 'QCAlgorithm' is not defined
 at <module>
   class JumpingVioletDonkey(QCAlgorithm):
===
  at Python.Runtime.PythonException.ThrowIfIsNull(IntPtr ob)
  at Python.Runtime.PythonEngine.ImportModule(String name)
  at Python.Runtime.Py.Import(String name)
  at QuantConnect.AlgorithmFactory.Python.Wrappers.AlgorithmPythonWrapper..ctor(String moduleName) at /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs:line 74 in main.py:
line 4
NameError : name 'QCAlgorithm' is not defined
  at QuantConnect.AlgorithmFactory.Python.Wrappers.AlgorithmPythonWrapper..ctor(String moduleName) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs:line 146
  at QuantConnect.AlgorithmFactory.Loader.TryCreatePythonAlgorithm(String assemblyPath, IAlgorithm& algorithmInstance, String& errorMessage) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/AlgorithmFactory/Loader.cs:line 173
20210829 08:24:35.174 ERROR:: Engine.Run():  QuantConnect.Lean.Engine.Setup.AlgorithmSetupException: During the algorithm initialization, the following exception has occurred: Loader.TryCreatePythonAlgorithm(): Unable
to import python module /LeanCLI/main.py. AlgorithmPythonWrapper(): NameError : name 'QCAlgorithm' is not defined
 at <module>
   class JumpingVioletDonkey(QCAlgorithm):
===
  at Python.Runtime.PythonException.ThrowIfIsNull(IntPtr ob)
  at Python.Runtime.PythonEngine.ImportModule(String name)
  at Python.Runtime.Py.Import(String name)
  at QuantConnect.AlgorithmFactory.Python.Wrappers.AlgorithmPythonWrapper..ctor(String moduleName) at /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs:line 74 in main.py:
line 4
NameError : name 'QCAlgorithm' is not defined
  at QuantConnect.Lean.Engine.Setup.BacktestingSetupHandler.CreateAlgorithmInstance(AlgorithmNodePacket algorithmNodePacket, String assemblyPath) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/Setup/BacktestingSetupHandler.cs:line 104
  at QuantConnect.Lean.Engine.Engine.Run(AlgorithmNodePacket job, AlgorithmManager manager, String assemblyPath, WorkerThread workerThread) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/Engine.cs:line 116
  

Any idea how to workaround/fix this issue? The project backtest runs just fine in the cloud.