Closed rs-bh-n closed 2 months ago
38_310.zip The Files are here.
This bug is fixed with 24R2 Mechanical. This also has been added to known issues and limitation section. Ref : https://mechanical.docs.pyansys.com/version/stable/kil/mechanical.html#r1
š Before submitting the issue
š Description of the bug
Attached zip file . (a) "01.py" is a Trace import script that runs fine with standalone 241 Mechanical on console or when passed on as script in batch mode (b) "02.py" is an equivalent pymech file that runs fine with 3.8 but not 3.10
š Steps to reproduce
1) Standalone Mechanical - Gui Mode : runs fine a. Open standalone Mechanical 241 . b. Paste the script from 01_mech_script.py in the scripting console.
2) Standalone Mechanical - Batch Mode : runs fine a. Terminal>Activate venv b. launch standalone mechanical (pymech_test) D:\S\dec_bug_test> ansys-mechanical -r 241 -i D:\S\dec_bug_test**01_mech_script.py**
3) PyMechanical a. Terminal > Activate venv b. D:\S\dec_bug_test> python .**02_pymech.py** c. runs into this error
This is with Python 3.10.
However step3 with Python 3.8 works fine (i.e., trace import happens fine)
š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
Ansys Mechanical 241
š Which Python version are you using?
3.10
š¦ Installed packages