Skip to content

Cannot start nipype.test(), unrecognized arguments error #2645

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
shuiyiwensi opened this issue Jul 22, 2018 · 2 comments
Closed

Cannot start nipype.test(), unrecognized arguments error #2645

shuiyiwensi opened this issue Jul 22, 2018 · 2 comments
Milestone

Comments

@shuiyiwensi
Copy link

shuiyiwensi commented Jul 22, 2018

Summary

Run nipype.test(), shows
-c: error: unrecognized arguments: -n

Actual behavior

usage: -c [options] [file_or_dir] [file_or_dir] [...]
-c: error: unrecognized arguments: -n
inifile: /home/wensi/anaconda3/envs/python35/lib/python3.5/site-packages/nipype/pytest.ini
rootdir: /home/wensi/anaconda3/envs/python35/lib/python3.5/site-packages/nipype

Expected behavior

the test should be run with out error

How to replicate the behavior

just follow the two command lines on Anaconda nipype
then run
python -c "import nipype; nipype.test()"

Script/Workflow details

Please put URL to code or code here (if not too long).

Platform details:

Please paste the output of: python -c "import nipype; print(nipype.get_info()); print(nipype.__version__)"

output is
/home/wensi/anaconda3/envs/python35/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
{'pkg_path': '/home/wensi/anaconda3/envs/python35/lib/python3.5/site-packages/nipype', 'networkx_version': '2.1', 'sys_version': '3.5.5 |Anaconda custom (64-bit)| (default, May 13 2018, 21:12:35) \n[GCC 7.2.0]', 'commit_source': 'archive substitution', 'nibabel_version': '2.3.0', 'commit_hash': '%h', 'sys_executable': '/home/wensi/anaconda3/envs/python35/bin/python', 'sys_platform': 'linux', 'numpy_version': '1.14.3', 'nipype_version': '1.1.0', 'scipy_version': '1.1.0', 'traits_version': '4.6.0'}
1.1.0

Execution environment

python 3.5

Choose one

  • Container [Tag: ???]
  • My python environment inside container [Base Tag: ???]
  • My python environment outside container
@shuiyiwensi
Copy link
Author

I changed the file nipype/pytest.ini
change the third line
addopts = --doctest-modules -n auto

into

addopts = --doctest-modules -c auto

every things seems goes well

@shuiyiwensi shuiyiwensi changed the title Cannot start nipype.test() Cannot start nipype.test() show unrecognized arguments error Jul 22, 2018
@shuiyiwensi shuiyiwensi changed the title Cannot start nipype.test() show unrecognized arguments error Cannot start nipype.test(), unrecognized arguments error Jul 22, 2018
@djarecka
Copy link
Collaborator

it looks like you're missing one package pytest-xdist. You can pip install it (or skip the -n, as you did). And we should make sure that this is available in conda build. Thank you for letting us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants