JuliaPy / JuliaPy/PyCall.jl

REPL crashes when importing pyvista objects

Open
#1,080 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Hi there,

Let say you have a python package (``mypackage``)
```py
from mypackage.mymodule import another
```
This package has a module (``mymodule.py``) which contains:

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

then, when you want to import it, it crashes the terminal
```jl
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.