<br>This is the test file:<br><a href="http://www.vtk.org/doc/nightly/html/c2_vtk_t_6.html#c2_vtk_t_vtkGL2PSExporter">http://www.vtk.org/doc/nightly/html/c2_vtk_t_6.html#c2_vtk_t_vtkGL2PSExporter</a><br><br>I have a MacPorts installation of vtk-devel with the +huge variant, which provides shared libs, cocoa, python26, etc.<br>
<br>This is the test failure, indicating a viewport problem (similar errors arise in other python scripts):<br><br>[ dweber@elegans ~ ]$ vtkpython TestGL2PSExporter.py -D /opt/local/share/vtk-5.4/data -B /opt/local/share/vtk-5.4/data/Baseline/Rendering/ -T ./tmp/<br>
Failed image test with error: 5343.390850<br><DartMeasurement name="ImageError" type="numeric/double"> 5343.390850 </DartMeasurement><br><DartMeasurement name="BaselineImage" type="text/string">Standard</DartMeasurement> <DartMeasurementFile name="TestImage" type="image/jpeg"> /Users/dweber/tmp/TestGL2PSExporter.test.small.jpg </DartMeasurementFile><br>
<DartMeasurementFile name="DifferenceImage" type="image/jpeg"> /Users/dweber/tmp/TestGL2PSExporter.diff.small.jpg </DartMeasurementFile><br><DartMeasurementFile name="ValidImage" type="image/jpeg"> /Users/dweber/tmp/TestGL2PSExporter.small.jpg </DartMeasurementFile><br>
GL2PS error: Incorrect viewport (x=0, y=0, width=0, height=0)<br>======================================================================<br>ERROR: Test vector EPS output.<br>----------------------------------------------------------------------<br>
Traceback (most recent call last):<br> File "TestGL2PSExporter.py", line 103, in testVectorEPS<br> im = Image.open(tmp_eps)<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PIL/Image.py", line 1916, in open<br>
raise IOError("cannot identify image file")<br>IOError: cannot identify image file<br><br>======================================================================<br>FAIL: Test EPS output when Write3DPropsAsRasterImage is on.<br>
----------------------------------------------------------------------<br>Traceback (most recent call last):<br> File "TestGL2PSExporter.py", line 160, in testRasterEPS<br> Testing.getAbsImagePath(img_file))<br>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/vtk/test/Testing.py", line 235, in compareImageWithSavedImage<br> raise AssertionError, msg<br>AssertionError: Failed image test: 5343.390850<br>
<br><br>----------------------------------------------------------------------<br>Ran 2 tests in 0.431s<br><br>FAILED (failures=1, errors=1)<br><DartMeasurement name="WallTime" type="numeric/double"> 0.431685 </DartMeasurement><br>
<DartMeasurement name="CPUTime" type="numeric/double"> 0.404242 </DartMeasurement><br><br><br>