# 'vtkSlicerOpenIGTLinkIFModuleMRMLPython.vtkMRMLIGTL' has no attribute 'ReceiveEvent'

**URL:** https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387
**Category:** Development
**Created:** [September 8, 2020, 10:22am UTC](https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387 "2020-09-08T10:22:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luigi-palladino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/luigi-palladino/32/8323_2.png) [@luigi-palladino](https://discourse.slicer.org/u/luigi-palladino)
#### Post date: [September 8, 2020, 10:22am UTC](https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387/1 "2020-09-08T10:22:30Z")

</div>

Hi,

I got this issue executing this code on Slicer 4.11.0-2019-09-25:

```
    def addConnectorObservers(self):
       eventON = [slicer.vtkMRMLIGTLConnectorNode.ConnectedEvent, self.onStatus]
       self.cnode.AddObserver(eventON[0], eventON[1])
       eventOFF = [slicer.vtkMRMLIGTLConnectorNode.DisconnectedEvent, self.onStatus]
       self.cnode.AddObserver(eventOFF[0], eventOFF[1])
       eventWAIT = [slicer.vtkMRMLIGTLConnectorNode.ActivatedEvent, self.onStatus]
       self.cnode.AddObserver(eventWAIT[0], eventWAIT[1])
       eventRECEIVE = [slicer.vtkMRMLIGTLConnectorNode.ReceiveEvent, self.onStatus]#tof
       self.cnode.AddObserver(eventRECEIVE[0], eventRECEIVE[1]) #tof

```

And I got this error:

`AttributeError: type object 'vtkSlicerOpenIGTLinkIFModuleMRMLPython.vtkMRMLIGTL' has no attribute 'ReceiveEvent'`

Executing the same code on Slicer 4.8.1 it works fine.

Reading the doc it says that the VTK version was downgraded from 9.0 to 8.5.  
Could this be related to this issue?  
How could I fix this?

Thank you.

---

<div class="post-metadata">

### Author: ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)
#### Post date: [September 8, 2020, 1:12pm UTC](https://discourse.slicer.org/t/vtksliceropenigtlinkifmodulemrmlpython-vtkmrmligtl-has-no-attribute-receiveevent/13387/2 "2020-09-08T13:12:40Z")

</div>

Between Slicer 4.8.1 and Slicer 4.10.2, the OpenIGTLinkIF module was reworked and moved to an extension. Probably the events were not migrated with the rest of the functionality. I’ll let you know when I’ve re-added the events.
