-
Notifications
You must be signed in to change notification settings - Fork 5
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
Browser not working in Sllicer 5.6.2 or 5.6.1 #36
Browser not working in Sllicer 5.6.2 or 5.6.1 #36
Comments
@pieper I asked @vkt1414 to look into this, and he traced it down to |
Submitted a PR already ImagingDataCommons/idc-index#77 |
Reopening, since we need to confirm this is fixed in the Slicer binary, and we need to investigate the second error in 5.6.1 which may or may not be related to ImagingDataCommons/idc-index#69. |
Theoretically, this should be independent of the Slicer binary. However, the new download hierarchy enabled by default is going to bring another issue. (I injected the index.py file from the main branch into slicer python env libs to test) |
even after merging ImagingDataCommons/idc-index#78 I would not be able to fix the download issue even after adding if I change |
@pieper the easiest to be able to get around temporarily is fix the idc-index version to 0.5.2 So please uninstall idc-index and idc-index-data with slicer.util.pip_uninstall and install idc-index==0.5.2 |
@vkt1414 thanks for the work on this and the workaround info. I don't have the VM where this occurred anymore, but it'll be great to have this fixed for future installations. |
Thanks for reporting the error! Yes. The fix in idc-index took care of this issue and we are working on fixing the download now. In my opinion this experience underscores the need to fix idc-index version to ensure consistent experience across users. We must also either upgrade or degrade any existing idc-index or idc-index-data versions. Secondly I really wish we could either test SlicerIDCbrowser in the idc-index CI pipeline or set up a payload hook to trigger tests in SlicerIDCbrowser. @Steve, Do you know of any extensions that use GitHub actions for CI without waiting to check on cdash dashboard? |
No, I think we have focused on cdash for consistency. It would be helpful to try to fit into that framework but if there are convincing reasons to add some extract testing methods that would also be fine. |
If you look at the code, that fileName is not used. The extension was working. I do agree it has a lot of garbage code and needs to be completely rewritten. |
Did you debug why it fails? Maybe it is just failing when you try to download for the first time because the top-level directory is missing? |
The last known working idc-index version is 0.5.2 and there we don't check if downloadDir exists. s5cmd must be creating on the fly as I thought.. |
On 5.6.2 I'm still being offered the IDC extension from April, even though the build is working https://slicer.cdash.org/builds/3397595 Tried both mac and linux |
I think that's accurate, @pieper. The last commit on the repo is on April 23. If the IDCBrowser is not functional, please uninstall idc-index and idc-index-data. When IDCBrowser is initialized again, it will install the latest index and index data. All builds should be functional at least on Linux as far I have tested. |
@vkt1414 I do not see how it would help. Based on what I can tell, the check for the presence of the destination directory is happening before the call to s5cmd here: https://github.com/ImagingDataCommons/idc-index/blame/main/idc_index/index.py#L1143 (and it looks like was introduced in the progress reporting commit here ImagingDataCommons/idc-index@213b5c7). I am going to submit a PR trying to fix this. What I cannot understand is why it works with the preview release. It should not! |
I did not understand what you meant. Previously download_dicom_series used to have its own logic. Now all download from uuids must go through download from selection. And the first thing we do is to check whether the download directory actually exists. https://github.com/ImagingDataCommons/idc-index/blob/main/idc_index/index.py#L1143 In slicerIDCBrowser that is images folder. In main branch, images folder is never created. The PR #37 creates that directory. |
As steve reported, it does not work on any new slicer version, except for those who have installed the extension from the time, before idc-index version 0.5.4 was released. |
I tested 5.6.2 today, and download appears to work! @pieper please reopen if you continue to see issues. |
Yes, it's working today 👍 |
Install on a freshly downloaded current stable release of Slicer (5.6.2) results in this error:
The problem is repeatable after restarting Slicer.
With 5.6.1 I get this error:
The text was updated successfully, but these errors were encountered: