[mapserver-users] Python mapscript install errors

Ian iansgis at gmail.com
Wed Apr 1 12:30:07 PDT 2009


I'm installing Python mapscript but keep getting errors. Here is my output:

python runalltests.py -v
test saving query to a file ... ok
simple index query returns one result, even if layer is off ... ok
simple point query returns one result, even if layer is off ... ok
point query with no results returns NULL ... ok
simple point query returns one result ... ok
deleting results should not harm the layer ... ok
pop a result into the result set ... ok
result bounds should equal layer bounds ... ok
get the single result member ... ok
get all results using list comprehension ... ok
denying direct access to layer's resultcache ... ok
before a query layer's resultcache should be NULL ... ok
string attribute has been renamed to 'text' (bug 852) ... ok
testClear (hashtest.ClassMetadataTestCase) ... ok
testGetValue (hashtest.ClassMetadataTestCase) ... ok
testGetValueWithDefault (hashtest.ClassMetadataTestCase) ... ok
testNextKey (hashtest.ClassMetadataTestCase) ... ok
testRemoveItem (hashtest.ClassMetadataTestCase) ... ok
testUseNonExistentKey (hashtest.ClassMetadataTestCase) ... ok
testUseNonExistentKeyWithDefault (hashtest.ClassMetadataTestCase) ... ok
testClear (hashtest.HashTableTestCase) ... ok
testConstructor (hashtest.HashTableTestCase) ... ok
testGetValue (hashtest.HashTableTestCase) ... ok
testGetValueWithDefault (hashtest.HashTableTestCase) ... ok
testNextKey (hashtest.HashTableTestCase) ... ok
testRemoveItem (hashtest.HashTableTestCase) ... ok
testUseNonExistentKey (hashtest.HashTableTestCase) ... ok
testUseNonExistentKeyWithDefault (hashtest.HashTableTestCase) ... ok
testClear (hashtest.LayerMetadataTestCase) ... ok
testGetValue (hashtest.LayerMetadataTestCase) ... ok
testGetValueWithDefault (hashtest.LayerMetadataTestCase) ... ok
testNextKey (hashtest.LayerMetadataTestCase) ... ok
testRemoveItem (hashtest.LayerMetadataTestCase) ... ok
testUseNonExistentKey (hashtest.LayerMetadataTestCase) ... ok
testUseNonExistentKeyWithDefault (hashtest.LayerMetadataTestCase) ... ok
testClear (hashtest.WebMetadataTestCase) ... ok
testGetValue (hashtest.WebMetadataTestCase) ... ok
testGetValueWithDefault (hashtest.WebMetadataTestCase) ... ok
testNextKey (hashtest.WebMetadataTestCase) ... ok
testRemoveItem (hashtest.WebMetadataTestCase) ... ok
testUseNonExistentKey (hashtest.WebMetadataTestCase) ... ok
testUseNonExistentKeyWithDefault (hashtest.WebMetadataTestCase) ... ok
check attributes of a cloned class ... ok
testAlphaTransparentPixmap (classtest.ClassIconTestCase) ... ok
testAlphaTransparentPixmapJPG (classtest.ClassIconTestCase) ... ERROR
testAlphaTransparentPixmapPNG24 (classtest.ClassIconTestCase) ... ok
testIndexedTransparentPixmap (classtest.ClassIconTestCase) ... ok
testIndexedTransparentPixmapJPG (classtest.ClassIconTestCase) ... ERROR
testConstructorNoArg (classtest.ClassObjTestCase) ... ok
testConstructorWithArg (classtest.ClassObjTestCase) ... ok
EmptyMapExceptionTestCase.testDrawEmptyMap: drawing an empty map
returns proper error ... ok
MapConstructorTestCase.testMapConstructorEmptyStringArg: test map
constructor with old-style empty string argument ... ok
MapConstructorTestCasetest.testMapConstructorEmptyStringArg: map
constructor with filename argument ... ok
MapConstructorTestCase.testMapConstructorNoArg: test map constructor
with no argument ... ok
MapExceptionTestCase.testDrawBadData: a bad data descriptor in a layer
returns proper error ... ok
test the rebinding of a map's extent ... ok
MapExtentTestCase.testSetExtent: test the setting of a mapObj's extent ... ok
MapExtentTestCase.testSetExtentBadly: test that mapscript raises an
error for an invalid mapObj extent ... ok
expect fontset file to be 'fonts.txt' ... ok
MapLayersTestCase.testMapInsertLayer: test insertion of a new layer at
default (last) index ... ok
MapLayersTestCase.testMapInsertLayerAtZero: test insertion of a new
layer at first index ... ok
MapLayersTestCase.testMapInsertLayerBadIndex: expect an exception when
index is too large ... ok
MapLayersTestCase.testMapInsertLayerDrawingOrder: test affect of
insertion of a new layer at index 1 on drawing order ... ok
expect an exception on attempt to insert a NULL Layer ... ok
removal of highest index (tail) layer ... ok
removal of lowest index (0) layer ... ok
test affect of layer removal on drawing order ... ok
MapMetaDataTestCase.testClassMetaData: class metadata keys are correct
values ... ok
MapMetaDataTestCase.testFirstKeyAccess: first metadata key is correct
value ... ok
MapMetaDataTestCase.testInvalidKeyAccess: an invalid map metadata key
returns proper error ... ok
MapMetaDataTestCase.testLastKeyAccess: last metadata key is correct value ... ok
MapMetaDataTestCase.testLayerMetaData: layer metadata keys are correct
values ... ok
MapMetaDataTestCase.testMapMetaData: map metadata keys are correct values ... ok
testESRIWKT (maptest.MapSetWKTTestCase) ... ok
testOGCWKT (maptest.MapSetWKTTestCase) ... ok
testWellKnownGEOGCS (maptest.MapSetWKTTestCase) ... ok
testDefaultSize (maptest.MapSizeTestCase) ... ok
testSetSize (maptest.MapSizeTestCase) ... ok
an empty map should have fontset filename == None ... ok
a color can be initialized with arguments ... ok
a color can be initialized with no arguments ... ok
invalid hex color string raises proper error ... ok
a color can be set using lower case hex ... ok
a color can be set using upper case hex ... ok
a color can be set using setRGB method ... ok
a color can be outputted as hex ... ok
raise an error in the case of an undefined color ... ok
imageObj constructor works ... ok
imageObj with a filename works ... ok
imageObj with a filename and a driver works ... ok
imageObj with a file stream works ... ok
imageObj with a cStringIO works ... ok
imageObj with a URL stream works ... ERROR
imageObj with an optional driver works ... ok
image returns bytes ... ok
image writes data to an open filehandle ... ok
image writes data to a StringIO instance ... ok
test that an image can be saved as a string ... ok
create a rect in image units ... ok
in image units miny should be greater than maxy ... ok
test formatted error message ... ok
point is contained (spatially) in rectangle ... ok
point is not contained (spatially) in rectangle ... ok
a rect can be initialized with arguments ... ok
an invalid extent raises proper error (x direction) ... ok
an invalid extent raises proper error (y direction) ... ok
a rect can be initialized with no args ... ok
a rect can be converted into a MS_POLYGON shape ... ok
return properly formatted string ... ok
__str__ returns properly formatted string ... ok
test_getfeature (pgtest.SubSelectNoSRIDTest) ... ERROR
test_getfeature (pgtest.SubSelectTest) ... ERROR
test_getfeature (pgtest.TableTest) ... ERROR
test_getfeature (pgtest.ViewTest) ... ERROR
MapCloningTestCase.testClonedLayers: the layers of a cloned map equal
the original ... ok
MapCloningTestCase.testClonedName: the name of a cloned map equals the
original ... ok
drawing a cloned map works properly ... ok
drawing a cloned map works properly ... ERROR
drawing a cloned map works properly ... ok
MapCloningTestCase.testSetFontSet: the number of fonts in a cloned map
equal original ... ok
MapCloningTestCase.testSetSymbolSet: the number of symbols in a cloned
map equal original ... ok
draw a blue polygon and a red polygon ... ok
DrawProgrammedStylesTestCase.testDrawPoints: point drawing with styles
works as advertised ... ok
a new style can be appended properly ... ok
NewStylesTestCase.testAppendNewStyleOldWay: a new style can be
appended properly using old method ... ok
check attributes of a cloned style ... ok
attempt to insert a NULL style should raise error ... ok
NewStylesTestCase.testInsertNewStyleAtIndex0: a new style can be
inserted ahead of all others ... ok
NewStylesTestCase.testInsertStylePastEnd: inserting a style past the
end of the list raises the proper error ... ok
NewStylesTestCase.testModifyMultipleStyle: multiple styles can be
modified ... ok
NewStylesTestCase.testRemovePointStyle: a point style can be properly
removed ... ok
a style can be set with a color tuple ... ok
a new style is properly initialized ... ok
adding a point to an inline feature works correctly ... ok
the number of features in the inline layer is correct ... ok
returning the shape from an inline feature works ... ok
the number of lines is correct ... ok
test shape can be copied ... ok
testNullValue (shapetest.ShapeValuesTestCase) ... ok
testSetValue (shapetest.ShapeValuesTestCase) ... ok
testGetPointWKT (shapetest.ShapeWKTTestCase) ... ok
testSetPointWKT (shapetest.ShapeWKTTestCase) ... ok
map drawing with multiple threads ... ok
mapserver exceptions should be contained to a thread ... ok
mapserver exceptions behave with multiple threads ... ok
testDrawWMS (threadtest.OWSRequestTestCase) ... ok
test that a new output format can be created on-the-fly ... ok
test built in JPEG format ... Exception in thread d4:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d6:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d5:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d3:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

Exception in thread d0:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

ERROR
test built in PNG RGB format ... okException in thread d7:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.


testRemoveOutputFormat may fail depending on GD options ...
okException in thread d9:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.


test selection of built-in JPEG formatException in thread d8:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/threadtest.py",
line 176, in draw_map_wms
    mo.selectOutputFormat('image/jpeg')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'image/jpeg'.

 ... ERROR
testOutputFormatConstructor (outputformattest.OutputFormatTestCase) ... ok
testCreateUnsupported (outputformattest.UnsupportedFormatTestCase) ... FAIL
OWSRequestTestCase.testGetParameter: OWS can get request parameters by
index ... ok
OWSRequestTestCase.testGetParameterByName: OWS can get request
parameters by name ... ok
OWSRequestTestCase.testInit: OWS initializer works right ... ok
OWSRequestTestCase.testLoadWMSRequest: OWS can load a WMS request ... ok
OWSRequestTestCase.testResetParam: OWS can reset parameters by name ... ok
adding a point to a line behaves correctly ... ok
numpoints is immutable, this should raise error ... FAIL
created line has the correct number of points ... ok
points in the line share are the same that were input ... ok
testSettingFonts (fonttest.FontTestCase) ... ok
point can be created with arguments ... ok
point can be created with no arguments ... ok
return properly formatted string in toString() ... ok
return properly formatted string ... ok
point can have its x and y reset ... ok
point can have its x and y reset (with m value) ... ok
point can have its x, y, z reset (with m value) ... ok
resetting imagepath doesn't cause segfault ... ok
draw using a new symbol added to the fixture ... ok
expect getNumSymbols == 2 from test fixture test.map ... ok
expect index of 'circle' symbol to be 1 in test fixture symbolset ... ok
expect numsymbols == 2 from test fixture test.map ... ok
test names of symbols in test fixture's symbolset ... ok
add two new symbols to a SymbolSet ... ok
new instance of symbolSetObj from symbols.txt ... ok
new instance of symbolSetObj should have one symbol ... ok
testError (symbolsettest.SymbolSetTestCase) ... ok
after removing a symbol, expect numsymbols -= 1 ... ok
save a new SymbolSet to disk ... ok
test to make sure that no one has hidden ALPHA ... ok
testAttributeQuery (layertest.AttributeLayerQueryTestCase) ... ok
testAttributeQueryNoResults (layertest.AttributeLayerQueryTestCase) ... ok
testLogicalAttributeQuery (layertest.AttributeLayerQueryTestCase) ... ok
layer expression can be properly cleared ... ok
layer expression can be a compound logical expression ... ok
layer expression can be logical expression ... ok
layer expression string can be quoted ... ok
layer expression can be regular expression ... ok
layer expression can be set to string ... ok
testExternalClassification (layertest.InlineLayerTestCase) ... ok
inserting NULL class should raise an error ... ok
insert class at default index ... ok
insert class at index 0 ... ok
check attributes of a cloned layer ... ok
test layer constructor with map argument ... ok
test layer constructor with no argument ... ok
direct access to a layer's extent works properly ... ok
test layer.setExtent() and layer.getExtent() to return preset instead
of calculating extents ... ok
retrieve the extent of a polygon layer ... ok
retrieve the extent of a polygon layer ... ok
test resetting a layer's extent ... ok
clearing a self.layer's processing directive works ... ok
setting a layer's processing directive works ... ok
LayerTestCase.testGetLayerOrder: get layer drawing order ... ok
LayerTestCase.testLayerConstructorOwnership: newly constructed layer
has proper ownership ... ok
LayerTestCase.testSetLayerOrder: set layer drawing order ... ok
expect visibility ... ok
expect false visibility after switching status off ... ok
expect false visibility after zooming out beyond maximum ... ok
RemoveClassTestCase.testRemoveClass1ClassName: confirm removing the
layer's first class reverts the name of the second class ... ok
RemoveClassTestCase.testRemoveClass1NumClasses: removing the layer's
first class by index leaves one class left ... ok
RemoveClassTestCase.testRemoveClass2ClassName: confirm removing the
layer's second class reverts the name of the first class ... ok
RemoveClassTestCase.testRemoveClass2NumClasses: removing the layer's
second class by index leaves one class left ... ok
removing first layer reverts it to the second layer's name ... ok
removing the first layer by index from the mapfile leaves three ... ok
removing of the second layer reverts it to the first layer's name ... ok
removing second layer by index from mapfile leaves three layers ... ok
testPointQuery (layertest.SpatialLayerQueryTestCase) ... ok
testPointQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok
testRectQuery (layertest.SpatialLayerQueryTestCase) ... ok
testRectQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok
testShapeQuery (layertest.SpatialLayerQueryTestCase) ... ok
testShapeQueryNoResults (layertest.SpatialLayerQueryTestCase) ... ok
expect an error rather than segfault when adding an empty shape ... ok
Fetch dbf information from shapefile ... ok
draw a map using the set image symbol ... ok
draw a map using the set image symbol ... ok
set image of new symbolObj ... ok
set image of new symbolObj ... ok
get symbol points as line and test coords ... ok
draw a RGBA PNG pixmap on JPEG canvas ... ERROR
draw a RGBA PNG pixmap on PNG canvas ... ok
add lines of points to an existing symbol ... ok
expect success after setting an existing symbol's style ... ok
create new instance of symbolObj ... ok
create new instance of symbolObj from an image ... ok
ZoomPointTestCase.testRecenter: recentering the map with a point
returns the same extent ... ok
ZoomPointTestCase.testZoomBadExtent: zooming to a bad extent raises
proper error ... ok
ZoomPointTestCase.testZoomBadSize: zooming to a bad size raises proper
error ... ok
ZoomPointTestCase.testZoomInPoint: zooming in by a power of 2 returns
the proper extent ... ok
ZoomPointTestCase.testZoomOutPoint: zooming out by a power of 2
returns the proper extent ... ok
ZoomPointTestCase.testZoomOutPointConstrained: zooming out to a
constrained extent returns proper extent ... ok
ZoomRectangleTestCase.testZoomRectangle: zooming to an extent returns
proper map extent ... ok
zooming into an invalid extent raises proper error ... ok
ZoomRectangleTestCase.testZoomRectangleConstrained: zooming to a
constrained extent returns proper extent ... ok
ZoomScaleTestCase.testRecenter: recentering map returns proper extent ... ok
ZoomScaleTestCase.testZoomInScale: zooming in to a specified scale
returns proper extent ... ok
ZoomScaleTestCase.testZoomOutPointConstrained: zooming out to a
constrained extent returns proper extent ... ok
ZoomScaleTestCase.testZoomOutScale: zooming out to a specified scale
returns proper extent ... ok

======================================================================
ERROR: testAlphaTransparentPixmapJPG (classtest.ClassIconTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/classtest.py",
line 92, in testAlphaTransparentPixmapJPG
    self.map.selectOutputFormat('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
ERROR: testIndexedTransparentPixmapJPG (classtest.ClassIconTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/classtest.py",
line 108, in testIndexedTransparentPixmapJPG
    self.map.selectOutputFormat('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
ERROR: imageObj with a URL stream works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/imagetest.py",
line 132, in testConstructorUrlStream
    imgobj = mapscript.imageObj(url, 'GD/JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1461, in __init__
    this = _mapscript.new_imageObj(*args)
MapServerError: msLoadImageGDStream(): GD library error. Unable to
initialize image

======================================================================
ERROR: test_getfeature (pgtest.SubSelectNoSRIDTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py",
line 119, in test_getfeature
    self.lo.open()
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open
    def open(*args): return _mapscript.layerObj_open(*args)
MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen
called but unimplemented!  (mapserver not compiled with postgis
support)

======================================================================
ERROR: test_getfeature (pgtest.SubSelectTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py",
line 100, in test_getfeature
    self.lo.open()
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open
    def open(*args): return _mapscript.layerObj_open(*args)
MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen
called but unimplemented!  (mapserver not compiled with postgis
support)

======================================================================
ERROR: test_getfeature (pgtest.TableTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py",
line 64, in test_getfeature
    self.lo.open()
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open
    def open(*args): return _mapscript.layerObj_open(*args)
MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen
called but unimplemented!  (mapserver not compiled with postgis
support)

======================================================================
ERROR: test_getfeature (pgtest.ViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/pgtest.py",
line 82, in test_getfeature
    self.lo.open()
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1164, in open
    def open(*args): return _mapscript.layerObj_open(*args)
MapServerError: msPOSTGISLayerOpen(): Query error. msPOSTGISLayerOpen
called but unimplemented!  (mapserver not compiled with postgis
support)

======================================================================
ERROR: drawing a cloned map works properly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/clonetest.py",
line 94, in testDrawCloneJPEG
    self.mapobj_clone.selectOutputFormat('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
ERROR: test built in JPEG format
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py",
line 97, in testBuiltInJPEGFormat
    self.map.selectOutputFormat('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
ERROR: test selection of built-in JPEG format
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py",
line 107, in testSelectBuiltInJPEGFormat
    self.map.selectOutputFormat('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1361, in
selectOutputFormat
    def selectOutputFormat(*args): return
_mapscript.mapObj_selectOutputFormat(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
ERROR: draw a RGBA PNG pixmap on JPEG canvas
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/symboltest.py",
line 165, in testRGBASymbolInJPEG
    self.map.setImageType('JPEG')
  File "../../build/lib.linux-i686-2.4/mapscript.py", line 1360, in setImageType
    def setImageType(*args): return _mapscript.mapObj_setImageType(*args)
MapServerError: setImageType(): General error message. Unable to find
IMAGETYPE 'JPEG'.

======================================================================
FAIL: testCreateUnsupported (outputformattest.UnsupportedFormatTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/outputformattest.py",
line 117, in testCreateUnsupported
    'PDF')
AssertionError: MapServerError not raised

======================================================================
FAIL: numpoints is immutable, this should raise error
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/mapserver-5.2.0/mapscript/python/tests/cases/linetest.py",
line 71, in testAlterNumPoints
    self.assertRaises(AttributeError, setattr, self.line, 'numpoints', 3)
AssertionError: AttributeError not raised

----------------------------------------------------------------------
Ran 252 tests in 6.520s

FAILED (failures=2, errors=11)


The documentation mentions making "the appropriate edits" to the
test.map file but I'm not clear on what those are. It also looks like
lack of jpeg support is causing errors? ./mapserv -v gives:

MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=PDF
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7
INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Thank you,
Ian



More information about the MapServer-users mailing list