# Import Error: No module named selection

**URL:** https://discourse.paraview.org/t/import-error-no-module-named-selection/4372
**Category:** ParaView Support
**Created:** [May 20, 2020, 3:45am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372 "2020-05-20T03:45:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![carl](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@carl](https://discourse.paraview.org/u/carl)
#### Post date: [May 20, 2020, 3:45am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372/1 "2020-05-20T03:45:05Z")

</div>

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](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.

> [@Selecting Cells on Patch Surface](https://discourse.paraview.org/t/selecting-cells-on-patch-surface/4365/3):
>
> Mathieu, Thanks for the help, what you propose should work, however when I try and select the cells with Find Data I get an error. This is for a simple case where i import my multi-block data and then try to select the cells on the Block ID associated with my patch (Block ID = 7). What am I doing something wrong?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/9b5a263597fe2f52e79d0c2fa2ad6be096d84f22.png)

---

<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: [May 20, 2020, 4:31am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372/2 "2020-05-20T04:31:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![hdz19900725](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hdz19900725/32/7157_2.png) [@hdz19900725](https://discourse.paraview.org/u/hdz19900725)
#### Post date: [May 31, 2020, 5:35am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372/3 "2020-05-31T05:35:49Z")

</div>

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

---

<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: [June 1, 2020, 1:26am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372/4 "2020-06-01T01:26:12Z")

</div>

Are you using ParaView for windows ?

---

<div class="post-metadata">

### Author: ![hdz19900725](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hdz19900725/32/7157_2.png) [@hdz19900725](https://discourse.paraview.org/u/hdz19900725)
#### Post date: [June 1, 2020, 8:33am UTC](https://discourse.paraview.org/t/import-error-no-module-named-selection/4372/5 "2020-06-01T08:33:41Z")

</div>

Yes，I use paraview 5.6 for Windows. But yesterday I found that in paraview 5.8 for Windows there is selection module，so I will use Paraview 5.8.
