[Paraview-developers] AttributeError: 'module' object has no attribute 'vtkTesting'

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Mar 13 15:52:38 EDT 2013


Burlen,

That's a known issue. There is a topic under review that is
restructuring the Python wrapping code that should address this issue
soon.

Utkarsh

On Wed, Mar 13, 2013 at 2:41 PM, burlen <burlen.loring at gmail.com> wrote:
> Hi All,
>
> In a pull this am, complete fresh build on master I'm experiencing hundreds
> of python ctest failures because of no vtkTesting object. Sure enough from
> vtkpython, vtk does not have vtkTesting. However, I can get vtkTesting after
> import vtkTestingPython. Any idea about this? I'm confused as to why the
> dashboards don't have this same issue.
>
> Burlen
>
> test failure example:
> $ctest -I 274,274,1 --verbose
> UpdateCTestConfiguration  from
> :/work/ext/ParaView/sqtk-pv/PV/DartConfiguration.tcl
> Parse Config file:/work/ext/ParaView/sqtk-pv/PV/DartConfiguration.tcl
>  Add coverage exclude regular expressions.
>  Add coverage exclude: vtk.*TCLInit.cxx
>  Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx
>  Add coverage exclude: .*vtkOpenGLState.*
>  Add coverage exclude: .*Testing.Cxx.*cxx
>  Add coverage exclude: .*Testing.Cxx.*h
>  Add coverage exclude: .*moc_.*cxx
>  Add coverage exclude: .*/Utilities/.*
>  Add coverage exclude: .*/ThirdParty/.*
>  Add coverage exclude: .*/VTK/.*
>  Add coverage exclude: vtk[^\.]+ClientServer.cxx
>  Add coverage exclude: vtk[^\.]+Python.cxx
>  Add coverage exclude: ui_[^\.]+.h
>  Add coverage exclude: moc_[^\.]+.h
>  Add coverage exclude: vtkprotobuf
> UpdateCTestConfiguration  from
> :/work/ext/ParaView/sqtk-pv/PV/DartConfiguration.tcl
> Parse Config file:/work/ext/ParaView/sqtk-pv/PV/DartConfiguration.tcl
> Test project /work/ext/ParaView/sqtk-pv/PV
> Constructing a list of tests
> Done constructing a list of tests
> Checking test dependency graph...
> Checking test dependency graph end
> test 274
>     Start 274: vtkCommonDataModelPython-ImplicitSum
>
> 274: Test command: /work/ext/ParaView/sqtk-pv/PV/bin/vtkpython
> "/work/ext/ParaView/sqtk-pv/PV/VTK/Utilities/vtkTclTest2Py/rtImageTest.py"
> "/work/ext/ParaView/sqtk-pv/ParaView/VTK/Common/DataModel/Testing/Python/ImplicitSum.py"
> "-D" "/work/ext/ParaView/sqtk-pv/VTKData" "-T"
> "/work/ext/ParaView/sqtk-pv/PV/VTK/Testing/Temporary" "-V"
> "Baseline/Filtering/ImplicitSum.png" "-A"
> "/work/ext/ParaView/sqtk-pv/PV/VTK/Utilities/vtkTclTest2Py" "-A" ""
> 274: Test timeout computed to be: 1500
> 274: vtk version 6.0.0
> 274: Traceback (most recent call last):
> 274:   File
> "/work/ext/ParaView/sqtk-pv/PV/VTK/Utilities/vtkTclTest2Py/rtImageTest.py",
> line 82, in <module>
> 274:     rtTester = vtk.vtkTesting()
> 274: AttributeError: 'module' object has no attribute 'vtkTesting'
> 1/1 Test #274: vtkCommonDataModelPython-ImplicitSum ...***Failed 0.44 sec
>
> 0% tests passed, 1 tests failed out of 1
>
> Total Test time (real) =   0.91 sec
>
> The following tests FAILED:
>         274 - vtkCommonDataModelPython-ImplicitSum (Failed)
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list