After upgrading LeanCLI from version 1.0.97 to version 1.0.132 I am now hitting an error while trying to run a backtest
lean backtest dr_idr
Error: This is an old Lean CLI root folder.
From now on, a Lean CLI root folder must be created for each organization for improved usability.
For each organization you'd like to use with the CLI, please create a new folder and run `lean init`.
Even if I try to init I still get the error:
lean init
Error: This is an old Lean CLI root folder.
From now on, a Lean CLI root folder must be created for each organization for improved usability.
For each organization you'd like to use with the CLI, please create a new folder and run `lean init`.
I can see someone else reported the issue here:
https://github.com/QuantConnect/lean-cli/issues/239
Anyone have any ideas what I can do to resolve this?
Do I need to init a new directory or can I tweak the existing settings?
Louis Szeto
Hi John
You'll need to run `lean init` in a new directory. Most of the settings can be migrated by copying the values from the old lean.json into the new one with the same keys. A few settings might need to be reset in the command line terminal like the custom image setting.
Best
Louis
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.
Non Compete
Yeah i suggest starting from a new directory, but in order to make sure you aren't charged for all your local history data again probably want to copy all the files from your old /data dir when the history info is stored to your new one, unless you have the Bulk Algoseek data subscription ( https://www.quantconnect.com/datasets/algoseek-us-equities/pricing ) , in which case I don't think you will be charged again. But use options like:
--data-purchase-limit 0 --data-provider Local
just in case.
.
John M
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!