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

Error building ANTs related to MD5 #1248

Closed
ik362 opened this issue Oct 6, 2021 · 12 comments
Closed

Error building ANTs related to MD5 #1248

ik362 opened this issue Oct 6, 2021 · 12 comments

Comments

@ik362
Copy link

ik362 commented Oct 6, 2021

When did the error occur?

[ ] CMake configuration (cmake / ccmake)
[X] Compilation (make)
[ ] Installation (make install)

Build environment

  • OS: Mac OS
  • OS version: 11.6 (20G165)
  • Type of system: laptop

ANTs version

Ecphorella

Build configuration and logs

Additional context

Hi there,

I am trying to build ANTs however I keep running into the following error:

-- Fetching "file:///~/ANTs/.ExternalData/MD5/37aaa33029410941bf4affff0479fa18"
-- Fetching "http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=37aaa33029410941bf4affff0479fa18"
-- Fetching "https://data.kitware.com:443/api/v1/file/hashsum/MD5/37aaa33029410941bf4affff0479fa18/download"
-- Fetching "http://www.itk.org/files/ExternalData/MD5/37aaa33029410941bf4affff0479fa18"
-- [download 100% complete]
* Closing connection 0
CMake Error at /usr/local/Cellar/cmake/3.21.3_1/share/cmake/Modules/ExternalData.cmake:1181 (message):
  

  Object MD5=37aaa33029410941bf4affff0479fa18 not found at:

    file:///~/ANTs/.ExternalData/MD5/37aaa33029410941bf4affff0479fa18 ("Couldn't read a file:// file")
    http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=37aaa33029410941bf4affff0479fa18 ("HTTP response code said error")
    https://data.kitware.com:443/api/v1/file/hashsum/MD5/37aaa33029410941bf4affff0479fa18/download ("HTTP response code said error")
    http://www.itk.org/files/ExternalData/MD5/37aaa33029410941bf4affff0479fa18 ("HTTP response code said error")


make[5]: *** [ExternalData/TestData/Data/r16slice.nii.gz-hash-stamp] Error 1
make[4]: *** [Examples/TestSuite/CMakeFiles/ANTSFetchData.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [ANTS-prefix/src/ANTS-stamp/ANTS-build] Error 2
make[1]: *** [CMakeFiles/ANTS.dir/all] Error 2

This seems to be a similar (but slightly different issue) to #1236. I have also made sure that xcode-select (v2384), brew (v3.2.15), cmake (v3.21.3), and make (v3.81) are all up to date.

Thanks!

@cookpa
Copy link
Member

cookpa commented Oct 6, 2021

I think it's because we need to convert all the .md5 to .sha512

#1236 #1237

@cookpa
Copy link
Member

cookpa commented Oct 7, 2021

#1237

@cookpa cookpa closed this as completed Oct 7, 2021
@gourdchen
Copy link

I have the same problem

@cookpa
Copy link
Member

cookpa commented Oct 14, 2021

@gourdchen do you have the latest code? Feel free to open a new issue using the "Build problems" template

@gourdchen
Copy link

@cookpa yes, I use the latest release.

@anagrammarian
Copy link

I just added the -DBUILD_TESTING=OFF and built it successfully on ubuntu 18.04 which I just finally upgraded from 14.04 (long long wait and story). However, it is taking a really long time to even do affine (previously for the same data took about 1.5 min now 13 or 14 min) and even more for nonlinear. Is there anything which has changed in ANTs or some weird ANTS 18.04 specific thing I need to know? It is still running (40 min later, normal time to finish my code is 13-15 min). Thanks

@anagrammarian
Copy link

And to be clear, the python code etc I am running and the input image are identical to before the upgrade.

@ntustison
Copy link
Member

This appears to be unrelated to the original posting. Please open a separate issue.

@anagrammarian
Copy link

anagrammarian commented Nov 19, 2021

Ok. It is related in that I did use the -DBUILD_TESTING=OFF trick to get it to compile as suggested by this thread. Maybe that suggestion is in another thread. My bad.

@ntustison
Copy link
Member

But the context is different. Please open a separate issue.

@anagrammarian
Copy link

Ok, will do

@cookpa
Copy link
Member

cookpa commented Nov 19, 2021

We fixed this issue, but the tests may still fail if your build process can't download the test data at run time. The long run times are unrelated. You'd need to share the exact command as run and preferably the data (or at least as much information as possible about the data).

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

5 participants