Hi,
I gave the following command:
lean data generate --start=20100101 --symbol-count=1
and got the error that follows:
Symbol[1]: KYQ 2T Progress: 100.0% - Symbol data generation and output completed
Random data generation has completed.
Launching coarse data generator...
20210702 18:03:06.133 TRACE:: Config.Get(): Configuration key not found. Key: reserved-words-prefix - Using default
value: quantconnect-
20210702 18:03:06.202 TRACE:: CoarseUniverseGeneratorProgram.ProcessDailyFolder(): Processing:
/Lean/Data/equity/usa/daily
Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
(Parameter 'MaxDegreeOfParallelism')
at System.Threading.Tasks.ParallelOptions.set_MaxDegreeOfParallelism(Int32 value)
at QuantConnect.ToolBox.CoarseUniverseGenerator.CoarseUniverseGeneratorProgram.Run() in /LeanCloud/CI.Builder/bin/De
bug/src/QuantConnect/Lean/ToolBox/CoarseUniverseGenerator/CoarseUniverseGeneratorProgram.cs:line 134
at QuantConnect.ToolBox.CoarseUniverseGenerator.CoarseUniverseGeneratorProgram.CoarseUniverseGenerator() in /LeanClo
ud/CI.Builder/bin/Debug/src/QuantConnect/Lean/ToolBox/CoarseUniverseGenerator/CoarseUniverseGeneratorProgram.cs:line 65
at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.RandomDataGenerator(String startDateString,
String endDateString, String symbolCountString, String market, String securityTypeString, String resolutionString,
String dataDensityString, String includeCoarseString, String quoteTradeRatioString, String randomSeed, String
hasIpoPercentageString, String hasRenamePercentageString, String hasSplitsPercentageString, String
hasDividendsPercentageString, String dividendEveryQuarterPercentageString) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/ToolBox/RandomDataGenerator/RandomDataGeneratorProgram.cs:line 66
at QuantConnect.ToolBox.Program.Main(String[] args) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/ToolBox/Program.cs:line 266
Error: Something went wrong while running the random data generator, see the logs above for more information
The data seems to be correctly generated, but I wonder what is the meaning of this error.
Any idea?
Thanks!
Jasper van Merle
Hi Giuseppe,
This error happens when you run the coarse universe generator on a single processor. Although the price data will be generated correctly, the coarse universe data will be missing because of this error. I have created a pull request on GitHub to fix it, after it is merged you can update to the latest version using the `--update` flag on `lean data generate`.
Giuseppe Mazza
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!