ansys / pyfluent

Pythonic interface to Ansys Fluent
https://fluent.docs.pyansys.com
MIT License
278 stars 41 forks source link

ui mode issue on non-windows OS #3292

Closed millerj97 closed 2 months ago

millerj97 commented 2 months ago

🔍 Before submitting the issue

🐞 Description of the bug

The following message is displayed when using the ui_mode flag on linux:

Traceback (most recent call last):
    flglobals = pyfluent.setup_for_fluent(product_version="25.1.0", mode="solver", dimension=2, precision="double", processor_count=1, ui_mode="no_gui", graphics_driver="auto")
  File "/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/utils/setup_for_fluent.py", line 9, in setup_for_fluent
    session = launch_fluent(*args, **kwargs)
  File "/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/utils/deprecate.py", line 49, in wrapper
    return func(*args, **kwargs)
  File "/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/utils/deprecate.py", line 49, in wrapper
    return func(*args, **kwargs)
  File "/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/launcher/launcher.py", line 292, in launch_fluent
    launcher = launcher_type(**launcher_argvals)
  File "/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/launcher/standalone_launcher.py", line 221, in __init__
    if self.argvals["ui_mode"] < UIMode.HIDDEN_GUI:
TypeError: '<' not supported between instances of 'UIMode' and 'UIMode'

📝 Steps to reproduce

launch pyfluent with command;

flglobals = pyfluent.setup_for_fluent(product_version="25.1.0", mode="solver", dimension=2, precision="double", processor_count=1, ui_mode="no_gui", graphics_driver="auto")
globals().update(flglobals)

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

251

🐍 Which Python version are you using?

3.10

📦 Installed packages

a