[vtkusers] TestGL2PSExporter.py fails on OSX (MacPorts vtk-devel, with cocoa, python26)

Darren Weber darren.weber.lists at gmail.com
Thu Jul 9 19:20:14 EDT 2009


This is the test file:
http://www.vtk.org/doc/nightly/html/c2_vtk_t_6.html#c2_vtk_t_vtkGL2PSExporter

I have a MacPorts installation of vtk-devel with the +huge variant, which
provides shared libs, cocoa, python26, etc.

This is the test failure, indicating a viewport problem (similar errors
arise in other python scripts):

[ dweber at elegans ~ ]$ vtkpython TestGL2PSExporter.py -D
/opt/local/share/vtk-5.4/data -B
/opt/local/share/vtk-5.4/data/Baseline/Rendering/ -T ./tmp/
Failed image test with error: 5343.390850
<DartMeasurement name="ImageError" type="numeric/double"> 5343.390850
</DartMeasurement>
<DartMeasurement name="BaselineImage"
type="text/string">Standard</DartMeasurement> <DartMeasurementFile
name="TestImage" type="image/jpeg">
/Users/dweber/tmp/TestGL2PSExporter.test.small.jpg </DartMeasurementFile>
<DartMeasurementFile name="DifferenceImage" type="image/jpeg">
/Users/dweber/tmp/TestGL2PSExporter.diff.small.jpg </DartMeasurementFile>
<DartMeasurementFile name="ValidImage" type="image/jpeg">
/Users/dweber/tmp/TestGL2PSExporter.small.jpg </DartMeasurementFile>
GL2PS error: Incorrect viewport (x=0, y=0, width=0, height=0)
======================================================================
ERROR: Test vector EPS output.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "TestGL2PSExporter.py", line 103, in testVectorEPS
    im = Image.open(tmp_eps)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PIL/Image.py",
line 1916, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

======================================================================
FAIL: Test EPS output when Write3DPropsAsRasterImage is on.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "TestGL2PSExporter.py", line 160, in testRasterEPS
    Testing.getAbsImagePath(img_file))
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/vtk/test/Testing.py",
line 235, in compareImageWithSavedImage
    raise AssertionError, msg
AssertionError: Failed image test: 5343.390850


----------------------------------------------------------------------
Ran 2 tests in 0.431s

FAILED (failures=1, errors=1)
<DartMeasurement name="WallTime" type="numeric/double">  0.431685
</DartMeasurement>
<DartMeasurement name="CPUTime" type="numeric/double">  0.404242
</DartMeasurement>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090709/2d343b0a/attachment.htm>


More information about the vtkusers mailing list