# paraview python script, doesn't work properly on remote server

**URL:** https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187
**Category:** ParaView Support
**Tags:** python
**Created:** [March 15, 2022, 4:21pm UTC](https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187 "2022-03-15T16:21:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [March 15, 2022, 4:21pm UTC](https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187/1 "2022-03-15T16:21:47Z")

</div>

Hello, I have the following python script that runs without problem on my local machine.

```auto
from paraview.simple import GetSources

all_sources = GetSources()

for s_string,s_id in all_sources:
    source = all_sources[s_string, s_id]
    print(s_string)
    print(source)
    print(source.SMProxy.GetClientSideObject().GetClassName())

```

which gives, having an OF reader in the pipeline:

```auto
simulation.foam
<paraview.servermanager.OpenFOAMReader object at 0x7ff4f78d4510>
vtkPOpenFOAMReader

```

Now, when I run the same script on the remote server I get

```auto
simulation.foam
<paraview.servermanager.OpenFOAMReader object at 0x7fc088033a10>
Traceback (most recent call last):
  File "<string>", line 24, in <module>
AttributeError: 'NoneType' object has no attribute 'GetClassName'

```

which means that `source.SMProxy.GetClientSideObject()` is `None`.  
The question, do I have to modify something in particular to make it work on a remote server ?  
Thank you for any help.

Edit: Paraview version is

> ParaView-5.8.1-MPI-Linux-Python3.7-64bit

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [March 15, 2022, 6:51pm UTC](https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187/2 "2022-03-15T18:51:41Z")

</div>

`GetClientSideObject` can only work with a built-in setup.

---

<div class="post-metadata">

### Author: ![gv871](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/46a35a/32.png) [@gv871](https://discourse.paraview.org/u/gv871)
#### Post date: [March 15, 2022, 7:14pm UTC](https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187/3 "2022-03-15T19:14:27Z")

</div>

Thank you for your answer, is there any other way I can make it work, especially from the server side ?

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [March 16, 2022, 5:39pm UTC](https://discourse.paraview.org/t/paraview-python-script-doesnt-work-properly-on-remote-server/9187/4 "2022-03-16T17:39:26Z")

</div>

Yes, stay at the proxy layer and don’t try to reach to the VTK one.
