-
Notifications
You must be signed in to change notification settings - Fork 533
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
Bad version check for NiftyReg #3268
Comments
Sorry for being a bit slow to get to this. It looks like we have an unreliable way to determine the version of NiftyReg. If you know how to get it from a NiftyReg installation, the fix should be pretty easy. |
Installed niftyreg. Seems there is no version information in the binaries or source. @fepegar Looks like you added this check in #3194. Were you using a source besides sourceforge to build? |
Hi, @effigies. I use the maintained code in https://github.com/KCL-BMEIS/niftyreg. This is what I typically use to install it: https://gist.github.com/fepegar/b9a4c7b95a88f552c72e88a6e89e6639 In my computer:
|
Ah, thanks. I suppose it would be nice if Sourceforge forwarded people to this repository. I suspect @wmallo also installed from SourceForge. I no longer consider this issue blocking for release, but I think we should probably detect this case and declare the version 1.3.9 so a better error message can be generated. |
Summary
OS: Mac 10.15.6
After having installed Nipype 1.5.1 and compiled NiftyReg 1.3.9 it does not work producing an error message
Actual behavior
`(base) x@xxs-iMac Desktop % python test.py
Traceback (most recent call last):
File "test.py", line 21, in
aladin = niftyreg.RegAladin()
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/niftyreg/base.py", line 66, in init
_version = self.version
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/niftyreg/base.py", line 117, in version
return Info.version()
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 1119, in version
clout = CommandLine(
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 419, in run
runtime = self._run_interface(runtime)
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 814, in _run_interface
self.raise_exception(runtime)
File "/Users/x/miniconda3/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 741, in raise_exception
raise RuntimeError(
RuntimeError: Command:
reg_aladin --version
Standard output:
Standard error:
Err: Parameter --version unknown.
reg_aladin
Usage: reg_aladin -ref -flo [OPTIONS].
See the help for more details (-h).
Return code: 1`
How to replicate the behavior
Created a test.py with the following lines
Script/Workflow details
Please put URL to code or code here (if not too long).
Platform details:
Execution environment
The text was updated successfully, but these errors were encountered: