Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plastimatch command returned non-zero exit status 1 #11

Open
peterwu19881230 opened this issue Aug 14, 2022 · 2 comments
Open

plastimatch command returned non-zero exit status 1 #11

peterwu19881230 opened this issue Aug 14, 2022 · 2 comments

Comments

@peterwu19881230
Copy link

Hi, dear developers:

When I was opening the following notebook in colab, I wasn't able to get the final image viewer as expected:
https://github.com/ImagingDataCommons/IDC-Examples/blob/master/notebooks/cohort_preparation.ipynb

May I get some help from here? Thanks!

The error message (about plastimatch package) :

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/CT
--output-img tutorial/data/processed/nrrd/LUNG3-81/LUNG3-81_ct.nrrd
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/CT', '--output-img', 'tutorial/data/processed/nrrd/LUNG3-81/LUNG3-81_ct.nrrd']' returned non-zero exit status 1.

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/RTSTRUCT
--referenced-ct tutorial/data/dicom/LUNG3-81/CT
--output-prefix tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT
--prefix-format nrrd
--output-ss-list tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT_content
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/RTSTRUCT', '--referenced-ct', 'tutorial/data/dicom/LUNG3-81/CT', '--output-prefix', 'tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT', '--prefix-format', 'nrrd', '--output-ss-list', 'tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT_content']' returned non-zero exit status 1.

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/CT
--output-img tutorial/data/processed/nii/LUNG3-81/LUNG3-81_ct.nii.gz
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/CT', '--output-img', 'tutorial/data/processed/nii/LUNG3-81/LUNG3-81_ct.nii.gz']' returned non-zero exit status 1.

@wlongabaugh
Copy link
Member

@denbonte would you be able to provide info on this?

@denbonte
Copy link
Contributor

Dear @peterwu19881230 - sorry for the delayed response!

I checked the Cohort Preparation Colab notebook, and everything works fine on my side. I ran it once "as it was", and then updated the notebook to include the packaged version of PyPlastimatch (instead of cloning the repository as before - nothing really changes besides the notebook being a bit cleaner).

Could you please provide us with some more details so that we can help fixing the problem?

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/CT
--output-img tutorial/data/processed/nrrd/LUNG3-81/LUNG3-81_ct.nrrd
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/CT', '--output-img', 'tutorial/data/processed/nrrd/LUNG3-81/LUNG3-81_ct.nrrd']' returned non-zero exit status 1.

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/RTSTRUCT
--referenced-ct tutorial/data/dicom/LUNG3-81/CT
--output-prefix tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT
--prefix-format nrrd
--output-ss-list tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT_content
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/RTSTRUCT', '--referenced-ct', 'tutorial/data/dicom/LUNG3-81/CT', '--output-prefix', 'tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT', '--prefix-format', 'nrrd', '--output-ss-list', 'tutorial/data/processed/nrrd/LUNG3-81/RTSTRUCT_content']' returned non-zero exit status 1.

Running 'plastimatch convert' with the specified arguments:
--input tutorial/data/dicom/LUNG3-81/CT
--output-img tutorial/data/processed/nii/LUNG3-81/LUNG3-81_ct.nii.gz
Command '['plastimatch', 'convert', '--input', 'tutorial/data/dicom/LUNG3-81/CT', '--output-img', 'tutorial/data/processed/nii/LUNG3-81/LUNG3-81_ct.nii.gz']' returned non-zero exit status 1.

Could you, for instance, share the cohort you run the notebook on?

About that - and if that is the problem - please, remember you need to generate a cohort from IDC before running the notebook (and create a Google Cloud project to run the BigQuery), and then populate the two following cells accordingly.

image

image

In the second case, you'll need to insert only the BQ Table ID - as the project ID is set automatically (from the variable initialised at the other cell).

If you need help with those two steps, we will be happy to provide you some - so don't hesitate asking! 😄


I'm attaching a couple of screenshots of my run:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants