Ansys Free Student Software

Ansys Free Student Software

Topics cover installation and configuration of our free student products.

PyANSYS Geometry

    • Zara Hamilton
      Subscriber

      Hi Trying to use the Geometry module but it say sits not compatable.

      -----------------------------------------------------------------------------------------------------------------------

      Code 

      from skimage import io, exposure, filters, measure, morphology
      from skimage.measure import marching_cubes
      import matplotlib.pyplot as plt
      import numpy as np
      #import pyansys

      import pyvista as pv

      from ansys.mapdl.core import launch_mapdl

      from ansys.geometry.core import launch_modeler_with_spaceclaim

      # File path to the image stack
      file_path = 'myfilepath'

      # Load the images stack
      images = io.imread(file_path)

      # Preprocess and segment 
      images_eq = [exposure.equalize_hist(img) for img in images]
      thresholded_images = [img > filters.threshold_otsu(img) for img in images_eq]
      cleaned_images = [morphology.remove_small_objects(img, min_size=50) for img in thresholded_images]

      modoler_discovery= launch_modeler_with_spaceclaim()
       
      ------------------------------------------------------------------------------------------------------------------------------------------------
      Error
       
      CRITICAL -  -  logger - handle_exception - Uncaught exception
      Traceback (most recent call last):
        File "File_being_ran", line 24, in
          modoler_discovery= launch_modeler_with_spaceclaim()
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Users\miniconda3\Lib\site-packages\ansys\geometry\core\connection\launcher.py", line 566, in launch_modeler_with_spaceclaim   
          return prepare_and_start_backend(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Users\miniconda3\Lib\site-packages\ansys\geometry\core\connection\product_instance.py", line 236, in prepare_and_start_backend
          _check_minimal_versions(product_version)
        File "C:\Users\Users\miniconda3\Lib\site-packages\ansys\geometry\core\connection\product_instance.py", line 373, in _check_minimal_versions  
          raise SystemError(msg)
      SystemError: PyAnsys Geometry is compatible with Ansys Products from version 23.2.1. Please install Ansys products 23.2.1 or later.
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      I have the latest version of ansys
    • mrife
      Ansys Employee

      Hi Zara 

      Support for PyAnsys 'products' are normally done via their GitHub pages.  Please ask this here and be prepared with proof of version and also what license is being used to run SCDM.  

      https://github.com/ansys/pyansys-geometry/discussions

      You should/could also use Pip to get the package information for the Python install and include that (to show the version of PyAnsys Geometry installed etc).

       

      Mike

       

    • Zara Hamilton
      Subscriber

       

      Thank you, I have posted there…. I think this might be license issue? do you know if there are limitations of student license through pyansys?

       

Viewing 2 reply threads
  • The topic ‘PyANSYS Geometry’ is closed to new replies.