Closed waltersma closed 3 months ago
I'm working on a branch that adds enhanced logging capabilities to embedding, which will help diagnose issues like this one. I currently don't have python 3.10 installed but will try this soon
@waltersma Upgrade to pymechanical version 0.9.
There you can set up logging, as documented here:
https://mechanical.docs.pyansys.com/version/stable/user_guide_embedding/logging.html
I need to see the log at the DEBUG level in order to know why it failed to start up
I am getting an error while I am trying to embed an instance of mechanical in python using pymechanical. I don't know what is the issue. Could you please check?
I have installed ansys-mechanical-core 0.8.0 Ansys Version 2023 R1 python 3.10.11
@RemishR please file a new issue, don't add an unrelated issue to an existing one.
I came up with a workaround for walter... but need to spend more time to find out the root cause and fix it
With version 2024R2, this should no loner be an issue
π Before submitting the issue
π Description of the bug
See following error when embedding mechanical in python:
Exception has occurred: SEHException (0x80004005): External component has thrown an exception. File "test.py", line 7, in
with App() as app:
π Steps to reproduce
from ansys.mechanical.core import App
with App() as app: print(app)
π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
23r2 pre release
π Which Python version are you using?
3.10
π¦ Installed packages