Skip to content

[BUG]: Missing Fluent 27.2 PartManagement API causes setup_for_fluent() to failΒ #5671

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, calling pyfluent.setup_for_fluent() in meshing mode fails because the generated Fluent 27.2 PartManagement API is missing from the installed PyFluent package.

Fluent starts successfully, but setup_for_fluent() attempts to access session.PartManagement and raises a FileNotFoundError for:
ansys/fluent/core/generated/v272/meshing/part_management.py
d
This appears related to #5657, which reports the same generated API packaging problem for the Fluent 27.2 meshing workflow.

πŸ” Steps to reproduce

import ansys.fluent.core as pyfluent

flglobals = pyfluent.setup_for_fluent(
    mode="meshing",
    gpu=False,
)

🎯 Expected behavior

pyfluent.setup_for_fluent() completes successfully and provides access to the Fluent meshing globals, including PartManagement.

πŸ’₯ Actual behavior / traceback

PyFluentUserWarning: Fluent version '27.2.0' is newer than the highest
supported version '27.1.0'; using '27.1.0' instead.

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

RuntimeError: Please run `python codegen/allapigen.py` from the top-level
pyfluent directory to generate the local datamodel API classes.
The failure occurs when setup_for_fluent() attempts to execute:
globals["PartManagement"] = session.PartManagement

πŸ“¦ PyFluent version

0.43.1 or newer

πŸŒ€ Ansys Fluent version

2027 R2 (27.2)

🐍 Python version

3.13

πŸ’» Operating system

Windows

πŸ“Œ Additional context

Unlike #5657, which concerns the missing workflow.py file, this failure concerns the missing generated file:
generated/v272/meshing/part_management.py

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