# Error when trying to load module RVesselX

**URL:** <https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493>\
**Category:** Support\
**Created:** [May 19, 2022, 4:08pm UTC](https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493 "2022-05-19T16:08:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n0wm3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/n0wm3/32/15332_2.png) [@n0wm3](https://discourse.slicer.org/u/n0wm3)\
**Post date:** [May 19, 2022, 4:09pm UTC](https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493/1 "2022-05-19T16:09:00Z")

</div>

Hello, I’m trying to install an extension [SilcerRVXLiverSegmentation](https://github.com/R-Vessel-X/SlicerRVXLiverSegmentation), and when I couldn’t load the module.

Here is the error log:  
Traceback (most recent call last):  
File “”, line 1, in   
File “C:\Users\karis\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-18\lib\Python\Lib\imp.py”, line 169, in load\_source  
module = \_exec(spec, sys.modules[name])  
File “”, line 613, in \_exec  
File “”, line 850, in exec\_module  
File “”, line 228, in _call\_with\_frames\_removed  
File “C:/Users/karis/AppData/Local/NA-MIC/Slicer 5.1.0-2022-05-18/NA-MIC/Extensions-30955/RVesselX/lib/Slicer-5.1/qt-scripted-modules/RVXLiverSegmentation.py”, line 8, in   
from RVXLiverSegmentationLib import RVXLiverSegmentationLogic, Settings, DataWidget, addInCollapsibleLayout,   
File "C:\Users\karis\AppData\Local\NA-MIC\Slicer 5.1.0-2022-05-18\NA-MIC\Extensions-30955\RVesselX\lib\Slicer-5.1\qt-scripted-modules\RVXLiverSegmentationLib\_init_.py", line 18, in   
from .VesselHelpWidget import VesselHelpWidget, VesselHelpType  
ModuleNotFoundError: No module named ‘RVXLiverSegmentationLib.VesselHelpWidget’

Does anyone know how to solve this problem? I have no knowledge in Python and am utterly confused.

---

<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:** [May 19, 2022, 8:27pm UTC](https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493/2 "2022-05-19T20:27:30Z")

</div>

The problem was that the developers added a new file (`VesselHelpWidget.py`) but forgot to add to the Slicer extension package. I’ve submitted a pull request that fixes the issue:

> <https://github.com/R-Vessel-X/SlicerRVXLiverSegmentation/pull/5>
>
> Fixes the error
> 
> from .VesselHelpWidget import VesselHelpWidget, VesselHelpTyp…e
> ModuleNotFoundError: No module named ‘RVXLiverSegmentationLib.VesselHelpWidget’

In the meantime, you can download the missing [`VesselHelpWidget.py` file](https://github.com/R-Vessel-X/SlicerRVXLiverSegmentation/blob/main/RVXLiverSegmentation/RVXLiverSegmentationLib/VesselHelpWidget.py) and copy it to `C:/Users/karis/AppData/Local/NA-MIC/Slicer 5.1.0-2022-05-18/NA-MIC/Extensions-30955/RVesselX/lib/Slicer-5.1/qt-scripted-modules/RVXLiverSegmentationLib`

---

<div class="post-metadata">

**Author:** ![n0wm3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/n0wm3/32/15332_2.png) [@n0wm3](https://discourse.slicer.org/u/n0wm3)\
**Post date:** [May 19, 2022, 9:53pm UTC](https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493/3 "2022-05-19T21:53:50Z")

</div>

Thank you so much! This solved my problem.

---

<div class="post-metadata">

**Author:** ![Thibault\_Pelletier](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thibault_pelletier/32/4767_2.png) [@Thibault\_Pelletier](https://discourse.slicer.org/u/Thibault_Pelletier)\
**Post date:** [May 20, 2022, 6:25am UTC](https://discourse.slicer.org/t/error-when-trying-to-load-module-rvesselx/23493/4 "2022-05-20T06:25:32Z")

</div>

Thanks @n0wm3 for reporting this bug and thanks @lassoan for submitting the fix.  
I have merged the PR, so this issue should be fixed for the next extension release.

Don’t hesitate to reach out to us if you have any question or feedback regarding this extension!
