Julia integration is broken
germa89 opened this issue · comments
Importing PyMAPDL is broken. The following code crashes the terminal:
using PyCall
pymapdl = pyimport("ansys.mapdl.core")
It seems this is due to the helper objects we create in plotting.py
.
pymapdl/src/ansys/mapdl/core/plotting.py
Lines 74 to 147 in 22b85be
One way to mitigate that, is making those objects attributes of a new class:
# Symbols for constrains
class DefaultSymbol:
def __init__(self):
self.TEMP = pv.Sphere(center=(0, 0, 0), radius=0.5)
....
Temporary fix
There are two temporary solutions until I have time to implement the above change.
- Uninstall pyvista from the local python environment (in
PyCall.python
) - If PyMAPDL is installed in editable you can replace the following line 70:
pymapdl/src/ansys/mapdl/core/plotting.py
Line 70 in 22b85be
by:
if _HAS_PYVISTA and False:
import pyvista as pv
But this can create issues later.