ansys/pyansys-geometry

Bug located in `run_discovery_script_file`

Closed this issue ยท 10 comments

๐Ÿ” Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

๐Ÿž Description of the bug

I always get the error that script failed

GeometryRuntimeError: Script run failed: An error occurred: One or more errors occurred.Stack trace:

๐Ÿ“ Steps to reproduce

  • launch DMS (because of #756)
  • use following to connect to the modeler
from ansys.geometry.core import Modeler
modeler = Modeler(port=50051)
modeler.run_discovery_script_file("test_disc.py",{})
  • it does not matter which script you use, even just one line script does not work.

๐Ÿ’ป Which operating system are you using?

Windows

๐Ÿ“€ Which ANSYS version are you using?

2023 R2 (DMS on D drive)

๐Ÿ Which Python version are you using?

3.10

๐Ÿ“ฆ Installed packages

ansys.geometry.core==0.3.2

@RobPasMue, do you have any thoughts or maybe a workaround?

Let me check this on Monday morning and I'll get back to you! =)

@RobPasMue, I am sorry to keep you bothering, did you had a chance to take a look, we are in process of feasibility for a potential customer, if you can give me some workaround that would be great.

@kmahajan-cadfem - please have a look at these tests here (they depend on a given Modeler session but that should be fine, just create it yourself as you are doing right now).

Make sure you are running the same steps.

If it still doesn't work, @b-matteo could you help @kmahajan-cadfem out? I am full this week... and I couldn't manage to test it on Monday.

He is using ansys-geometry-core==0.3.2 and Geometry Service 23R2 - please verify with his same environment

@RobPasMue @kmahajan-cadfem, sure, i'll take it from here.
I'm following the steps to reproduce and let you know as soon as i find something.

@b-matteo, did you find something in this case, would it work with version or we have to wait until the next version to test out the workflow, it would also be sufficient for the moment if we get the artifact that is mentioned here.

Hi @kmahajan-cadfem , it looks like the Ansys GeometryService (DMS) in 23.2.2 is having issues with the run_discovery_script_file in release. Possible workarounds would be having Ansys SpaceClaim23.2 as backend instead, or switching to Ansys GeometryService (DMS) 24.1 and PyAnsys-Geometry 0.4 as soon as available.

@b-matteo, thanks for confirming and also the workaround.

No problem, apologies for the trouble here.