Skip to content

AttributeError: 'PolyDataWriter' object has no attribute 'set_input_data' #1218

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
yarikoptic opened this issue Sep 16, 2015 · 1 comment
Closed
Assignees
Labels

Comments

@yarikoptic
Copy link
Member

> DISPLAY= PYTHONPATH=/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages MPLCONFIGDIR=/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/build xvfb-run -s "-screen 0 1024x768x24 -ac  +render -noreset" nosetests nipype.algorithms.tests.test_mesh_ops
Xlib:  extension "RANDR" missing on display ":99".
EE
======================================================================
ERROR: Failure: AttributeError ('PolyDataWriter' object has no attribute 'set_input_data'
Interface ComputeMeshWarp failed to run. )
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 153, in skipper_gen
    for x in f(*args, **kwargs):
  File "/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages/nipype/algorithms/tests/test_mesh_ops.py", line 35, in test_ident_distances
    res = dist_ident.run()
  File "/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages/nipype/interfaces/base.py", line 1033, in run
    runtime = self._run_wrapper(runtime)
  File "/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages/nipype/interfaces/base.py", line 983, in _run_wrapper
    runtime = self._run_interface(runtime)
  File "/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages/nipype/algorithms/mesh.py", line 283, in _run_interface
    writer.set_input_data(out_mesh)
AttributeError: 'PolyDataWriter' object has no attribute 'set_input_data'
Interface ComputeMeshWarp failed to run. 
-------------------- >> begin captured logging << --------------------
rdflib: INFO: RDFLib Version: 4.1.2
interface: INFO: Redirecting X to :1099
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Failure: AttributeError ('PolyDataWriter' object has no attribute 'set_input_data')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 153, in skipper_gen
    for x in f(*args, **kwargs):
  File "/home/yoh/proj/nipy/nipy-suite/build-area/nipype-0.11.0/debian/python-nipype/usr/lib/python2.7/site-packages/nipype/algorithms/tests/test_mesh_ops.py", line 62, in test_trans_distances
    writer.set_input_data(vtk1)
AttributeError: 'PolyDataWriter' object has no attribute 'set_input_data'

----------------------------------------------------------------------
Ran 2 tests in 0.626s

FAILED (errors=2)

which version of tvtk (mayavi2) do you need? we have 4.3.1-4.1 on debian sid/stretch atm

@oesteban
Copy link
Contributor

What version of vtk is installed? (<6.0 I assume). Since 6.0, VTK stopped using set_input in favor of set_input_data and set_input_port (or similar). Then, tvtk is compiled depending on VTK version.

I will add a detection of VTK version major.

oesteban added a commit to oesteban/nipype that referenced this issue Sep 18, 2015
@oesteban oesteban added the bug label Oct 9, 2015
@oesteban oesteban self-assigned this Oct 9, 2015
chrisgorgo added a commit that referenced this issue Dec 9, 2015
[FIX] Created TVTKBaseInterface. Should fix #1218
satra added a commit to satra/nipype that referenced this issue Dec 12, 2015
* upstream/master:
  Correct versions and consistency in install.rst
  fix:import utils needed one more dot
  fix: absolute to relative imports
  add vtk version checking in fsl interfaces
  update CHANGES
  Fix nipy#1218 only, not addressing nipy#973
  force setting ETS_TOOLKIT before tvtk nipy#972
  Created TVTKBaseInterface. Should fix nipy#1218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants