Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPR on linux #57

Open
1 task
zlatko-minev opened this issue Oct 23, 2020 · 2 comments
Open
1 task

EPR on linux #57

zlatko-minev opened this issue Oct 23, 2020 · 2 comments

Comments

@zlatko-minev
Copy link
Owner

  • There is a need to run on Linux and HPC cluster

Nick Materise will add notes here on what he has tried.

@nmaterise
Copy link

Here is a summary of the things I tried to make pyEPR work on Linux

  • The main issue is the absence of win32com on Linux
  • There is a call to the Dispatch() method in pyEPR/pyEPR/ansys.py that returns the _app Application object in the HfssApp class. Dispatch() is part of the win32com module and is not available on Linux.
  • There is a setup Python script in the Linux version of HFSS that has returns the oApplication and oDesktop objects needed to interact with HFSS, but they are separate objects that do not seem related in the same way as the Windows version. These objects are available in the IronPython terminal and scripting tool in Linux and you can export the start-up commands when you record and save an IronPython macro.
  • I had to stop there and switch to the Windows version to try and make progress on pyEPR calculations before investigating further. It seemed doable to call or import the setup script and add the appropriate replacements for win32com calls, but I felt it was a rabbit hole at the time and did not pursue it further.

@sergdanilin
Copy link

sergdanilin commented Nov 30, 2023

Thank you @nmaterise,

I am going through the same issue.
In the code base there is a comment at pyEPR/ansys.py

try:
    # TODO: Replace `win32com` with Linux compatible package.
    # See Ansys python files in IronPython internal.
    from win32com.client import Dispatch, CDispatch
except (ImportError, ModuleNotFoundError):
    pass #raise NameError ("win32com module not installed. Please install.")

Are there any updates on this ?

cc/ @zlatko-minev @DanielCohenHillel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants