# Availability of Slicer 5.0 on ArchLinux

**URL:** <https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245>\
**Category:** Development\
**Created:** [May 2, 2022, 12:29pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245 "2022-05-02T12:29:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 2, 2022, 12:29pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/1 "2022-05-02T12:29:54Z")

</div>

Manjaro here (from AUR, so I asume the same for all pacman based linux)

```auto
:: 1 Packages to upgrade.
1 aur/3dslicer-nightly-bin 4.13.0.r20220113-1 -> 20220501.071714-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==> 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] 3dslicer-nightly-bin-20220501.071714-1

  1 3dslicer-nightly-bin (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): 3dslicer-nightly-bin
  1 3dslicer-nightly-bin (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: 3dslicer-nightly-bin
==> Making package: 3dslicer-nightly-bin 20220501.071714-1 (lun 02 may 2022 14:09:59)
==> Retrieving sources...
  -> Found 3dslicer-20220501.071714.tar.gz
  -> Found 3dslicer.svg
==> Validating source files with sha512sums...
    3dslicer-20220501.071714.tar.gz ... FAILED
    3dslicer.svg ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: 3dslicer-nightly-bin 
         context: exit status 1 
         

==> Making package: 3dslicer-nightly-bin 20220501.071714-1 (lun 02 may 2022 14:10:04)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 3dslicer-20220501.071714.tar.gz
  -> Found 3dslicer.svg
==> Validating source files with sha512sums...
    3dslicer-20220501.071714.tar.gz ... FAILED
    3dslicer.svg ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error making: 3dslicer-nightly-bin

```

so searching in aur

```auto
pamac search 3dslicer
3dslicer-nightly-bin 20220501.071714-1 AUR 
    A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging
    research (nightly build)
3dslicer-nightly 4.11.0_2019_03_06-1 AUR 
    A free, open source software package for image analysis and scientific visualization.
3dslicer-bin [Installed] 5.0.1-1 AUR 
    A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging
    research
3dslicer 5.0.1-1 AUR 
    A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging
    research

```

But the Slicer executable installed is still 4.11

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [May 2, 2022, 7:33pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/2 "2022-05-02T19:33:52Z")

</div>

Based on comment associated with issue [#5546](https://github.com/Slicer/Slicer/issues/5546), it looks like we should update [https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=3dslicer-bin](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=3dslicer-bin) to include the SHA of the latest release.

Looking at the history (see [here](https://aur.archlinux.org/cgit/aur.git/log/PKGBUILD?h=3dslicer-bin)), it has been updated 🙏

That said, the list of `sha512sums` seems to have been untouched.

cc: @ButuiHu

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 3, 2022, 8:05am UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/3 "2022-05-03T08:05:56Z")

</div>

The only thing working so far is to add the archlinuxcn repository from [this comment](https://aur.archlinux.org/packages/3dslicer#comment-793716)

This way is working, however there shows these errors after installing slicerrt:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/e/6e8d7f47781e608e8763ee83e0fb21b62dd73dc3.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a1885bd2c7aa4bbc2e73c4ef819941272f3ed61d.png)

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 3, 2022, 8:23am UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/4 "2022-05-03T08:23:42Z")

</div>

My module is running but the test are failing since the coverage package is not working because of missing sqlite3 package

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/4/e4e8c4abc013c5796f37e29b904585f406206676.png)

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 3, 2022, 8:33am UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/5 "2022-05-03T08:33:57Z")

</div>

Something is broken now in brainsresample module, it is not working anymore

this code used to work fine in 4.13

```python
            parameters = {'inputVolume': nodeCT.data, 'referenceVolume': nodeSPECT.data, 'outputVolume': CTRSNode,
                          'interpolationMode': 'Lanczos', 'defaultValue': minCT}

            slicer.cli.run(slicer.modules.brainsresample,
                           None, parameters, wait_for_completion=True, update_display=False)

```

Now it produces a volume without voxel data

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/b/4bd2552fb47b918552d6db47be44466cac439d96.png)

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 3, 2022, 11:16am UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/6 "2022-05-03T11:16:58Z")

</div>

The same version of my module runs fine in MacOS, there is no problem with sqlite, no problem with coverage, and the resample is working as expected:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/5/85368a621a150f5ed94a22cae3d7b9ba1f8bc60a.jpeg)

---

<div class="post-metadata">

**Author:** ![fragosoj](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fragosoj/32/14395_2.png) [@fragosoj](https://discourse.slicer.org/u/fragosoj)\
**Post date:** [May 3, 2022, 12:33pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/7 "2022-05-03T12:33:02Z")

</div>

OpenDose3D works fine on 3D Slicer 5.1.0-2022-05-01 on CentOS

 ![OD3D](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/7/87724429f6953b8e854d3eee6e3f3e6a21da4014.jpeg)  
7

---

<div class="post-metadata">

**Author:** ![PaoloZaffino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paolozaffino/32/81052_2.png) [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Post date:** [May 3, 2022, 12:35pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/8 "2022-05-03T12:35:56Z")

</div>

I’m on Arch too, let me know if I can run some tests.

Paolo

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 3, 2022, 1:03pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/9 "2022-05-03T13:03:30Z")

</div>

Please, just enable developper mode and run the tests. they are automatic, so you just need to report if something goes wrong. Just be sure to report the specific Slicer version and how did you installed it.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 4, 2022, 10:09am UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/10 "2022-05-04T10:09:10Z")

</div>

Current status (04/05/2022):

from AUR:

3dslicer fails to build  
3dslicer-bin installs 4.11  
3dslicer-nightly installs 4.11

from archlinuxcn:

3dslicer installs 5.0.1 but basic stuffs are not working  
3dslicer-bin installs 5.0.1 but basic stuffs are not working  
3dslicer-nightly-bin installs 5.0.0 and it is working fine

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 4, 2022, 2:12pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/11 "2022-05-04T14:12:30Z")

</div>

> [@Alex\_Vergara](#):
>
> just enable developper mode and run the tests

What and where are these tests? I just built _5.1.0-2022-05-04 r30818 / 68a506f_ on Arch,which is working seamlessly in my workflow. If there are some standardized tests available, I’ll be happy to contribute.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 4, 2022, 3:03pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/12 "2022-05-04T15:03:43Z")

</div>

First of all, thank you very much for your interest.

Please, enable developper mode

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/3/e38182fb5bced23ec1d38c64c35b14488f2487fd.png)

Then install my module OpenDose3D, remember to restart Slicer

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/f/7f5650b0a8a73753b5b4d5339f723d11fbbf4589.jpeg)

Finally do the tests and report any error. The module uses extensively the Slicer API, so anything wrong shall be reported in the specific section in the test output.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a86d0dbe30f0330d24a295acecb320295f7c7ca7.png)

If everything is ok you will have in the python interpreter the following

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/3/935ce55ba1ae1afc4e26c92e88bbfab7d5d16d1e.png)

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 4, 2022, 3:24pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/13 "2022-05-04T15:24:34Z")

</div>

Unfortunately the tests did not succeed :

```auto

*****vtkmrmlutils Module Testing*****

DICOM test data dir: /home/user/Documents/Slicer_Ext/opendose3d/OpenDose3D/Resources/DICOM/A_Cycle3-6848MBq-9h57
Successfully loaded patient 599 with StudyInstanceUID: 1.2.752.37.5.626934496.20171125.26473.4.1934 and SeriesInstanceUID: 1.3.6.1.4.1.33868.20191002120418.51247
Test isDICOM_false_positive started!
Test isDICOM_false_positive passed!
Test isDICOM_true_positive started!
Could not load dicom files from database
Reload and Test failed.

Traceback (most recent call last):
  File "/home/user/bin/Slicer_Ext/opendose3d/OpenDose3D/Logic/testbuilder.py", line 84, in setupDICOM
    _ = DICOMUtils.loadPatientByName(dicomValues.patientName)
  File "/home/user/programs/Slicer/lib/Slicer-5.1/qt-scripted-modules/DICOMLib/DICOMUtils.py", line 104, in loadPatientByName
    raise OSError('Patient not found by name %s' % patientName)
OSError: Patient not found by name Patient1^Cycle3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/programs/Slicer/bin/Python/slicer/ScriptedLoadableModule.py", line 216, in onReloadAndTest
    test(msec=int(slicer.app.userSettings().value("Developer/SelfTestDisplayMessageDelay")), **kwargs)
  File "/home/user/bin/Slicer_Ext/opendose3d/OpenDose3D/OpenDose3D.py", line 107, in runTest
    testCase.runTest(**kwargs)
  File "/home/user/bin/Slicer_Ext/opendose3d/OpenDose3D/Logic/vtkmrmlutilsTest.py", line 49, in runTest
    self.isDICOM_true_positive()
  File "/home/user/bin/Slicer_Ext/opendose3d/OpenDose3D/Logic/vtkmrmlutilsTest.py", line 106, in isDICOM_true_positive
    itemIDs = setupDICOM()
  File "/home/user/bin/Slicer_Ext/opendose3d/OpenDose3D/Logic/testbuilder.py", line 87, in setupDICOM
    raise Error('Unable to load series from database')
Logic.errors.Error

```

Please note it’s self-built Slicer without any customization.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 4, 2022, 3:28pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/14 "2022-05-04T15:28:36Z")

</div>

do you have a valid dicom database? if not, please create one first

---

<div class="post-metadata">

**Author:** ![PaoloZaffino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paolozaffino/32/81052_2.png) [@PaoloZaffino](https://discourse.slicer.org/u/PaoloZaffino)\
**Post date:** [May 4, 2022, 3:59pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/15 "2022-05-04T15:59:48Z")

</div>

Hi all,  
here is my output (too long for pasting it here):

> **[\>\>\> Reloading OpenDose3D------------------------------Reloading modu...](https://pastebin.com/4fFXprus)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Let me know if I can help with other tests.

Paolo

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 4, 2022, 4:33pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/16 "2022-05-04T16:33:47Z")

</div>

> [@Alex\_Vergara](#):
>
> do you have a valid dicom database? if not, please create one first

Yes, there is a valid database :

```auto
sqlite3 /home/user/Documents/SlicerDICOMDatabase_1/ctkDICOM.sql
SQLite version 3.38.2 2022-03-26 13:51:10
Enter ".help" for usage hints.
sqlite> .tables
ColumnDisplayProperties Patients                    
Directories SchemaInfo                  
DisplayedFieldGeneratorRules Series                      
Images Studies                     
sqlite>

```

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 4, 2022, 4:43pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/17 "2022-05-04T16:43:32Z")

</div>

Thanks for testing, OpenDose3D is working correctly in your system. May you tell something about your 3DSlicer installation method.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [May 4, 2022, 4:45pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/18 "2022-05-04T16:45:07Z")

</div>

Inside Slicer please check this is not shown. If it is shown, then create a new database or upgrade the existing one.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/dbdac69ec4bb1d4973c2dd5e763a89c184168778.png)

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 4, 2022, 5:31pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/19 "2022-05-04T17:31:18Z")

</div>

> [@Alex\_Vergara](#):
>
> Inside Slicer please check this is not shown.

This is definitely not shown, no database warning is issued at any time. I’ll still try with a new one tomorrow when I get back to work.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 4, 2022, 5:37pm UTC](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245/20 "2022-05-04T17:37:10Z")

</div>

> [@Alex\_Vergara](#):
>
> May you tell something about your 3DSlicer installation method.

Slicer is built from source (not from PKGBUILD), packaged, then unpacked in a usual location. OpenDose3D is cloned from gitlab, and loaded in Slicer with _–additional-module-paths_ pointing to the _OpenDose3D/_ directory. Nothing exotic in here.

[Next page](https://discourse.slicer.org/t/availability-of-slicer-5-0-on-archlinux/23245.md?page=2)
