Running algorithm in VS Code with Docker Lean container. Python 3.6.8
Error:
ModuleNotFoundError : No module named 'my_calendar'
Code:
from my_calendar import last_trading_day
Python can't find such a module
Thanks.
QUANTCONNECT COMMUNITY
Running algorithm in VS Code with Docker Lean container. Python 3.6.8
Error:
ModuleNotFoundError : No module named 'my_calendar'
Code:
from my_calendar import last_trading_day
Python can't find such a module
Thanks.
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.
AM H
Discovery that this is a dependent module .py file sitting alongside main.py
Shile Wen
Hi AM H,
Please attach the full code to help us in identifying the problem.
Best,
Shile Wen
AM H
I discoverd that the module my_calendar.py is a custom module written by the algo designer and is a part of the ipyn.b project folder for this algorithm.
AM H
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!