I'm trying to generate a backtest report with QuantConnect.Report.exe and I seem to be getting a path error.

Executing:

$ cd Report/bin/Debug $ mono QuantConnect.Report.exe --backtest-data-source-file /tmp/backtests/ShareClassMeanReversionAlphaMod.json --report-destination /tmp/report.html

Gives

... 04:46:14.404 Trace:: QuantConnect.Report.Report(): Processing live orders 04:46:14.406 Trace:: PythonInitializer.Initialize(): start... 04:46:15.513 Trace:: PythonInitializer.Initialize(): ended Unhandled Exception: Python.Runtime.PythonException: ModuleNotFoundError : No module named 'ReportCharts' at Python.Runtime.Runtime. CheckExceptionOccurred () [0x0000c] in <55dcb862e7cc4254a41e408cd2da0e98>:0 at Python.Runtime.PythonEngine.ImportModule (System.String name) [0x00006] in <55dcb862e7cc4254a41e408cd2da0e98>:0 ...

I'm on MacOS and have Anaconda3.6 on my path. Strangely, I can do this

$ cd Report/bin/Debug $ python Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ReportCharts ... ModuleNotFoundError: No module named 'clr'

That CLR failure is expected, since vanilla python from the commandline doesn't have the common language runtime. But it does find ReportCharts.py correctly. (So whats with QuantConnect.Report.exe that it doesn't find the module?)

How can I get QuantConnect.Report.exe to find ReportsCharts.py and work properly?

Author