# ResectionPlanner

**URL:** <https://discourse.slicer.org/t/resectionplanner/16868>\
**Category:** Support\
**Created:** [March 31, 2021, 7:55am UTC](https://discourse.slicer.org/t/resectionplanner/16868 "2021-03-31T07:55:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [March 31, 2021, 7:55am UTC](https://discourse.slicer.org/t/resectionplanner/16868/1 "2021-03-31T07:55:37Z")

</div>

Hi,  
I am unable to download the extension inside 3d slicer ResectionPlanner.  
Could you please help.

Regards,  
Saima Safdar

[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux2

> > >

Traceback (most recent call last):  
File “”, line 1, in   
File “/home/saima/Downloads/Slicer-4.11.20200930-linux-amd64/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 “/home/saima/.config/NA-MIC/Extensions-29402/ResectionPlanner/lib/Slicer-4.11/qt-scripted-modules/ResectionVolume.py”, line 229  
except Exception, e:  
^  
SyntaxError: invalid syntax

---

<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:** [April 3, 2021, 2:06am UTC](https://discourse.slicer.org/t/resectionplanner/16868/2 "2021-04-03T02:06:05Z")

</div>

The resection planner modules has not yet been updated to Python3 syntax. If you can, please fix the syntax errors and send a pull request with the proposed changes. If you google for the syntax error then usually you can find the instructions how to fix it but if you get stuck with any particular change then let us know.

---

<div class="post-metadata">

**Author:** ![J.vd.Zee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/j.vd.zee/32/15064_2.png) [@J.vd.Zee](https://discourse.slicer.org/u/J.vd.Zee)\
**Post date:** [September 1, 2021, 2:31pm UTC](https://discourse.slicer.org/t/resectionplanner/16868/3 "2021-09-01T14:31:04Z")

</div>

Hi, is this problem fixed yet? Since, I installed the Resection Planner Extension, it won’t show up in my available modules. Looking forward to hearing from you!

---

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [September 3, 2021, 6:00am UTC](https://discourse.slicer.org/t/resectionplanner/16868/4 "2021-09-03T06:00:43Z")

</div>

Hi,  
I just went to page

> <https://github.com/SlicerIGT/ResectionPlanner/blob/master/ResectionVolume/ResectionVolume.py>

I used the logic implemented.

Regards,  
Saima Safdar
