Pip installing and using nipype

Hi,
I’m trying to install and use nipype inside Slicer. I can install via

pip_install('nipype')

However, when I try to import nipype, I get the following error message(s):

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Users\mangotee\AppData\Local\NA-MIC\Slicer 4.11.20210226\lib\Python\Lib\site-packages\nipype\__init__.py", line 26, in <module>
    faulthandler.enable()
AttributeError: 'PythonQtStdOutRedirect' object has no attribute 'fileno' 

Is there anything I can do to fix this? Any help is appreciated… :slight_smile:

Unfortunately not every pip package is going to be compatible with Slicer. In this case it seems nipype is making assumptions about the program’s standard output so it may not work. You might be able to install/build nipype from source and turn off whatever feature is trying to do this access.

1 Like