Closed schrummy14 closed 1 year ago
CAD readers will not be found without the AWP env var. The Fluent-specific env var you are using doesn't resolve that because the CAD readers are outside Fluent. Your AWP env var would point to /usr/ansys_inc/v231. Does that not work?
Hello,
Correct, the AWP variable does not work when installing via pip install pyansys[all]
(installs pyfluent 0.11)
I have tried using only the pyfluent install with visualization and parametric. Here the AWP variable works but I get the same error.
The other two examples did run without issue.
Please let me know if there is anything you would like me to pull from the install environment. I will be out next week.
When you log in to your running container and spin up a virtual environment what's the value, or values, of AWP_ROOT<ver>
you have configured? These need to be set in the running environment. It's documented on the README page:
https://github.com/pyansys/pyfluent#launching-fluent
I don't know why we documented this PYFLUENT_FLUENT_ROOT variable, probably the language there that says "or set ..." should be removed or just remove the documentation entirely. This variable is meant for internal development so that developers working on the server code can point PyFluent at a local Fluent build. I'd actually leave this unset entirely and just stick with AWP_ROOT<ver>
Hello,
I have tried the following:
export AWP_ROOT231=/ansys_inc/v231
(which is a sym link to /usr/ansys_inc/v231
)
export AWP_ROOT231=/usr/ansys_inc/v231
Does this need to be set before ansys is installed?
No, typically it would not be set before installation. On Windows, the installer sets it for you, while on Linux, it's a manual step that can be completed afterwards.
That's what I figured as everything else has been working so far. I use a script to start my Jupyter notebook and before Jupyter starts, I set the AWP_ROOT231 variable as above.
Is there anything else you would like me to provide or test?
Hello,
I have tried again using 232 and am getting the same issue with the mixing elbow example.
https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/mixing_elbow.html
sh: 1: /usr/ansys_inc/v232/commonfiles/CPython/3_10/linx64/Release/Ansys/TGrid/runCADReaders.csh: not found
I am using the AWP_ROOT environment variable.
export AWP_ROOT232=/usr/ansys_inc/v232
I am now using Ubuntu 20.04 instead of CentOS 7.
Below is the Jupyter logs during start up.
[32m[I 2023-08-08 20:38:31.445 ServerApp](B[m Package notebook took 0.0000s to import
[32m[I 2023-08-08 20:38:31.452 ServerApp](B[m Package jupyter_lsp took 0.0069s to import
[33m[W 2023-08-08 20:38:31.452 ServerApp](B[m A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[32m[I 2023-08-08 20:38:31.456 ServerApp](B[m Package jupyter_server_terminals took 0.0034s to import
[32m[I 2023-08-08 20:38:31.456 ServerApp](B[m Package jupyterlab took 0.0000s to import
[32m[I 2023-08-08 20:38:31.480 ServerApp](B[m Package notebook_shim took 0.0000s to import
[33m[W 2023-08-08 20:38:31.480 ServerApp](B[m A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[32m[I 2023-08-08 20:38:31.480 ServerApp](B[m jupyter_lsp | extension was successfully linked.
[32m[I 2023-08-08 20:38:31.482 ServerApp](B[m jupyter_server_terminals | extension was successfully linked.
[33m[W 2023-08-08 20:38:31.483 LabApp](B[m 'token' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[33m[W 2023-08-08 20:38:31.484 LabApp](B[m 'base_url' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[33m[W 2023-08-08 20:38:31.486 ServerApp](B[m ServerApp.token config is deprecated in 2.0. Use IdentityProvider.token.
[32m[I 2023-08-08 20:38:31.486 ServerApp](B[m jupyterlab | extension was successfully linked.
[32m[I 2023-08-08 20:38:31.488 ServerApp](B[m notebook | extension was successfully linked.
[32m[I 2023-08-08 20:38:31.489 ServerApp](B[m Writing Jupyter server cookie secret to /tmp/.ephemeral-home/.local/share/jupyter/runtime/jupyter_cookie_secret
[32m[I 2023-08-08 20:38:31.636 ServerApp](B[m notebook_shim | extension was successfully linked.
[32m[I 2023-08-08 20:38:31.652 ServerApp](B[m notebook_shim | extension was successfully loaded.
[32m[I 2023-08-08 20:38:31.655 ServerApp](B[m jupyter_lsp | extension was successfully loaded.
[32m[I 2023-08-08 20:38:31.655 ServerApp](B[m jupyter_server_terminals | extension was successfully loaded.
[32m[I 2023-08-08 20:38:31.656 LabApp](B[m JupyterLab extension loaded from /usr/local/lib/python3.8/dist-packages/jupyterlab
[32m[I 2023-08-08 20:38:31.656 LabApp](B[m JupyterLab application directory is /usr/local/share/jupyter/lab
[32m[I 2023-08-08 20:38:31.657 LabApp](B[m Extension Manager is 'pypi'.
[32m[I 2023-08-08 20:38:31.659 ServerApp](B[m jupyterlab | extension was successfully loaded.
[32m[I 2023-08-08 20:38:31.661 ServerApp](B[m notebook | extension was successfully loaded.
[32m[I 2023-08-08 20:38:31.661 ServerApp](B[m Serving notebooks from local directory: /data
Problem has been solved. On Ubuntu 20.04 (haven't tested for RHEL based OSs nor newer versions of Ubuntu), you need to install the tcsh package. This package is missing from the Ansys installation docs.
🔍 Before submitting the issue
🐞 Description of the bug
Ubuntu Docker Image of Ansys 2023R1 Shows the error:
sh: 1: /usr/ansys_inc/v231/commonfiles/CPython/3_7/linx64/Release/Ansys/TGrid/runCADReaders.csh: not found
but file is at the locationls /usr/ansys_inc/v231/commonfiles/CPython/3_7/linx64/Release/Ansys/TGrid/runCADReaders.csh /usr/ansys_inc/v231/commonfiles/CPython/3_7/linx64/Release/Ansys/TGrid/runCADReaders.csh
📝 Steps to reproduce
Download the fluent mixing elbow example
https://fluent.docs.pyansys.com/dev/examples/00-fluent/mixing_elbow.html#sphx-glr-download-examples-00-fluent-mixing-elbow-py
export PYFLUENT_FLUENT_ROOT=/usr/ansys_inc/v231/fluent
NOTE: AWP_ROOT231 is not working for me.
run
python3 mixing_elbow.py
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
2023R1
🐍 Which Python version are you using?
3.8
📦 Installed packages