JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.45k stars 186 forks source link

REPL crashes when importing pyvista objects #1080

Open germa89 opened 3 months ago

germa89 commented 3 months ago

Hi there,

Let say you have a python package (mypackage)

from mypackage.mymodule import another

This package has a module (mymodule.py) which contains:

import pyvista as pv
att = pv.Sphere()
another="var"

then, when you want to import it, it crashes the terminal

using PyCall
mymod = pyimport("mymodule.py")

The problem seems to happen with Pyvista and Julia, where the object generated (att=pv.Sphere()) crashes the REPL.

I tested this with Julia Version 1.10.2 (2024-03-01), and Windows 11.

Related issues: https://github.com/ansys/pymapdl/issues/2872 https://github.com/pyvista/pyvista/issues/5765