Hi team,

I'm encountering the following bug while running a sample strategy in python.

20170724 00:19:14 ERROR:: Loader.TryCreatePythonAlgorithm():  System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at Python.Runtime.Runtime.Py_IsInitialized()
   at Python.Runtime.Runtime.Initialize()
   at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv)
   at Python.Runtime.PythonEngine.Initialize()
   at QuantConnect.AlgorithmFactory.Loader.TryCreatePythonAlgorithm(String assemblyPath, IAlgorithm& algorithmInstance, String& errorMessage) in C:\Lean\AlgorithmFactory\Loader.cs:line 164

Is it someting to do with my python installation?

I'm having Python 2.7 (32-bit) and Python 3.4 (64 bit) both installed on my machine.

Any advice would be appreciated.

Thank you.

 

 

 

Author