when translating a journal with -topy, and using a gui flag such as -gu or -gr the launch command translates to:
flglobals = pyfluent.setup_for_fluent(product_version="25.1.0", mode="solver", dimension=2, precision="double", processor_count=2, ui_mode="no_gui", graphics_driver="auto")
running the resulting script gives this error for ui_mode:
Traceback (most recent call last):
File "/tmp/flute_jomiller/tutorials/gascomb_tui_a4.XoXISg/gascomb_tui_a4.py", line 6, in <module>
flglobals = pyfluent.setup_for_fluent(product_version="25.1.0", mode="solver", dimension=2, precision="double", processor_count=2, ui_mode="no_gui", graphics_driver="auto")
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/utils/setup_for_fluent.py", line 9, in setup_for_fluent
session = launch_fluent(*args, **kwargs)
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/utils/deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/utils/deprecate.py", line 49, in wrapper
return func(*args, **kwargs)
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/launcher/launcher.py", line 292, in launch_fluent
launcher = launcher_type(**launcher_argvals)
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/launcher/standalone_launcher.py", line 184, in __init__
self.argvals["ui_mode"] = UIMode(ui_mode)
File "/home/staff/jomiller/Documents/ansys_inc/certified/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/enum.py", line 385, in __call__
return cls.__new__(cls, value)
File "/home/staff/jomiller/Documents/ansys_inc/certified/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/enum.py", line 718, in __new__
raise exc
File "/home/staff/jomiller/Documents/ansys_inc/certified/v251/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/enum.py", line 700, in __new__
result = cls._missing_(value)
File "/home/staff/jomiller/pyfluent_venv_files/pyfluent/src/ansys/fluent/core/launcher/pyfluent_enums.py", line 55, in _missing_
raise DisallowedValuesError(
ansys.fluent.core.exceptions.DisallowedValuesError: 'The specified value: 'no_gui' is not a supported value of UIMode. The supported values are: 'no-gui-or-graphics', 'no-graphics', 'no-gui', 'hidden-gui', 'gui'.' has no attribute 'None'.
🔍 Before submitting the issue
🐞 Description of the bug
when translating a journal with -topy, and using a gui flag such as
-gu
or-gr
the launch command translates to:flglobals = pyfluent.setup_for_fluent(product_version="25.1.0", mode="solver", dimension=2, precision="double", processor_count=2, ui_mode="no_gui", graphics_driver="auto")
running the resulting script gives this error for ui_mode:
when running in pyconsole there are no issues
📝 Steps to reproduce
2ddp -t4 -topy -i command_journal.jou -gu
command_journal.zip💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
v251
🐍 Which Python version are you using?
3.10
📦 Installed packages