Skip to content

[BUG]: Missing Fluent 27.2 preferences API in PyFluent 0.43.1 and newerΒ #5670

Backlog

Description

@juandoval

βœ… Before submitting

  • I have searched the existing issues and did not find a duplicate.
  • I am using a Python virtual environment.
  • I have confirmed this is a PyFluent issue, not a problem with Ansys Fluent. See the posting issues guide.

πŸ“ Description of the bug

When using PyFluent 0.43.1 or newer with Fluent 27.2, accessing
solver_session.preferences fails because the generated preferences
object-model API for Fluent 27.2 is missing from the installed PyFluent package.

Fluent launches successfully, but PyFluent raises a FileNotFoundError when
it attempts to load:

ansys/fluent/core/generated/v272/object_model/preferences.py

This appears closely related to #5657, which reports the same problem for the
Fluent 27.2 meshing workflow API.

πŸ” Steps to reproduce

import ansys.fluent.core as pyfluent

solver_session = pyfluent.launch_fluent(
    mode="solver",
    processor_count=4,
    ui_mode="no_gui",
)

try:
    solver_session.preferences.set_state({})
finally:
    solver_session.exit()

🎯 Expected behavior

solver_session.preferences loads successfully and allows the Fluent preferences state to be accessed or modified.

πŸ’₯ Actual behavior / traceback

FileNotFoundError: [Errno 2] No such file or directory:
<venv>/site-packages/ansys/fluent/core/generated/v272/object_model/preferences.py

RuntimeError: Please run `python codegen/allapigen.py` from the top-level
pyfluent directory to generate the local datamodel API classes.

πŸ“¦ PyFluent version

0.43.1

πŸŒ€ Ansys Fluent version

2027 R2 (27.2)

🐍 Python version

3.13

πŸ’» Operating system

Linux

πŸ“Œ Additional context

Found in regression. Count: 101

Activity

  1. added
    bug
    on Nov 26, 2026
  2. prmukherj commented on Nov 27, 2026

    @prmukherj
    Collaborator

    @juandoval, should be fixed in v0.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions