Hi all,
Lean CLI 1.0.196 reports:
Error: Please make sure Docker is installed and running
QUANTCONNECT COMMUNITY
Hi all,
Lean CLI 1.0.196 reports:
Error: Please make sure Docker is installed and running
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.
Mia Alissi
Hi Shaohua,
The error message you're seeing is typically displayed when the Lean CLI is unable to communicate with Docker. This could be because Docker is not installed, not running, or there's an issue with the Docker installation.
Here are a few steps you can take to troubleshoot this issue:
Ensure Docker is installed: Docker is required to run the LEAN engine locally. If you haven't installed Docker, you can follow the instructions in the Installing Lean CLI guide.
Check if Docker is running: If Docker is installed but not running, you'll need to start it. The method to do this varies depending on your operating system. On Windows, you can start Docker Desktop from the Start menu.
Update Lean CLI: Make sure you're using the latest version of the Lean CLI. You can update it by running
pip install --upgrade lean
in your terminal.Check your Python installation: The Lean CLI requires Python, and it's recommended to use the Anaconda distribution. The Python distribution from the Microsoft Store is not supported.
If you've checked all of these and you're still seeing the error, it would be helpful to see the full output when you run the Lean CLI command with the
--verbose
flag, like so:lean backtest "YourAlgorithm" --verbose
. This will provide more detailed information that can help identify the issue.If the problem persists, please provide the verbose output and any additional details about your setup (like your operating system and how you installed Docker and Python) so we can assist you further.
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.
Shaohua Lu
Hi all,
The problem is due to python package Requests:
Lean CLI is not compatible with version 2.32Â
Mia Alissi
Hi Shaohua,
The Lean CLI is designed to work with a wide range of Python packages and versions. However, it's possible that a specific version of a package might cause compatibility issues.
If you're having trouble with the Requests package version 2.32, you might want to try downgrading to an earlier version to see if that resolves the issue. You can do this using pip, the Python package installer. Here's how you can downgrade the Requests package:
This command will uninstall Requests 2.32 and install version 2.31.0 instead.
If downgrading the Requests package doesn't resolve the issue, it would be helpful to see the exact error message you're getting. This could provide more clues about what's causing the problem.
Remember to always keep your Lean CLI updated to the latest version using
pip install --upgrade lean
to ensure maximum compatibility and benefit from the latest features and bug fixes.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.
Shaohua Lu
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!