ironpython3 icon indicating copy to clipboard operation
ironpython3 copied to clipboard

64bits trading technology

Open valengaro opened this issue 1 year ago • 4 comments

Hello, I have installed IronPython version 3.4.1, and when trying to use the tt-net-api.dll library, I get the following message in Visual Studio Code:

SystemError: Could not load file or assembly 'tt-net-api, Version=3.3.0.1, Culture=neutral, PublicKeyToken=39cc95b5bacdf5cf'. This assembly was built for a different processor. I have found that the error may be due to the library being 64-bit, while IronPython is 32-bit.

valengaro avatar Nov 26 '24 15:11 valengaro

@valengaro the simple way to fix this is by running the 64-bit version of IronPython 😅 ipy32.exe is 32-bit whereas ipy.exe is the regular modern version. Hope this helps!

Lamparter avatar Nov 26 '24 15:11 Lamparter

Thanks but i have this issue when i use ipy.exe FileNotFoundError: [Errno 2] Unable to load the file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the specified file.

valengaro avatar Nov 26 '24 16:11 valengaro

Have you installed the .NET Desktop Runtime and SDK?

Lamparter avatar Nov 26 '24 16:11 Lamparter

System.Runtime, Version=5.0.0.0 is an indication that you are trying to use .NET 5 assemblies on .NET Framework. .NET Framework and .NET assemblies are not interchangeable. You'll need a version of the TT.NET.SDK DLL that matches the runtime used by your version of IronPython.

slozier avatar Nov 26 '24 17:11 slozier