ImagingDataCommons/IDC-Tutorials

install Plastimatch

kiratben opened this issue · 5 comments

Hi everyone,

I'm currently trying to install Plastimatch on Colab, but I've encountered some issues. I hope someone can assist me with this problem.

Here are the commands I used:

!sudo apt update
!sudo apt install plastimatch

However, I received the following error message:

Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
Hit:3 https://ppa.launchpadcontent.net/c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease
Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease
Hit:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:7 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Hit:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:9 https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu jammy InRelease
Hit:10 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package plastimatch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'plastimatch' has no installation candidate

@kiratben this is a known issue due to Colab switching from Ubuntu 20.04 to 22.04, you can see a related discussion in this issue https://gitlab.com/plastimatch/plastimatch/-/issues/87.

We have a binary build of plastimatch temporarily uploaded to a GitHub repo, and for now you can learn how to install it using this notebook: https://github.com/denbonte/plastimatch_builds/blob/main/notebooks/test_plastimatch_ubuntu_22-04-LTS.ipynb.

The colab plastimatch build/test notebook and all associated code will be released under a non-restrictive non-GPL license in the next couple of weeks, and once that happens we will update the tutorial notebooks.

Plastimatch HEAD compiles cleanly on 22.04. So that is one solution.

But more convenient could be to request Ubuntu to add 1.9.4+dfsg.1-2 to backports. I'll need to review their procedure.

@kiratben - @denbonte did very nice work on improving the process of installing plastimatch, as you can see in this update - https://gitlab.com/plastimatch/plastimatch/-/issues/87#note_1582315932.

We will update the notebooks to use that, and I will let @denbonte close this issue when it is done!

@kiratben with #32 we fixed plastimatch installation in https://github.com/ImagingDataCommons/IDC-Tutorials/blob/master/notebooks/IDC_segmentation_primer.ipynb. Hope this helps, and please reopen if you still have questions.