-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansys.mechanical.core.App() raises SEH Exception #918
Comments
@62Scorch Thanks for opening this issue. Could you please try this in a virtual environment where only |
@dipinknair Thanks for your response. I will test this as soon as possible, but I don't have access to the licence right now. So it will probably be towards the end of this week. |
I ran the file with the following environment, running python through command prompt
(These were all the libraries that were added after running pip install ansys-mechanical-core in the base environment) Which gave the following result (the same as in the other environment)
The logfile contents are the same as the printed info in the kernel above |
@62Scorch Thanks for checking this. I tested with VM and could not reproduce this issue. Could you please try without spyder? |
@dipinknair The last run I sent you was without the mechdat/mechdb, and without spyder (I simply ran it from the command prompt) Is there maybe some relevant information about my specific set-up that is required to recreate the issue? |
@62Scorch I apologize for the delay! Please try running the following and let me know what output you see:
|
Is there any updates on this? I am running into the same issue. I recently had a clean windows install on my machine. Since this I am receiving the same errors when I try to run a pymechanical script. I tried running the commands in the comment above but this did not resolve the issue. `>>> app = mech.App(version = 242)
|
@tymanSTG that looks like a different issue than the reported one. @dipinknair could you please support? |
@tymanSTG for the recent issue you are facing, please use int type argument when staring app. - app = mech.App(version = "242")
+ app = mech.App(version = 242) In addition to this please update to latest pymechanical using
|
@dipinknair There's an opportunity to improve our code here. Let's make a change so that we either convert the string to an int or error immediately if the type isn't an int |
🔍 Before submitting the issue
🐞 Description of the bug
Hi all,
I'm trying to start a PyMechanical Embedded application but during the initialisation of the app it crashes and reports an SEH Exception.
Troubleshooting I have tried so far:
There is some reason to believe that this may also be an interaction with the licence server, because the person who managed that did say that around the time I was trying this he also had some issues there. However the timepaths are a bit unclear so it could be a coincidence, or something that was caused by the exception.
Thanks in advance for your help!
Issue was originally posted on te Ansys Dev form but they referred me here https://discuss.ansys.com/discussion/4433/pymechanical-embedded-seh-exception-during-start-application#latest)
I hope this is the right place, please let me know if you have any further feedback or require more info!
📝 Steps to reproduce
Start Python in the Spyder IDE and run the following code:
This outputs the following result:
"Eine externe Komponente hat eine Ausnahme ausgelöst.!" translates to: "An external component has raised an Exception.!"
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Ansys Version 2024R1
Operating System: Windows 11 via remote Desktop (running as a VM on a linux server)
Ansys Version: 2024R1
Licenses Available Via Licence Server
License Types: Floating, and Elastic (I can list the exact names of the licences on request)
Python Version: 3.11
IDE: Spyder 6.0.0 (installed via pip)
🐍 Which Python version are you using?
3.11
📦 Installed packages
The text was updated successfully, but these errors were encountered: