You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Missing Fluent 27.2 PartManagement API causes setup_for_fluent() to failΒ #5671
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.
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
prmukherj commentedon Nov 27, 2026
@juandoval, should be fixed in v0.45.0