-
Notifications
You must be signed in to change notification settings - Fork 530
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
TestSignalExtraction.test_signal_extr_traits_valid failing #2380
Comments
Looks a lot like nipreps/fmriprep#936 |
@djarecka could you try on you OSX the PR referenced above? Thanks! |
it could be related to the temporary directory paths IMO. i'm debugging it right now, and I can see that |
Okay, it definitely looks like nipreps/fmriprep#936. I bet this is only happening with interfaces based off of |
just run with your |
@oesteban not sure if this helps, but only
|
Ok, this is the problem nipype/nipype/interfaces/nilearn.py Line 109 in 045b28e
which aligns well with this discussion and the issue in fmriprep. The problem, basically, is that interfaces shouldn't use Since you are running step-by-step, would you mind checking why this line: nipype/nipype/pipeline/engine/nodes.py Line 462 in f3b0912
seems not to be run with SimpleInterfaces (like SignalExtraction)? EDIT: the problem is not restricted to SimpleInterfaces :( |
Got it. Working on a fix. Sorry for the issue. |
@oesteban sorry for late reply, had a lunch break. Let me know if there is something I can test for you |
#2384 solves the problem on my OSX! |
Oh, you are fast! |
@oesteban I've just updated my master and I have the issue again..:( When I checked your branch oesteban-fix/2380 yesterday with the commit 653f690 it works, since you deleted this branch I'm not sure how to check the final changes introduced by your PR (master had a few more merges since yesterday) |
Okay, now the corresponding report.rst should have more info. What is the content of cwd and prevcwd when it breaks? |
in my Node: nilearnHierarchy : SignalExtraction Original Inputs
can debug later today |
@oesteban But I found which changes cause the test failing on my OSX(I tested your branch before this commit): |
That suggests that the interface isn't being run in the |
@effigies just so you know why the f4c3db7 commit makes difference, when I check
so that's why the test ended up in the same place as on Thursday, i.e. needed files contains: fyi: on my OSX I can search either |
@djarecka Can you run the following in a terminal? ls -ld / /private /var /private/var /var/folders /private/var/folders It would be good to know what the symlink situation is. |
Witalis:~ dorota$ ls -ld / /private /var /private/var /var/folders /private/var/folders |
Okay. As I think about this I'm a little inclined just to revert f4c3db7. |
It would solve problem for this test on OSX (at least my OSX, we might want to check with some other, more reliable OSX...) But I still don't understand why for |
on osx these two things differ, so it's possible that tmpdir is returning one of these in pytests: In [65]: os.path.abspath('/var/folders/ff/ttgp9pp94_7gfs7_5xn9f90c0000gl/0/com.apple.LaunchSer
...: vices')
Out[65]: '/var/folders/ff/ttgp9pp94_7gfs7_5xn9f90c0000gl/0/com.apple.LaunchServices'
In [66]: os.path.realpath('/var/folders/ff/ttgp9pp94_7gfs7_5xn9f90c0000gl/0/com.apple.LaunchSe
...: rvices')
Out[66]: '/private/var/folders/ff/ttgp9pp94_7gfs7_5xn9f90c0000gl/0/com.apple.LaunchServices' |
It's almost certainly going to boil down to a Assuming that we aren't shooting for a deeper fix than this one line change (and I think we shouldn't), any objections to pushing a revert directly to master? Runs through tests once instead of twice. |
@effigies can you also comment on the sub-issue that I couldn't get any runtime info from |
My guess would be that this is another function of a path mismatch, where the call to update the |
But perhaps we should open a new issue to correctly handle temporary directories in OS X. I wouldn't target 1.0, though. My feeling is that it's enough of an edge case that we can resolve by telling people to set a |
I'll keep track of nipreps/fmriprep#936 where something very similar is happening without pytest, on a linux setup. |
I had a lot of weird issues after updating to 1.01 before I realized that the nodes run from the main script directory instead of their own folders for some reason. Changing the base_dir to the absolute path without symlinks helped. |
I think what @achetverikov said is still necessary.
|
Cool, I'll reopen if that did not work. |
Summary
I just noticed that TestSignalExtraction.test_signal_extr_traits_valid is failing on my OSX with the message:
I can see that the file
signals.tsv
is being created but is being deleted here.@oesteban I'll try to figure out why this happens on my OSX and not on CircleCI (or other Linux we tried today), but if you have any suggestions, please let me know.
The text was updated successfully, but these errors were encountered: