pyAnsys Geometry errors opening file

willblatt
willblatt Member Posts: 13
Name Dropper First Comment
**

Trying to open an existing SpaceClaim file using ansys.geometry and no matter what I do, I get this error:

from ansys.geometry.core import launch_modeler_with_spaceclaim
modeler = launch_modeler_with_spaceclaim()
modeler.open_file("airfoil.scdoc")                                                 
CRITICAL -  -  logger - handle_exception - Uncaught exception
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\mambaforge\envs\ansys\Lib\site-packages\ansys\geometry\core\errors.py", line 101, in wrapper
    raise GeometryExitedError(
ansys.geometry.core.errors.GeometryExitedError: Geometry service connection terminated:

That file exists (and is in the working directory) and SpaceClaim opens fine when launched but I get that error every time.

Answers

  • willblatt
    willblatt Member Posts: 13
    Name Dropper First Comment
    **

    and just to check, the same error appears when I give it the full path to the .scdoc file.

  • RobPasMue
    RobPasMue Member, Employee, GitHub-issue-creator Posts: 12
    10 Comments First Answer Name Dropper First Anniversary
    ✭✭✭

    Hi @willblatt! Quick questions before anything...

    • What version of SpaceClaim are you using?
    • What version of PyAnsys Geometry are you using (ansys-geometry-core)?
  • willblatt
    willblatt Member Posts: 13
    Name Dropper First Comment
    **

    SpaceClaim: 2023R2 (2023.2.0.05153)

    ansys.geometry.core.__version__
    '0.4.3'

  • willblatt
    willblatt Member Posts: 13
    Name Dropper First Comment
    **

    And reading deeper into the docs after your question, I see:

    Downloading the latest version to test with now.