# Pick and Paint SyntaxError

**URL:** <https://discourse.slicer.org/t/pick-and-paint-syntaxerror/10924>\
**Category:** Support\
**Tags:** extensions-manager\
**Created:** [March 31, 2020, 12:14am UTC](https://discourse.slicer.org/t/pick-and-paint-syntaxerror/10924 "2020-03-31T00:14:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maila\_Portes](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/maila_portes/32/6412_2.png) [@Maila\_Portes](https://discourse.slicer.org/u/Maila_Portes)\
**Post date:** [March 31, 2020, 12:14am UTC](https://discourse.slicer.org/t/pick-and-paint-syntaxerror/10924/1 "2020-03-31T00:14:11Z")

</div>

Operating system: win10  
Slicer version: 4.10.2  
Expected behavior:  
Actual behavior:  
I´ve installed the extesion PickAndPaint but this error message appears  
File “C:/Users/myuser/AppData/Roaming/NA-MIC/Extensions-28257/PickAndPaintExtension/lib/Slicer-4.10/qt-scripted-modules/PickAndPaint.py”, line 569  
landmarks.SetAttribute(“arrayName”, f’{model.GetName()}\_{landmarks.GetName()}\_ROI’)  
^  
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:** [March 31, 2020, 3:07am UTC](https://discourse.slicer.org/t/pick-and-paint-syntaxerror/10924/2 "2020-03-31T03:07:24Z")

</div>

Pick and Paint extension was updated to be compatible with Slicer-4.11 and these changes were not compatible with Slicer-4.10 anymore. I’ve now updated the extension index to use the old version for Slicer-4.10 and the current version for Slicer-4.11.

You can use Pick and Paint extension in Slicer-4.11 now. If you reinstall Pick and Paint extension in Slicer-4.10 tomorrow then it should work, too.
