Home Forums NextFEM Designer support forum possibility to loading API from IronPython

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4802
    parhyang
    Participant

    hi,

    currently i’m using IronPython, however some error messages shown as:

    IOError: System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

    is this possible to call and loading API trough IronPython instead of Python standard distribution?

    regards,

    Attachments:
    You must be logged in to view attached files.
    #4806
    NextFEM Admin
    Keymaster

    Hello,
    IronPython is not officialy supported, however I can suggest trying with IronPython 3.4.1 instead of 2, with .NET Framework.

    #4832
    parhyang
    Participant

    i updated to the latest versions of IronPython, it seems the library is loaded by changing to “clr.AddReferenceToFileAndPath” commands but some error still shown as:

    SystemError: The type initializer for ‘nflib.nflib’ threw an exception.

    #4834
    NextFEM Admin
    Keymaster

    Hello,
    as stated, IronPython is not officially supported.

    You can try compiling the script to see if the issue is more clear. Use:

    ipyc /main:yourScript.py /target:exe

    and then launch the resulting .exe . If it works, it’s an issued on IPy side.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.