ansys / ansys/pyfluent-visualization
Annotation related bug in 3.14+
- Dominant language
- Python
- Stars
- 53
- Forks
- 7
- Avg merge
- 4h 58m
- Merged PRs (30d)
- 1
Description
### 🔍 Before submitting the issue
- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment
### 🐞 Description of the bug
Was trying to run one of the pyfluent examples with python 3.14
```py
Traceback (most recent call last):
File "c:\Users\hilton\Documents\pyfluent\examples\00-fluent\transient_compressible_nozzle_workflow.py", line 421, in
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
```shell
N/A
```
Contributor guide
Assessment
This issue has not been assessed yet.