Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Nipype installation test failure #1864

Closed
@milesseidel

Description

@milesseidel

Summary

Hello, I'm attempting to install and test nipype on a mac running macOS Sierra 10.12.3. I have installed Anaconda and ran the following lines in the terminal:

$ conda config --add channels conda-forge
$ conda install nipype
$ python -c "import nipype; nipype.test()"

Help is much appreciated - I could really use some assistance. Thanks,

Miles

Actual behavior

I get the following output error:

======================================================================================= test session starts ========================================================================================
platform darwin -- Python 3.5.2, pytest-3.0.5, py-1.4.32, pluggy-0.4.0
rootdir: /Users/milesseidel, inifile:
collected 586 items

anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/confounds.py ....
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/mesh.py .
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/metrics.py .....
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/misc.py ..........
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/modelgen.py .......
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/algorithms/rapidart.py ....
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/caching/memory.py ..
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/interfaces/base.py .....
anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/interfaces/bru2nii.py .F

============================================================================================= FAILURES =============================================================================================
_____________________________________________________________________________ [doctest] nipype.interfaces.bru2nii.Bru2 _____________________________________________________________________________
UNEXPECTED EXCEPTION: TraitError("The trait 'input_dir' of a Bru2InputSpec instance is an existing directory name, but the path 'brukerdir' does not exist.",)
Traceback (most recent call last):

File "/Users/milesseidel/anaconda/lib/python3.5/doctest.py", line 1321, in __run
compileflags, 1), test.globs)

File "<doctest nipype.interfaces.bru2nii.Bru2[2]>", line 1, in

File "/Users/milesseidel/anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/interfaces/traits_extension.py", line 183, in validate
self.info_text, value))

traits.trait_errors.TraitError: The trait 'input_dir' of a Bru2InputSpec instance is an existing directory name, but the path 'brukerdir' does not exist.

/Users/milesseidel/anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype/interfaces/bru2nii.py:44: UnexpectedException
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 1 failed, 39 passed in 3.72 seconds ================================================================================

Expected behavior

I expected all tests to pass.

How to replicate the behavior

$ conda config --add channels conda-forge
$ conda install nipype

Then (output copy pasted)
$ python -c "import nipype; nipype.test()"

Or (output in txt attached)
$ nosetests --with-doctest nipype

This second call gives the output in the attached .txt file. Unlike the first test, it runs to completion, with the following final summary.
output_from_nipype_test.txt


Ran 1973 tests in 37.397s

FAILED (errors=219, failures=1)

Platform details:

$ python -c "import nipype; print(nipype.get_info()); print(nipype.version)"

{'sys_platform': 'darwin', 'traits_version': '4.6.0', 'nibabel_version': '2.1.0', 'scipy_version': '0.18.1', 'numpy_version': '1.12.0', 'pkg_path': '/Users/milesseidel/anaconda/lib/python3.5/site-packages/nipype-0.13.0_g07a75a6.dev-py3.5.egg/nipype', 'commit_source': 'installation', 'networkx_version': '1.11', 'sys_version': '3.5.2 |Anaconda 4.3.0 (x86_64)| (default, Jul 2 2016, 17:52:12) \n[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]', 'commit_hash': '07a75a6', 'sys_executable': '/Users/milesseidel/anaconda/bin/python'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions