So I download the Lean package from GitHub, I compile and run it just fine without actually editing the config.json file in the launcher project. No problems there.
But as soon as I enter my user Id and password from my account page into the config.json (and also set to backtesting-desktop), I start getting exceptions on launch that halts the program. The dump of the exception is below.
The interesting thing is if I back out my config.json changes, and re-run I still get the exception. So there must be some local file changes happening when I first run with my username, and that blocks any further executions no matter what is in the config.json file.
Any Ideas?
Thanks,
Chris
System.ComponentModel.Composition.Primitives.ComposablePartException
HResult=0x80131500
Message=An exception occurred while trying to create an instance of type 'QuantConnect.Queues.JobQueue'.
Source=System.ComponentModel.Composition
StackTrace:
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.CreateInstance(ConstructorInfo constructor, Object[] arguments)
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.GetInstanceActivatingIfNeeded()
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.GetExportedValue(ExportingMember member)
at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.GetExportedValue(ExportDefinition definition)
at QuantConnect.Util.Composer.GetExportedValueByTypeName[T](String typeName) in Z:\Code\Lean-master3\Common\Util\Composer.cs:line 151
at QuantConnect.Lean.Engine.LeanEngineSystemHandlers.FromConfiguration(Composer composer) in Z:\Code\Lean-master3\Engine\LeanEngineSystemHandlers.cs:line 109
at QuantConnect.Lean.Launcher.Program.Main(String[] args) in Z:\Code\Lean-master3\Launcher\Program.cs:line 81
Inner Exception 1:
TypeInitializationException: The type initializer for 'QuantConnect.Queues.JobQueue' threw an exception.
Inner Exception 2:
FormatException: Input string was not in a correct format.
Chris Delaney
I revisited this and figured it out. I had the API token and password switched into the wrong fields. When I swapped them, it worked. So if your ID and password are incorrect, you get super-cryptic exceptions that lead you down the wrong rabbit hole.
Jared Broad
Thank you for posting back Chris - that's good feedback for the project!
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.
Chris Delaney
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!