import numpy and scipy in SpaceClaim script

  • 329 Views
  • Last Post 05 February 2020
  • Topic Is Solved
pinkerthoms posted this 12 September 2019

Hi, 

I'm currently working on a CST parametrization for airfoils.
To achieve this parametrization, a python script has been written. This script uses numpy and scipy functions, and works well when it is launched on Anaconda Spyder.
However, these modules are not available in SpaceClaim. So I try to copy/paste numpy and scipy's folders inside ANSYS one, and launch : 

   import sys   
   sys.path.append("C:\Program Files\ANSYS Inc\ANSYS Student\Custom\lib")
   import numpy

But I have this error : cannot import _mklinit from numpy


Can you help me to import them ? Or maybe is there a way to call Spyder inside SpaceClaim ?
Thanks,

Thomas.

pinkerthoms posted this 05 February 2020

A solution here : https://studentcommunity.ansys.com/thread/script-in-spaceclaim-problem/

Close