# AttributeError: 'vtkPVServerManagerCorePython.vtkSMInputProperty' object has no attribute 'Port'

**URL:** https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004
**Category:** ParaView Support
**Created:** [November 19, 2019, 12:34pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004 "2019-11-19T12:34:31Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Richard](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@Richard](https://discourse.paraview.org/u/Richard)
#### Post date: [November 19, 2019, 12:34pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/1 "2019-11-19T12:34:31Z")

</div>

Just reproducing first tutorial

```
>>> from paraview.simple import *
>>> Sphere()
<paraview.servermanager.Sphere object at 0x7f3c192b00d0>
>>> Show()
<paraview.servermanager.GeometryRepresentation object at 0x7f3c192b0fd0>
>>> Render()
<paraview.servermanager.RenderView object at 0x7f3c192b00d0>
>>> Shrink()
<paraview.servermanager.Shrink object at 0x7f3c19274550>
>>> Show()
<paraview.servermanager.UnstructuredGridRepresentation object at 0x7f3c19274f50>
>>> Render()
<paraview.servermanager.RenderView object at 0x7f3c19274550>
>>> shrinksInput = GetProperty("Input")
>>> print shrinksInput
<paraview.servermanager.Sphere object at 0x7f3c192b00d0>
>>> Hide(shrinksInput)
 
And this is what I get

Traceback (most recent call last):

File "<console>", line 1, in <module>

File "C:\Program Files\ParaView 5.7.0\bin\Lib\site-packages\paraview\simple.py", line 539, in Hide

controller.Hide(proxy, proxy.Port, view)

File "C:\Program Files\ParaView 5.7.0\bin\Lib\site-packages\paraview\servermanager.py", line 1279, in __getattr__

return getattr(self.SMProperty, name)

AttributeError: 'vtkPVServerManagerCorePython.vtkSMInputProperty' object has no attribute 'Port'

```

Any tips?

---

<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: [November 19, 2019, 1:04pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/2 "2019-11-19T13:04:24Z")

</div>

`shrinksInput = GetProperty("Input")`

is wrong. Where is this tutorial from ? What are you trying to achieve ?

---

<div class="post-metadata">

### Author: ![Richard](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@Richard](https://discourse.paraview.org/u/Richard)
#### Post date: [November 19, 2019, 1:18pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/3 "2019-11-19T13:18:28Z")

</div>

Well This is a typo from my side, I meant

shrinksInput = GetProperty(“Input”)

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

---

<div class="post-metadata">

### Author: ![Richard](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@Richard](https://discourse.paraview.org/u/Richard)
#### Post date: [November 19, 2019, 1:20pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/4 "2019-11-19T13:20:18Z")

</div>

Sorry! No Typo! In that case what the tutorial is specifying is incorrect

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/d07f91bd65cd95cc766d54a40efe21e4fd7a0837.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: [November 19, 2019, 1:24pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/5 "2019-11-19T13:24:22Z")

</div>

My bad, this is an error in the ParaView Guide. The script should be :

```
 Show()
 Render()
 shrink=Shrink()
 Show()
 Render()
 shrinksInput = shrink.Input
 print shrinksInput
 Hide(shrinksInput)
```

---

<div class="post-metadata">

### Author: ![Richard](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@Richard](https://discourse.paraview.org/u/Richard)
#### Post date: [November 19, 2019, 1:29pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/6 "2019-11-19T13:29:42Z")

</div>

Thank you Mathieu but still very weird! Look

> > > shrinksInput1 = shrink.Input  
> > > print(shrinksInput1)  
> > > \<paraview.servermanager.Sphere object at 0x0000024DA6CF0EC8\>  
> > > shrinksInput2 = shrink.GetProperty(“Input”)  
> > > print(shrinksInput2)  
> > > \<paraview.servermanager.Sphere object at 0x0000024DA6CF0EC8\>  
> > > Hide(shrinksInput1)  
> > > Hide(shrinksInput2)  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > File “C:\Program Files\ParaView 5.7.0\bin\Lib\site-packages\paraview\simple.py”, line 539, in Hide  
> > > controller.Hide(proxy, proxy.Port, view)  
> > > File “C:\Program Files\ParaView 5.7.0\bin\Lib\site-packages\paraview\servermanager.py”, line 1279, in **getattr**  
> > > return getattr(self.SMProperty, name)  
> > > AttributeError: ‘vtkPVServerManagerCorePython.vtkSMInputProperty’ object has no attribute ‘Port’

---

<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: [November 19, 2019, 1:32pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/7 "2019-11-19T13:32:47Z")

</div>

if you run,

```
help(shrinksInput1)
help(shrinksInput2)

```

It will be much clearer why the second one fails.

---

<div class="post-metadata">

### Author: ![Richard](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f0a364/32.png) [@Richard](https://discourse.paraview.org/u/Richard)
#### Post date: [November 19, 2019, 1:34pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/8 "2019-11-19T13:34:51Z")

</div>

Thank you! Will you update the manual?

---

<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: [November 19, 2019, 1:35pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/9 "2019-11-19T13:35:50Z")

</div>

I will !

---

<div class="post-metadata">

### Author: ![Ali\_Abbas](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ali_abbas/32/13703_2.png) [@Ali\_Abbas](https://discourse.paraview.org/u/Ali_Abbas)
#### Post date: [April 16, 2024, 6:23pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/10 "2024-04-16T18:23:53Z")

</div>

The guide still needs to be updated.

---

<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: [April 16, 2024, 6:27pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/11 "2024-04-16T18:27:25Z")

</div>

You would be welcome to take care of updating it 🙂

You can contribute to the guide here: [https://gitlab.kitware.com/paraview/paraview-docs/](https://gitlab.kitware.com/paraview/paraview-docs/)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 17, 2024, 1:46pm UTC](https://discourse.paraview.org/t/attributeerror-vtkpvservermanagercorepython-vtksminputproperty-object-has-no-attribute-port/3004/13 "2024-07-17T13:46:05Z")

</div>

Merge request posted: [https://gitlab.kitware.com/paraview/paraview-docs/-/merge\_requests/93](https://gitlab.kitware.com/paraview/paraview-docs/-/merge_requests/93)
