Skip to content

Cannot run tests unrecognized arguments: -n nipype #2677

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 10, 2018 · 4 comments
Closed

Cannot run tests unrecognized arguments: -n nipype #2677

TheChymera opened this issue Aug 10, 2018 · 4 comments

Comments

@TheChymera
Copy link
Collaborator

Summary

I cannot execute the test suite, likely a configuration/dependency issue.

Actual behavior

I run the tests with

    py.test -v --cov nipype\
        --cov-config .coveragerc\
        --cov-report xml:cov.xml\
        -c nipype/pytest.ini\
        --doctest-modules nipype\

I get

 * python2_7: running distutils-r1_run_phase python_test
usage: py.test [options] [file_or_dir] [file_or_dir] [...]
py.test: error: unrecognized arguments: -n nipype
  inifile: nipype/pytest.ini
  rootdir: /var/tmp/portage/sci-libs/nipype-1.1.0/work/nipype-1.1.0

Script/Workflow details

Full build log.

Platform details:

Failed to import duecredit due to No module named 'duecredit'
{'commit_hash': '%h',
 'commit_source': 'archive substitution',
 'networkx_version': '2.1',
 'nibabel_version': '2.3.0',
 'nipype_version': '1.1.1',
 'numpy_version': '1.14.5',
 'pkg_path': '/usr/lib64/python3.6/site-packages/nipype',
 'scipy_version': '1.1.0',
 'sys_executable': '/usr/lib/python-exec/python3.6/python',
 'sys_platform': 'linux',
 'sys_version': '3.6.6 (default, Jul 27 2018, 23:06:53) \n[GCC 7.3.0]',
 'traits_version': '4.6.0'}

Full first level dependency graph:

* dependency graph for sci-libs/nipype-1.1.1
 `--  sci-libs/nipype-1.1.1  ~amd64 
   `--  dev-python/future-0.16.0  (dev-python/future) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/numpy-1.14.5  (dev-python/numpy) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/prov-1.5.0  (~dev-python/prov-1.5.0) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/setuptools-40.0.0  (dev-python/setuptools) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  sci-libs/nibabel-2.3.0  (sci-libs/nibabel) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/mock-2.0.0  (dev-python/mock) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/pytest-3.6.3  (dev-python/pytest) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/configparser-3.5.0-r1  (dev-python/configparser) amd64  [python_targets_python2_7(-)? -python_single_target_python2_7(-)]
   `--  dev-python/click-6.7  (>=dev-python/click-6.6) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/networkx-2.1  (dev-python/networkx) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/packaging-17.1  (dev-python/packaging) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/pydotplus-2.0.2  (dev-python/pydotplus) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/pygraphviz-1.3.1  (dev-python/pygraphviz) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/python-dateutil-2.7.2-r1  (dev-python/python-dateutil) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/simplejson-3.16.0  (dev-python/simplejson) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-python/traits-4.6.0  (dev-python/traits) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  sci-libs/scipy-1.1.0  (sci-libs/scipy) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  virtual/python-funcsigs-1  (virtual/python-funcsigs) amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
   `--  dev-lang/python-2.7.15  (>=dev-lang/python-2.7.5-r2) ~amd64  [threads(+) sqlite]
   `--  dev-lang/python-3.4.8-r1  (dev-lang/python) ~amd64  [threads(+) sqlite]
   `--  dev-lang/python-3.5.5-r1  (dev-lang/python) ~amd64  [threads(+) sqlite]
   `--  dev-lang/python-3.6.6  (dev-lang/python) ~amd64  [threads(+) sqlite]
   `--  dev-lang/python-exec-2.4.6  (>=dev-lang/python-exec-2) ~amd64  [python_targets_python2_7(-)? python_targets_python3_4(-)? python_targets_python3_5(-)? python_targets_python3_6(-)? -python_single_target_python2_7(-) -python_single_target_python3_4(-) -python_single_target_python3_5(-) -python_single_target_python3_6(-)]
[ sci-libs/nipype-1.1.1 stats: packages (24), max depth (1) ]

Execution environment

  • My python environment outside container
@effigies
Copy link
Member

Looks like a duplicate of #2666. Do you have pytest-xdist installed?

@djarecka
Copy link
Collaborator

djarecka commented Aug 10, 2018

how did you install nipype? this should be already included in dependencies for version 1.1.1

@TheChymera
Copy link
Collaborator Author

@effigies sorry, that somehow dropped off my radar, you were right, it was a missing dep issue, though I would add that this also seems to be required for 1.1.0.

@effigies
Copy link
Member

Yes, it didn't get added to the dependencies until 1.1.1. That was our mistake.

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

3 participants