# Compare Volumes module does not work on Slicer-5.4

**URL:** <https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142>\
**Category:** Support\
**Created:** [October 10, 2023, 12:45pm UTC](https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142 "2023-10-10T12:45:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)\
**Post date:** [October 10, 2023, 12:45pm UTC](https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142/1 "2023-10-10T12:45:39Z")

</div>

Hi there,  
I recently downloaded the latest stable version of Slicer (5.4.0) for Windows and the module compare volumes doesn’t seem to work any more (the module appears empty when I select it). Is it just me? Do you now if it works properly in subsequent nightly built versions?

thank you very much

MB

---

<div class="post-metadata">

**Author:** ![moraleda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moraleda/32/77356_2.png) [@moraleda](https://discourse.slicer.org/u/moraleda)\
**Post date:** [October 10, 2023, 1:15pm UTC](https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142/2 "2023-10-10T13:15:15Z")

</div>

Hi Michele,  
I was just about to create a new topic on this problem. Yes, I have Slicer 5.4 on MacOS and Linux and on both it does not work.

It seems to me that the UI file was deleted. This is the error I am getting:

```auto
self.reloadAndTestButton.toolTip = "Reload this module and then run the %s self test." % scenario
AttributeError: 'CompareVolumesWidget' object has no attribute 'reloadAndTestButton'

```

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 10, 2023, 1:36pm UTC](https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142/3 "2023-10-10T13:36:56Z")

</div>

Yes, this was a regression in 5.4. You can use the latest preview or older release for now.

> <https://github.com/Slicer/Slicer/commit/8c92a12d6acecde092439981af70b1a27b6d2cf1>
>
> Ensure that a tooltip is associated with each "scenario" button displayed when e…nabling developer mode.
> 
> https://github.com/pieper/CompareVolumes/commit/cb755dda78f726cf9262aa4e1f75122c72a0df2f

Or if you need to use 5.4, you could make this one-word fix to the file /Applications/Slicer-5.4.0.app/Contents/lib/Slicer-5.4/qt-scripted-modules/CompareVolumes.py

> <https://github.com/pieper/CompareVolumes/commit/cb755dda78f726cf9262aa4e1f75122c72a0df2f>
>
> This was a bug where the tooltip for test cases was being set on the wrong butto…n. When that button got renamed the module would not load in developer mode because the superclass button implementation was changed.

---

<div class="post-metadata">

**Author:** ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)\
**Post date:** [October 12, 2023, 11:36am UTC](https://discourse.slicer.org/t/compare-volumes-module-does-not-work-on-slicer-5-4/32142/4 "2023-10-12T11:36:13Z")

</div>

thanks, I tried with the fix of the stable version at it works properly.

MB
