Activity for Alfonso Villegas

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Python Scripting

    Hello, So the issue was that the installed Python interpreter on the workstation was 32-bit instead of 64-bit. Now everything works!

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Python Scripting

    Yes, I can open DWSIM.UI.Desktop.exe manually.

  • Alfonso Villegas Alfonso Villegas modified a comment on discussion Python Scripting

    Hi Daniel, Yes, I set it to the right folder, the code can access all the .dll files that I reference, the error occurs only when I call interf = Automation2(). This is my code: import pythoncom pythoncom.CoInitialize() import clr from System.IO import Directory, Path, File from System import String, Environment dwsimpath = "C:\\Users\\alfonso.villegas\\AppData\\Local\\DWSIM7\\" Directory.SetCurrentDirectory(dwsimpath) clr.AddReference(dwsimpath + "CapeOpen.dll") clr.AddReference(dwsimpath + "DWSIM.Automation.dll")...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Python Scripting

    Hi Daniel, Yes, I set it to the right folder, the code can access all the .dll files that I reference, the error occurs only when I call interf = Automation2(). This is my code: import pythoncom pythoncom.CoInitialize() import clr from System.IO import Directory, Path, File from System import String, Environment dwsimpath = "C:\\Users\\alfonso.villegas\\AppData\\Local\\DWSIM7\\" clr.AddReference(dwsimpath + "CapeOpen.dll") clr.AddReference(dwsimpath + "DWSIM.Automation.dll") clr.AddReference(dwsimpath...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Python Scripting

    Hello, I am unfortunately still blocked on this issue... I've tried looking for ways to solve this for the past few days but I have not made any progress. I would really appreciate any hint on how to solve this. Here are a few more information from the Assembly binding log: Message=Could not load file or assembly 'DWSIM.UI.Desktop, Version=7.5.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DWSIM.UI.Desktop, Version=7.5.5.0,...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Python Scripting

    Hello, I just changed my workstation and I am now operating on Windows 10 Pro, using Microsoft Visual Studio 2019. Both my old code or the example code snippet to create a flowsheet using Python give the same error: Message=Could not load file or assembly 'DWSIM.UI.Desktop, Version=7.5.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at DWSIM.Automation.Automation2..ctor() Source=C:\Users\alfonso.villegas\source\repos\PythonApplication2\PythonApplication2\PythonApplication2.py...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Hi Daniel, Here are both screenshots.

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Hello Daniel, I still have an issue with the setup element matrix... I always get an error saying that the Element Matrix is not defined for my Gibbs reactor. With the new version, I can now open the Element Matrix but the Matrix is completely empty, showing only the name of only one of the reacting compounds and not showing the compound elements either. Also, if I click on "reset" the element matrix, the application crashes. I attach here the errors.log file. Thank you for your amazing work and...

  • Alfonso Villegas Alfonso Villegas modified a comment on discussion Linux Platform (New UI)

    Dear Daniel, I get the same error when trying to use Automation2() in a Python script using the pythonnet package. I'm running the script from an IDE (PyCharm, VSCode, tried on both) on macOS: * Assertion at assembly.c:1939, condition is_ok (hook_error)' not met, function:mono_assembly_invoke_load_hook_internal, (null) assembly:/Users/alfonsovillegas/opt/anaconda3/envs/DWsimPython38/lib/mono/4.5/mscorlib.dll type:ReflectionTypeLoadException member:(null) I managed to run my script using IronPython...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Linux Platform (New UI)

    Dear Daniel, I get the same error when trying to use Automation2() in a Python script using the pythonnet package. I'm running the script from an IDE (PyCharm, VSCode, tried on both) on macOS: * Assertion at assembly.c:1939, condition is_ok (hook_error)' not met, function:mono_assembly_invoke_load_hook_internal, (null) assembly:/Users/alfonsovillegas/opt/anaconda3/envs/DWsimPython38/lib/mono/4.5/mscorlib.dll type:ReflectionTypeLoadException member:(null) I managed to run my script using IronPython...

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Great, thanks! Kind regards, Alfonso

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Hi Daniel, I had it unchecked.

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Hi Daniel, Here is the errors.log file.

  • Alfonso Villegas Alfonso Villegas posted a comment on discussion Mac Platform (New UI)

    Hello, I've just downloaded DWsim 6.7.1.1 on my M1 MBP (macOS Monterey 12.0.1) and I have issues with the application crashing. For example I am trying to use a Gibbs reactor, but whenever I click on Setup Element Matrix, the application quits. I am however able to open the flowsheet sample "Gibbs and Equilibrium reactor" and solve it. But again if I try to click on "Setup Element Matrix" the application quits. I've also tried running an even simpler simulation with a compressor. I was able to solve...

1