Skip to content

Nipype cannot be included in a requirements.txt file assuming an empty environment #800

@mwaskom

Description

@mwaskom

Nipype installation has some dependency on nibabel, which means that you cannot write a requirements.txt file with both packages and expect it to work (see below for exact issue).

This is problematic as I am trying to put together a minimal set of files to initialize the environment used when analyzing data for a paper. Nipype is supposedly aimed at making research more reproducible, so I don't think the installation process should cause extra headaches for people trying to do that.

$ conda create -n paper pip
$ source activate paper
$ conda install --file conda_requirements.txt
<...>
$ pip install -r pip_requirements.txt
Downloading/unpacking nibabel==1.3.0 (from -r pip_requirements.txt (line 2))
  Downloading nibabel-1.3.0.tar.gz (2.2MB): 2.2MB downloaded
  Running setup.py (path:/private/var/folders/RK/RK5q1cfCE6CoFSziaUGCxU++636/-Tmp-/pip_build_mwaskom/nibabel/setup.py) egg_info for package nibabel
    Missing optional package "dicom" provided by package "pydicom"; you may get run-time errors

Downloading/unpacking nipype==0.9.1 (from -r pip_requirements.txt (line 3))
  Downloading nipype-0.9.1.tar.gz (13.4MB): 13.4MB downloaded
  Running setup.py (path:/private/var/folders/RK/RK5q1cfCE6CoFSziaUGCxU++636/-Tmp-/pip_build_mwaskom/nipype/setup.py) egg_info for package nipype
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/var/folders/RK/RK5q1cfCE6CoFSziaUGCxU++636/-Tmp-/pip_build_mwaskom/nipype/setup.py", line 19, in <module>
        raise RuntimeError('Need nisext package from nibabel installation'
    RuntimeError: Need nisext package from nibabel installation - please install nibabel first
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/var/folders/RK/RK5q1cfCE6CoFSziaUGCxU++636/-Tmp-/pip_build_mwaskom/nipype/setup.py", line 19, in <module>

    raise RuntimeError('Need nisext package from nibabel installation'

RuntimeError: Need nisext package from nibabel installation - please install nibabel first

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/RK/RK5q1cfCE6CoFSziaUGCxU++636/-Tmp-/pip_build_mwaskom/nipype
Storing debug log for failure in /Users/mwaskom/.pip/pip.log

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