Skip to content

Annotation related bug in 3.14+ #678

@Gobot1234

Description

@Gobot1234

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Was trying to run one of the pyfluent examples with python 3.14

Traceback (most recent call last):
  File "c:\Users\hilton\Documents\pyfluent\examples\00-fluent\transient_compressible_nozzle_workflow.py", line 421, in <module>
    mass_bal_rplot = Monitor(solver=solver, monitor_set_name="mass_flow_rate_out_rplot")
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\visualization\containers.py", line 402, in __init__
    session=self.solver, local_surfaces_provider=Graphics(solver).Surfaces
                                                 ~~~~~~~~^^^^^^^^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\visualization\graphics\graphics_objects.py", line 54, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        session, sys.modules[__name__], post_api_helper, local_surfaces_provider
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\post_objects_container.py", line 224, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        session, self.__class__, module, post_api_helper, local_surfaces_provider
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\post_objects_container.py", line 64, in __init__
    self._init_module(self, module, post_api_helper)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\post_objects_container.py", line 123, in _init_module
    cont = PyLocalContainer(self, cls, post_api_helper, cls.PLURAL)
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\meta.py", line 766, in __init__
    cls(self, api_helper, name),
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\meta.py", line 631, in wrapper
    update(self.__class__)
    ~~~~~~^^^^^^^^^^^^^^^^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\meta.py", line 626, in update
    cls(self, api_helper, name),
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hilton\Documents\pyfluent\.venv\Lib\site-packages\ansys\fluent\interface\post_objects\meta.py", line 278, in wrapper
    value_annotation = annotations.get("value")
                       ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

📝 Steps to reproduce

Run transient compressible nozzle on python 3.14+

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

27.1

🐍 Which Python version are you using?

3.13

📦 Installed packages

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions