Back

Generate Report Issues with python

Hi,
I am trying to generate a report for my strategy and spend alot of hours to make python run....
So now I get an exception in the report code and I don't know what its about.

My Setup
Visual Studio 2017
Python with Anaconda followed this installation guid:

https://medium.com/hackernoon/setting-up-your-own-algorithmic-trading-server-4bbdf0766c17

Sofar installed those packages for python:

# Install essential packagesRUN conda install -y \cython=0.29.15 \numpy=1.18.1 \pandas=0.25.3 \

wrapt=1.12.1

Exception I get on [Debug] Mode
 

https://ibb.co/x5gJy98

Exception I get on [Release] (is different)

93210_1595684989.jpg

Translation to English (System.BadImageFormatException: Tried to load a file with a wrong format.)

Help much appriciated

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.


Hi Amir Awak ,

Please change the setting in the Report Project to not prefer 32-bit for the AnyCPU target platform.
We have made a pull request to Lean to address the issue:
AnyCPU Prefer 64-bit for Report Project #4593
since this is the behavior in other projects.

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.


Hi Alexandre Catarino,

Pyhton is running but I still get this issue here with charting:

https://ibb.co/x5gJy98

 

0

Hi Amir Awak ,

I believe this is unrelated issue... 
Could you please give us all the information to reproduce the issue as well as the complete stack trace?

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.


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