-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lean crashes immediately after starting Python test algo #3651
Comments
Hi @mikko-m ! |
I followed instructions on this page: https://github.com/QuantConnect/Lean/tree/master/Algorithm.Python#quantconnect-python-algorithm-project The versions are different - the docker file documentation is the correct versioning? |
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:24:35 UTC 2019) Python library is 3.6.6 |
Mono was installed directly with apt (latest version), so this might be the reason - thanks, I'll check if this fixes the issue. |
Yes, the docker foundation file is up to date. I think the mono version should do the trick, let us know. |
So now I have downgraded the mono based on the exact versions and nothing works - I'm not newbie (20+ years of professional experience) - I'm quite surprising how difficult it is getting the system running. This is the point I'm now stuck - with older version nuget hangs immediately. With the later version everything worked smoothly until the crash detailed above.
|
Calling
|
I also tried to force that version in case 14 isn't connect before - this is what I get
|
So I finally managed to install exactly the version that was required - no idea why msbuild version is a bit different.
With this setup I managed to get to the same position where I was with the latest version - Python code crashes again.
|
Some extra information after I installed GDB:
|
Recommend using the docker container @mikko-m. With the pace of changes installing into the root OS (for the many different Linux distros) is not something we can ever maintain. Using the docker is 1-2 lines to run and then it's fully maintained and pinned versions. You can write the code/build the binaries in your OS/IDE and then run them code inside the docker environment. |
That is actually what I ended with doing and finally got the python to execute. HOWEVER that required heavy modification of Docker that are from 2016 and do not work with current master. I warmly recommend updating the Docker files and adding some documentation that this is the recommended option as your documentation does not even mention docker. (I also had to create new images based on old images which is quite difficult if you only want to develop algos - fortunately I have experience in docker but for your usual develope that is very likely not the case.) I would suggest doing some user tests with random developers if this project is of importance for you. |
Expected Behavior
To run the template python algo and return results.
Actual Behavior
Execution crashes with native error (see the log attached)
Template/example C# algo finishes correctly and reports metrics correctly (sharpe..)
System Information
System information:
$ uname -a
Linux apina 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64 GNU/Linux
------------------- Log info below ------------------------
2 separate logs because there were differences, LOG 1:
LOG 2:
The text was updated successfully, but these errors were encountered: