Back

QuantConnect.Report.exe gives ModuleNotFoundError for module ReportCharts

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?

Update Backtest







0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hello Udonous,

Thank you for reporting this. I have opened a ticket for the issue on GitHub here: https://github.com/QuantConnect/Lean/issues/4080

Best,

Gerardo

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Thank you.

I will let you know if I find anything more.

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed