Closed poinot closed 3 months ago
forgot to mention: install from raw source tar:
pymechanical-0.10.4.tar.gz
@poinot Something is not fully clear to me here. Does the error come from this line:
print(app)
if so, why do you show the output of that line (which would only be there if the print did not work)? Or does the output get printed and then you see the error?
And I don't know in what way your code could be accessing ansys_inc/v232/fluent? That seems unrelated to PyMechanical.
I just follow the steps of the tutorial.
I'll have a try without the print and check what's going on...
@poinot Are you experience same issues? can you please provide an update?
@poinot This issue is being closed due to inactivity. Please reopen if needed.
🔍 Before submitting the issue
🐞 Description of the bug
Using a local installation of pymechanical (0.10.4) python raises an exception on trying to create files into the public
__pycache__
directory in the Ansys installation.IMHO:
Actually the installation has not been performed with a compileall call to force creations of *.pyc files, thus my python tries to create them into the public installation without success.
Either to catch the exception or add compileall to installation process of your soft (fluent in that case), to force all *.pyc creations.
📝 Steps to reproduce
$ pip3 install . --user ... Successfully installed ansys-api-platform-instancemanagement-1.0.0 ansys-mechanical-core-0.10.4 ansys-platform-instancemanagement-1.1.2 ansys-pythonnet-3.1.0rc2 ansys-tools-path-0.3.1 ansys_api_mechanical-0.1.1 clr-loader-0.2.6 grpcio-1.59.0 importlib-metadata-6.8.0 $ /softs/ansys/v2023R2/ansys_inc/v232/aisol/.workbench_lite python Python 3.10.8 (main, Oct 18 2022, 15:21:23) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information.
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
v2023R2
🐍 Which Python version are you using?
3.10
📦 Installed packages