# Paraview 5.12 RC1 Error

**URL:** https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460
**Category:** ParaView Support
**Created:** [December 7, 2023, 11:46am UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460 "2023-12-07T11:46:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [December 7, 2023, 11:46am UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/1 "2023-12-07T11:46:53Z")

</div>

Hello,

I’m testing the RC1 of version 5.12 and when I try to import the paraview.simple module to use it in a python script I get the following error:

```auto
ModuleNotFoundError: No module named '_paraview_modules_static'

During handling of the above exception, another exception occurred

```

I have added the following directories to the path:

```auto
    directories = [
        "lib/python310.zip"),
         f"lib/python3.10"),
        f"lib/python3.10/lib-dynload"),
        f"lib/python3.10/site-packages"),
    ]

```

If I use pvpython to run my script everything is fine.

Do you have any idea of why?

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [December 7, 2023, 12:17pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/2 "2023-12-07T12:17:52Z")

</div>

Hi !

to import paraview modules from external python, you should ensure different things are ok:

- python version should match the one from pvpython
- paraview modules should be added in `PYTHONPATH` environment
- paraview lib should be added in `PATH` or `LD_LIBRARY_PATH` on linux

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [December 7, 2023, 12:51pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/3 "2023-12-07T12:51:51Z")

</div>

> [@nicolas.vuaille](#):
>
> paraview lib should be added in `PATH` or `LD_LIBRARY_PATH` on linux

Hello,

can you provide a LD\_LIBRARY\_PATH example to see which directory I have to include. I just want to be sure on that

Best regards

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [December 7, 2023, 1:35pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/4 "2023-12-07T13:35:09Z")

</div>

I think something like

```auto
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<pvdir>/lib

```

where `<pvdir>` is the root dir of your pv install

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [December 7, 2023, 2:16pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/5 "2023-12-07T14:16:50Z")

</div>

> [@nicolas.vuaille](#):
>
> `=${LD_LIBRARY_PATH}:`

Does not solve the issue, I get the same error.  
If I use a lower version of paraview is fine.

Any other suggestion?

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [December 7, 2023, 2:39pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/6 "2023-12-07T14:39:56Z")

</div>

Do you have more info in the error message ?

Here is also a similar bug: [https://gitlab.kitware.com/paraview/paraview/-/issues/19667#note\_695024](https://gitlab.kitware.com/paraview/paraview/-/issues/19667#note_695024) (older version and windows)

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [December 7, 2023, 2:55pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/7 "2023-12-07T14:55:53Z")

</div>

It is exactly the same bug, but there is no RC candidate without MPI to test the solution.  
(I use Linux)

For reference 5.10.1 does not have this bug and works fine

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [December 7, 2023, 3:01pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/8 "2023-12-07T15:01:58Z")

</div>

maybe @ben.boeckel can have more input there

---

<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: [December 11, 2023, 6:33pm UTC](https://discourse.paraview.org/t/paraview-5-12-rc1-error/13460/9 "2023-12-11T18:33:59Z")

</div>

How does 5.11 behave? Note that the `_paraview_modules_static` module is a fallback if the normal on-disk ones aren’t found.
