Hi, I tried to run python algorithm using docker but get the following error messages:
Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path '/Lean/Algorithm.Python'.
---
Here's how I ran lean in Windows 10 and got the error message.
step 1: downloading docker and clone git files
docker pull quantconnect/lean
git clone https://github.com/QuantConnect/Lean.git
step 2: edit ./Lean/Launcher/config.json
// "algorithm-language": "CSharp",
algorithm-language": "Python",
// "algorithm-location": "QuantConnect.Algorithm.CSharp.dll",
"algorithm-location": "../../../Algorithm.Python/BasicTemplateFrameworkAlgorithm.py",
step 3: build in Visual Stuidio
step 4: build lean docker image
docker build -f ./Dockerfile .
step 5: running lean in docker with default path of docker image, Lean config file, Data folder and results folder
./run_docker.bat
---
However, I found it there is no problem running lean in docker if I use C# settings in ./Lean/Launcher/config.json and rebuild lean in Visual Studio.
Has anyone encountered this and can share your solutions? Thanks!
Alexandre Catarino
Hi weiyan-chen ,
We have been working on VS Code Integration w/ Docker & Addition of External Algorithms #4576. It will include a ReadMe that will teach developers how to use it with both C# and Python algorithms.
Weiyan chen1
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!