Hello, I am hoping to build an angular dashboard for local lean-cli backtest results but I am running into the following error:

Traceback (most recent call last):
  File "/Users/me/PycharmProjects/projectName/src/quantconnect/bt_viz/main.py", line 106, in <module>
    qb: QuantBook = QuantBook()
System.Exception: QuantBook.Main(): System.ArgumentException: Unable to locate any exports matching the requested typeName:  (Parameter 'typeName')
   at QuantConnect.Util.Composer.GetExportedValueByTypeName[T](String typeName, Boolean forceTypeNameOnExisting) in /Users/me/PycharmProjects/Lean/Common/Util/Composer.cs:line 307
   at QuantConnect.Lean.Engine.LeanEngineSystemHandlers.FromConfiguration(Composer composer) in /Users/me/PycharmProjects/Lean/Engine/LeanEngineSystemHandlers.cs:line 109
   at QuantConnect.Research.QuantBook..ctor() in /Users/me/PycharmProjects/Lean/Research/QuantBook.cs:line 120
   at QuantConnect.Research.QuantBook..ctor() in /Users/me/PycharmProjects/Lean/Research/QuantBook.cs:line 197
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

 

My python code (not in a Jupyter notebook nor backtest):

import os
import sys

sys.path.append(os.path.dirname("/Users/me/PycharmProjects/lean/Launcher/bin/Debug/"))

from pythonnet import load
load("coreclr")
import pythonnet

import clr

import json
clr.AddReference("QuantConnect.Research")
clr.AddReference("System")
clr.AddReference("QuantConnect.Common")
clr.AddReference("QuantConnect.Indicators")
clr.AddReference("QuantConnect.Lean.Engine") 
from datetime import timedelta, datetime
from QuantConnect.Research import QuantBook
from QuantConnect import *
from QuantConnect.Algorithm import *

#from QuantConnect.Packets import BacktestResult


qb: QuantBook = QuantBook()

and my config.json

 

{
    "algorithm-language": "Python",
    "parameters": {},
    "description": "",
    "cloud-id": 111111,
    "organization-id": "aaaa",
    "local-id": 1111,
    "job-user-id": "11111",
    "api-access-token": "aa",
    "composer-dll-directory": "/Users/me/PycharmProjects/lean/Launcher/bin/Debug",
    "data-directory": "../data",
    "algo-type-name": "BasicTemplateAlgorithm",
    "python-venv": "/Users/me/PycharmProjects/projectName/venv/bin/"
}

I think I'm missing a config value , maybe i need to load lean.json some way.

Thanks!