# Paraview 5.12.0: pvpython segmentation error with python 3.12.2

**URL:** https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162
**Category:** ParaView Support
**Tags:** python
**Created:** [March 14, 2024, 6:42pm UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162 "2024-03-14T18:42:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JasiHime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jasihime/32/13939_2.png) [@JasiHime](https://discourse.paraview.org/u/JasiHime)
#### Post date: [March 14, 2024, 6:42pm UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162/1 "2024-03-14T18:42:07Z")

</div>

Hello

I am trying to build ParaView without X on Oracle Linux 9. I am using python 3.12.2, that I also build myself (with -fPIC). The build goes through just fine. Here my build parameters:

```auto
cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release -DPARAVIEW_USE_QT=OFF -DVTK_USE_X=OFF -DVTK_OPENGL_HAS_EGL=ON -DVTK_PYTHON_OPTIONAL_LINK=OFF ../paraview

```

Now when I am trying to run pypython I get the following error:

```auto
***Process received signal***
Signal: Segmentation fault (11)
Signal code: Address not mapped (1)
Failing at address: 0x10
[0] /lib64/libc.so.6(+0x54db0)[0x7feeb06eedb0]
[1] /mnt/software/paraview/5.12.0_py-3.12.2/bin/../lib64/libvtkPythonInterpreter-pv5.12.so.1(+0xe8507)[0x7feeae615507]
[2] /mnt/software/paraview/5.12.0_py-3.12.2/bin/../lib64/libvtkPythonInterpreter-pv5.12.so.1(Py_RunMain+0x16)[0x7feeae616236]
[3] /mnt/software/paraview/5.12.0_py-3.12.2/bin/../lib64/libvtkPythonInterpreter-pv5.12.so.1(_ZN20vtkPythonInterpreter6PyMainEiPPc+0x2bc)[0x7feeae613dfc]
[4] bin/pvpython[0x430a44]
[5] /lib64/libc.so.6(+0x3feb0)[0x7feeb06d9eb0]
[6] /lib64/libc.so.6(__libc_start_main+0x80)[0x7feeb06d9f60]
[7] bin/pvpython[0x4304f5]
***End of error message***
Segmentation fault (core dumped)

```

I could not figure out what the issue was, so I downgraded python to 3.11.8 and otherwise left everything the same and the software works without problem. Do you have any idea where this is coming from? Is this an issue with ParaView and the newest python version?

Any help is very welcome!  
Jasmin

---

<div class="post-metadata">

### Author: ![JasiHime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jasihime/32/13939_2.png) [@JasiHime](https://discourse.paraview.org/u/JasiHime)
#### Post date: [March 21, 2024, 3:06pm UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162/2 "2024-03-21T15:06:05Z")

</div>

Still stuck here, has anyone else been able to replicate this issue? Anyone have a hunch where the problem could be?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 21, 2024, 4:43pm UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162/3 "2024-03-21T16:43:51Z")

</div>

I’m afraid not many people must be compiling ParaView with Python 3.12.

@Charles_Gueunet was able to build ParaView with Python 3.12 and it was mostly working except some numpy issue.

---

<div class="post-metadata">

### Author: ![Charles\_Gueunet](https://discourse.paraview.org/user_avatar/discourse.paraview.org/charles_gueunet/32/40_2.png) [@Charles\_Gueunet](https://discourse.paraview.org/u/Charles_Gueunet)
#### Post date: [March 25, 2024, 10:52am UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162/4 "2024-03-25T10:52:21Z")

</div>

I can confirma I was able to Run with Python 3.12, MPI. Only the FindData had issue because of numpy not found, certainly because of a configuration missing on my system.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 1, 2024, 9:02pm UTC](https://discourse.paraview.org/t/paraview-5-12-0-pvpython-segmentation-error-with-python-3-12-2/14162/5 "2024-04-01T21:02:12Z")

</div>

> [@JasiHime](#):
>
> Do you have any idea where this is coming from? Is this an issue with ParaView and the newest python version?

It’s hard to say without digging more. Possible causes include mismatches in the Python headers and libraries used during the build and at runtime. Python 3.12 could also have changed initialization behaviors, but I would expect VTK to catch that in its testing.
