using Python shell inside ParaView


I am trying to run scripts from ParaView’s built-in Python shell, but I started getting a weird error which was not happening before:

Python 3.9.5 (default, Mar 14 2022, 17:13:12) 
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
>>> import sys
>>> print(sys.path)
['/ccc/scratch/cont003/gen7178/alvesrig/ic3/fine-hex', '/ccc/cont003/home/isae/alvesrig/dhanush/includes', '/ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/', '/ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9', '/ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9/lib-dynload', '/ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9/site-packages']
>>> from paraview.simple import *
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/ccc/scratch/cont003/gen7178/alvesrig/ic3/fine-hex/", line 24, in <module>
    from paraview.simple import *
ModuleNotFoundError: No module named 'paraview.simple'; 'paraview' is not a package

Here is the version I am using:

Client Information:
Version: 5.10.1
VTK Version: 9.0.20210922
Qt Version: 5.12.9
vtkIdType size: 64bits
Embedded Python: On
Python Library Path: /ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9
Python Library Version: 3.9.5 (default, Mar 14 2022, 17:13:12) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
Python Numpy Support: On
Python Numpy Path: /ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9/site-packages/numpy
Python Numpy Version: 1.21.1
Python Matplotlib Support: On
Python Matplotlib Path: /ccc/cont003/dsku/blanchet/home/user/isae/alvesrig/ParaView/5.10.1/lib/python3.9/site-packages/matplotlib
Python Matplotlib Version: 3.2.1
Python Testing: Off
MPI Enabled: On
ParaView Build ID: superbuild 6dd132601dbb2a9ebdc0d31825989f5b92595b76 (!969)
Disable Registry: Off
Test Directory:
Data Directory:
SMP Backend: TBB
SMP Max Number of Threads: 72
OpenGL Vendor: NVIDIA Corporation
OpenGL Version: 3.2.0 NVIDIA 440.64.00
OpenGL Renderer: Tesla V100-PCIE-32GB/PCIe/SSE2

Connection Information:
Remote Connection: No

It is just the standard version you download from ParaView’s website. Could you help me understand what is causing this issue? Could it be that I am currently using the same ParaView installation in a Slurm job (running at this moment)?

Kind regards,

Can you try with the last release, 5.11.0 ?

Thanks Mathieu for your reply. The problem solved by itself. It can only be that the built-in Python shell gets somehow confused if pvbatch (from the same ParaView installation) is running in the background…