Menu

IronPython issues in version 8.6.5

2023-11-27
2023-12-19
  • Ballenghien

    Ballenghien - 2023-11-27

    Hi,

    I have simple scripts which worked well in DWSIM version 6.1 update 8, but which now throw an error in version 8.6.5.
    In particular, any call to Flowsheet.SolveFlowsheet2() but also Flowsheet.RequestCalculation() or even xx.Calculate() throw the following error:

    **Error Error running script '': Traceback (most recent call last): **

    without additional context or details.

    I'm using it with the following headers:
    *import clr
    clr.AddReference('DWSIM.Interfaces')
    import System
    from System import
    import sys

    clr.AddReference('System.Core')
    clr.ImportExtensions(System.Linq)

    from DWSIM import Interfaces
    from DWSIM.Thermodynamics import

    Flowsheet.SolveFlowsheet2()*

    Is there any library or path that needs to be updated in version 8.6.5 compared to version 6.1?
    Thank you!
    David

     
  • Daniel Medeiros

    Daniel Medeiros - 2023-11-28

    Try one of these new calls:

    For IronPython I suggest using

    Flowsheet.RequestCalculation2(True)

    so it waits for the flowsheet to solve in order to proceed to the next command.

     

    Last edit: Daniel Medeiros 2023-11-28
  • Ballenghien

    Ballenghien - 2023-12-19

    Daniel,

    Thanks a lot for the prompt response.
    Flowsheet.RequestCalculation2(True) did not solve it, however I noticed the problem is solved in the latest version 8.6.6.

    Best

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.