-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
bugIssue, problem or error in PyFluentIssue, problem or error in PyFluent
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
hidden command "switch_to_meshing_mode" is working when no case been read in the current session and returns expected value
If a case has been read in the session, the below error is generated in pyfluent;
>>> getattr(solver.tui, "switch_to_meshing_mode")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_tui.py", line 378, in __getattribute__
).get_child_names():
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_tui.py", line 241, in get_child_names
return self._service.get_attribute_value(
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_tui.py", line 167, in get_attribute_value
response = self._impl.get_attribute_value(request)
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_tui.py", line 71, in get_attribute_value
return self._stub.GetAttributeValue(request, metadata=self._metadata)
File ".env/lib/python3.10/site-packages/grpc/_interceptor.py", line 276, in __call__
response, ignored_call = self._with_call(
File ".env/lib/python3.10/site-packages/grpc/_interceptor.py", line 328, in _with_call
call = self._interceptor.intercept_unary_unary(
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 174, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
File ".env/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 164, in _intercept_call
raise new_ex from None
ValueError: menu not found
in pyconsole, this just returns None
📝 Steps to reproduce
- launch pyfluent solver session
- read any case
- run command
getattr(solver.tui, "switch_to_meshing_mode") - see error
- repeat in pyconsole and see None
- repeat without a case read and see expected output
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.10
📦 Installed packages
ansys-api-fluent==0.3.36
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.2
ansys-fluent-core==0.37.0
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.3.1
ansys-tools-filetransfer==0.2.0
ansys-tools-local-product-launcher==0.2.0
ansys-units==0.9.1
appdirs==1.4.4
certifi==2025.11.12
charset-normalizer==3.4.4
click==8.3.1
defusedxml==0.7.1
Deprecated==1.3.1
docker==7.1.0
googleapis-common-protos==1.72.0
grpcio==1.76.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
idna==3.11
importlib_metadata==8.7.0
joblib==1.5.2
nltk==3.9.2
numpy==2.2.6
pandas==2.3.3
platformdirs==4.5.0
protobuf==4.25.8
pyansys-tools-report==0.9.0
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.3
regex==2025.11.3
requests==2.32.5
scooby==0.11.0
six==1.17.0
tqdm==4.67.1
typing_extensions==4.15.0
tzdata==2025.2
urllib3==2.5.0
wrapt==2.0.1
zipp==3.23.0Metadata
Metadata
Assignees
Labels
bugIssue, problem or error in PyFluentIssue, problem or error in PyFluent