# SEEGA extension not working with Slicer stable release

**URL:** <https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431>\
**Category:** Support\
**Created:** [November 4, 2020, 2:17pm UTC](https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431 "2020-11-04T14:17:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BushraR](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bushrar/32/10743_2.png) [@BushraR](https://discourse.slicer.org/u/BushraR)\
**Post date:** [November 4, 2020, 2:17pm UTC](https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431/1 "2020-11-04T14:17:39Z")

</div>

Hello,  
I am new to this community. I am using SEEGA extension with the slicer stable release 4.11. It seems that author of that extension doesn’t read this forum and I have already seen someone else reporting the error that SEEGA extension is giving errors with stable release on extension’s github repository. I am using stable release to avail Freesurfer slicer extension capabilities ( and it is not available for previous versions).  
Now the error I am getting with SEEGA extension (shown below) is what I have seen being reported before as well.  
Is there any quick fix for SEEG extension that I can do myself to be able to use it for latest slicer release. Thank you  
Traceback (most recent call last):  
File “”, line 1, in   
File “/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/imp.py”, line 170, in load\_source  
module = \_exec(spec, sys.modules[name])  
File “”, line 618, in \_exec  
File “”, line 674, in exec\_module  
File “”, line 781, in get\_code  
File “”, line 741, in source\_to\_code  
File “”, line 219, in \_call\_with\_frames\_removed  
File “/Users/busria/Downloads/SEEGA-master/BrainZoneDetector/BrainZoneDetector.py”, line 52  
print self.lutPath

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 4, 2020, 2:35pm UTC](https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431/2 "2020-11-04T14:35:23Z")

</div>

Slicer-4.11 uses Python3, while the previous version used Python2. There are a few trivial syntax differences, which you should be able fix on your own.

For example, the first error that you see here is that `print self.lutPath` is not valid syntax in Python3 and you need to change it to `print(self.lutPath)` (in line 52 of “/Users/busria/Downloads/SEEGA-master/BrainZoneDetector/BrainZoneDetector.py”). If you fix this an error and restart Slicer then you’ll see the next error. If you have trouble with any specific error then let us know.

Once you are done, you can submit the fixes as a “pull request” to the original repository.

---

<div class="post-metadata">

**Author:** ![BushraR](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bushrar/32/10743_2.png) [@BushraR](https://discourse.slicer.org/u/BushraR)\
**Post date:** [November 4, 2020, 2:41pm UTC](https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431/3 "2020-11-04T14:41:47Z")

</div>

Thank you so much  
I have fixed all the errors, teh only one I am bit confuse is this line  
self.electrodeList = sorted(self.electrodeList,key=lambda (x): x.name.text)  
I only changed it to this to make it work  
self.electrodeList = sorted(self.electrodeList,key=lambda x: x.name.text)

Is this correct?  
Thank you so much for the help

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 4, 2020, 6:37pm UTC](https://discourse.slicer.org/t/seega-extension-not-working-with-slicer-stable-release/14431/4 "2020-11-04T18:37:12Z")

</div>

> [@BushraR](#):
>
> I only changed it to this to make it work  
> self.electrodeList = sorted(self.electrodeList,key=lambda x: x.name.text)
> 
> Is this correct?

Yes, it is correct.  
.
