Back

Problem with Mac VS when running Lean - System.DllNotFoundException: python3.6m

HI,

I am having some trouble getting Lean to run correctly on Mac using Python.  The C# version works correctly and runs without issue.  However when I follow the instructions to use python in the Algorithm.Python project  get the following error when running Lean (command line or direct in VS):

ERROR:: Loader.TryCreatePythonAlgorithm():  System.DllNotFoundException: python3.6m

running which python3.6m returns /Users/<currentuser>/anaconda3/bin/python3.6m

Does anyone have an idea how to fix this problem?

Many thanks

Scott

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.


Have the same problem, has anyone a solution?

macOS High Sierra 10.13.6

conda 4.6.4 with Python 3.6.6

 

 

0

Hi ScottB and Jakob,
Are you running the latest Lean? About one month ago, we have added a patch that should handle issues with macOS running Python algorithms in Lean. I have tried and could install a clean version of Lean without a problem.

Is it the only python installation in your PC?
 

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.


Hi Alexandre,

  • I did a clean install of MacOs
  • installed VS for Mac
  • installed R from readme link
  • installed Anaconda from readme link
  • installed via conda Python==3.6.6, Pandas and Dependencies
when I open the project the Nuget Packages are restored. When building and running Lean in CSharp it works and displays all the sample output.  If i select Python i get the same error ScottB posted.   
0

Hi Jakob P., sorry for the wait.

Could you please contact me in quantconnect/slack?
Perhaps it is an edge case and we will need to collect more information to improve the guide.

Best regards,
Alex
 

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.


Hi,

I'm suffering from the same error.

Could you kindly let me know how to resolve this issue?

0

Hi Makoto,

We are sorry to hear that. Could you please provide more information about the version of your MacOS, visual studio, python and Lean? Have you installed more than one version of python? We need your help to improve our service!

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.


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