ironpython2 icon indicating copy to clipboard operation
ironpython2 copied to clipboard

Missing the .net core standalone executable

Open AnandTati opened this issue 4 years ago • 3 comments

Prerequisites

The issue tracker is used to report bugs and request new features, NOT to ask questions.

Questions should be posted to the users mailing list which can be accessed at https://ironpython.groups.io/g/users.

  • [x] Are you running the latest version?
  • [x] Are you reporting to the correct repository?
  • [x] Did you perform a cursory search?

Description

When ipy.exe is run, it always uses .NET framework 4.5 on .NET framwork 4.8. This causes issues while loading .NET Core 3 DLLs. There is no way to specify the runtime framwork.

Steps to Reproduce

  1. Go to IronPython installed folder.
  2. "C:\Program Files\IronPython 2.7"
  3. Run "ipy.exe".
  4. Following will be displayed on the screen. C:\Users\anand.tati>"c:\Program Files\IronPython 2.7\ipy.exe" -V IronPython 2.7.10 2.7.10.0 on .NET 4.0.30319.42000
  5. Use clr to load .NET Core 3 DLLs.

Expected behavior: "ipy.exe" should have separate binary for .NET Core 3.

Actual behavior: Not able to load .NET Core 3 DLLs in the "ipy.exe" console. Tried setting different paths via adding paths in sys.path. e.g. [Also tried with different combination of sequence of these paths.] C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.3 C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.3 C:\Windows\Microsoft.NET\Framework64\v4.0.30319

Every time a different error is presented. Finally got stuck with SystemError: Could not load type 'System.ICloneable' from assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Versions

You can get this information from executing ipy -V. IronPython 2.7.10 2.7.10.0 on .NET 4.0.30319.42000

AnandTati avatar May 06 '20 23:05 AnandTati

There is no installer for the .NET Core version of IronPython. It is available in the zip of the release.

slozier avatar May 17 '20 19:05 slozier

The zip file from the release does not have the executable.

image

AnandTati avatar May 18 '20 19:05 AnandTati

Thanks for the report, that should indeed probably be included in the zip. You can dotnet ipy.dll to launch or copy the ipy.bat from the netcoreapp2.1 folder and use that to launch.

slozier avatar May 18 '20 19:05 slozier