Back

Unhandled Exception in backtesting-desktop environment

I not able to run Lean on my desktop in backtesting-desktop environment in orer to chart. Backtesting environment works fine.

These are my config settings:
1. "environment": "backtesting-desktop",
2. "algorithm-type-name": "BasicTemplateAlgorithm",
3.  "job-user-id": "#####",
4.  "api-access-token": "######....####",

 

When I run in Visual Studio, I get:

20161109 11:23:53 Trace:: Config.Get(): Configuration key not found. Key: plugin
-directory - Using default value:
20161109 11:23:53 Trace:: Config.GetValue(): debug-mode - Using default value: F
alse
20161109 11:23:57 Trace:: Config.Get(): Configuration key not found. Key: data-d
irectory - Using default value: ../../../Data/
20161109 11:23:57 Trace:: Config.Get(): Configuration key not found. Key: versio
n-id - Using default value:
20161109 11:23:57 Trace:: Engine.Main(): LEAN ALGORITHMIC TRADING ENGINE v2.2.0.
2 Mode: DEBUG (64bit)
20161109 11:23:57 Trace:: Engine.Main(): Started 11:23 AM
20161109 11:23:57 Trace:: Engine.Main(): Memory 54Mb-App  5Mb-Used  1545Mb-Total

20161109 11:23:57 Trace:: Config.GetValue(): job-project-id - Using default valu
e: 0
20161109 11:23:58 Trace:: JobQueue.NextJob(): Selected QuantConnect.Algorithm.CS
harp.dll
20161109 11:23:58 Trace:: Config.Get(): Configuration key not found. Key: histor
y-provider - Using default value: SubscriptionDataReaderHistoryProvider

Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot fin
d the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startIn
fo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at QuantConnect.Lean.Launcher.Program.Main(String[] args) in C:\Users\hassan\
Lean\Launcher\Program.cs:line 98
Press any key to continue . . .

 

Please advise.

Best,

Hassan

 

 

Update Backtest








SOLVED:

Problem was that the QuantConnect.Views.csproj was not compiled while buildiing Lean.

Everything worked fine, after compiling it.

1

I'm getting this same issue.  I have rebuilt the entire solution, including Quantconnect.Views.  Do we have a fix for this?

0

are you also backtesting in desktop mode? 

 

0

for the "backtesting desktop mode profile" are some settings set like this one:

"desktop-exe": "../../../UserInterface/bin/Debug/QuantConnect.Views.exe"

did you check if this file exists? (debug/release?)

2

Hi, I am having the same issue. I have rebuilt the solution and nothing changed. Im not sure about QuantConnect.Views.csproj that Hassan mentioned. I am running in desktop mode because I changed the environment to backtesting-desktop and yes the "desktop-exe": "../../../UserInterface/bin/Debug/QuantConnect.Views.exe" file does exist.

Can you help me out?

0

Does anyone else still have this problem?

0

Tayler Allen -- open source support is through Google Groups

https://groups.google.com/forum/#!forum/lean-engine

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.


Thanks. I didn't know that group existed

0

I figured out the problem. I changed "desktop-exe": "../../../UserInterface/bin/Debug/QuantConnect.Views.exe" to "desktop-exe": "../../../UserInterface/bin/Release/QuantConnect.Views.exe" in the config.json file.

 

There is a better explain here:

https://groups.google.com/forum/m/#!topic/lean-engine/vnE-tXRMKo0

And here:

https://www.quantconnect.com/forum/discussion/2429/error-running-lean-python-module
2

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