# Feature Error in python

**URL:** <https://discourse.slicer.org/t/feature-error-in-python/24428>\
**Category:** Radiomics\
**Created:** [July 21, 2022, 8:56am UTC](https://discourse.slicer.org/t/feature-error-in-python/24428 "2022-07-21T08:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Van\_Tran\_Sang\_Huynh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/van_tran_sang_huynh/32/15043_2.png) [@Van\_Tran\_Sang\_Huynh](https://discourse.slicer.org/u/Van_Tran_Sang_Huynh)\
**Post date:** [July 21, 2022, 8:56am UTC](https://discourse.slicer.org/t/feature-error-in-python/24428/1 "2022-07-21T08:56:36Z")

</div>

I use python pyrradiomics to extract features for .nrrd images. And I got an error…  
how can i fix it. Please help!!!  
Respect  
Sang  
I use code

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/7/777318878b6693695a64b1eb8b5ea3c5b3d63ec8.png)  
And error…  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/1/61a824f1f0d84736c7ae7d61f35980a20656a704.png)

---

<div class="post-metadata">

**Author:** ![edwardwang1](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@edwardwang1](https://discourse.slicer.org/u/edwardwang1)\
**Post date:** [July 21, 2022, 5:23pm UTC](https://discourse.slicer.org/t/feature-error-in-python/24428/2 "2022-07-21T17:23:36Z")

</div>

Hi Sang,

It looks to me like you are trying to assign a single file path (Lung-001.nrrd) to both imagePath and maskPath. What is your the path to your mask?

imagePath, maksPath = “C:/Users/Admin/Downloads/LUNG1-001.nrrd”, PATH\_TO\_MASK
