Import Error: No module named selection

Hi,
I’m trying to use the selection module in ParaView 5.6.0, but when I run simple script I get the error:
Import Error: No module named selection.

I’m using the simple example on lines 4-27
https://github.com/Kitware/ParaView/blob/master/Wrapping/Python/paraview/selection.py

I assume its an environment variable issue. I can run scripts requiring the simple module. I’m using Ubuntu on Windows 10. I’m using paraFoam, the install which comes with OpenFoam (CFD software)

After much searching around I’ve tried to set the environment variables correctly, but this is not my area of expertise and they could be incorrect. Any help would be gratefully appreciated.

which python
/usr/bin/python

echo $LD_LIBRARY_PATH
/opt/ThirdParty-7/platforms/linux64Gcc/gperftools-svn/lib:/opt/paraviewopenfoam56/lib/paraview-5.6:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-7/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/carl/OpenFOAM/carl-7/platforms/linux64GccDPInt32Opt/lib:/opt/site/7/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-7/platforms/linux64GccDPInt32/lib:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib/dummy

echo $PYTHONPATH
/opt/paraviewopenfoam56/lib/python2/:/opt/paraviewopenfoam56/lib/python2/site-packages/:/opt/paraviewopenfoam56/lib/python2.site-packages/vtk/

I also have another issue i requested help with. I suspect its also linked to this.

You should use ParaView for Windows. You can download it from here :
https://www.paraview.org/download/

I have the same problem,and on Windows there is also no selection module. Do you know how to fix that? Thanks.

Are you using ParaView for windows ?