QuantConnect / pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
http://pythonnet.github.io
MIT License
28 stars 27 forks source link

Increase initialization timeout #50

Closed Martin-Molinero closed 3 years ago

Martin-Molinero commented 3 years ago

We've starting seeing this exception error happen on and off, let's increase the time out 👍

2021-05-24T22:48:48.7695468Z ERROR:: WorkerThread.<.ctor>b__7_0(): WorkerThread(): exception thrown when running task System.TimeoutException: Timeout while waiting for assemblies to load
   at Python.Runtime.AssemblyManager.Initialize()
   at Python.Runtime.Runtime.Initialize(Boolean initSigs, ShutdownMode mode)
   at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs, ShutdownMode mode)
   at Python.Runtime.PythonEngine.Initialize(Boolean setSysArgv, Boolean initSigs, ShutdownMode mode)
   at Python.Runtime.PythonEngine.Initialize()
   at QuantConnect.Python.PythonInitializer.Initialize() in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Python/PythonInitializer.cs:line 42
   at QuantConnect.Util.WorkerThread.<.ctor>b__7_0() in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Util/WorkerThread.cs:line 62