Skip to content

out_file not being created by Python-function nodes #2676

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

Closed
TheChymera opened this issue Aug 9, 2018 · 11 comments
Closed

out_file not being created by Python-function nodes #2676

TheChymera opened this issue Aug 9, 2018 · 11 comments

Comments

@TheChymera
Copy link
Collaborator

Hi everybody, has Python 2.7 support been dropped? I'm getting a lot of strange errors (out_file not being created) on a python2.7 but not on a python 3.6 machine (granted, might be something else).

Also the sources seem to indicate python 2.7 is still supported...

@TheChymera TheChymera changed the title PYthon 2.7 support Python 2.7 support Aug 9, 2018
@mgxd
Copy link
Member

mgxd commented Aug 9, 2018

@TheChymera py2 is still supported, however we plan on dropping support in the 2.x release cycle.

@oesteban
Copy link
Contributor

oesteban commented Aug 9, 2018

What is the error?

@TheChymera
Copy link
Collaborator Author

TheChymera commented Aug 9, 2018

Ok, so the error does not seem to be Python-version-contingent, but rather happening on one specific machine. I checked and they have the same nipype, traits, prov, and pandas versions, among many other things.

@oesteban these two nodes (1,2) fail to produce an output (on one set-up out of my currently active two), which leads to errors along this line from nodes downstream:

TraitError: The trait 'in_file' of a SliceTimerInputSpec instance is an existing file name, but the path  '/mnt/data/ni_data/ofM.dr/preprocessing/generic_work/_ind_type_276/dummy_scans/forced_dummy_scans_file.nii.gz' does not exist.

If I try to manually execute the node functions from e.g. with the inputs listed in /mnt/data/ni_data/ofM.dr/preprocessing/generic_work/_ind_type_223/dummy_scans/_report/report.rst, an output file is always produced. So I guess the error is related to some nipype internal handling....

@oesteban
Copy link
Contributor

oesteban commented Aug 9, 2018

I think this was addressed in #2639, and rolled out with nipype-1.1.1. Which version are you using?

Could you edit the title of the issue? The fact that it is unrelated to Python's version makes it a bit misleading to other users that may experience the same problem. Thanks!

@TheChymera TheChymera changed the title Python 2.7 support out_file not being created by Python-function nodes Aug 9, 2018
@TheChymera
Copy link
Collaborator Author

@oesteban I'm on 1.1.0, I can give the bump a try, but this doesn't really make sense --- why then would this work on another machine also using 1.1.0?

@jdkent
Copy link
Contributor

jdkent commented Aug 10, 2018

@TheChymera You may have already checked this, but I just overheard some other people having a similar error and the solution was to make sure the environment variable FSLOUTPUTTYPE was set to NIFTI_GZ in the environment.

@TheChymera
Copy link
Collaborator Author

TheChymera commented Aug 10, 2018

@jdkent thanks for the input, but none of the afore linked fucntions use FSL. In any case, on both machines:

chymera@clusterhost ~ $ echo ${FSLOUTPUTTYPE}
NIFTI_GZ

@mgxd
Copy link
Member

mgxd commented Aug 10, 2018

@TheChymera what OS are the two machines running?

@TheChymera
Copy link
Collaborator Author

TheChymera commented Aug 10, 2018

@mgxd Gentoo Linux, basically the most transparent one around. Is there anything in particular you recommend I check for?

@oesteban
Copy link
Contributor

I think the question was more about whether they had different OSs. Anyways, does any of the two happen to be writing the intermediate files of the workflow under some path that is a link (or a bind mount) to somewhere else?

In more general terms, can you think of any differences between filesystems and paths between both machines?

@TheChymera
Copy link
Collaborator Author

I don't know exactly what the issue was, but at any rate it's fixed in =nipype-1.1.1. Thanks :)

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

4 participants