mapscript python build test error
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Mon Jul 18 06:48:58 PDT 2005
Hi,
I am trying to build python mapscript from MapServer CVS and encounter
errors when running the tests. I have not installed the package yet as
root.
An earlier message I sent on another mapscript topic suggested upgrading
swig, but I have not done so yet (FYI I had to removed the -modern
option from the swig command below); however I'm not sure if this is the
cause of the test errors?
Thanks alot
..Tom
OS: Linux Fedora
MapServer: latest CVS (18 July 2005)
SWIG: 1.3.19
MapServer already compiled:
MapServer version 4.7 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPO
RTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=
OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
$ cd mapscript/
$ cd mapscript/python
$ swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i
swig error : Unrecognized option -modern
Use 'swig -help' for available options.
$ swig -python -shadow -o mapscript_wrap.c ../mapscript.i
$ python setup.py build
running build
running build_py
copying mapscript.py -> build/lib.linux-i686-2.3
running build_ext
building '_mapscript' extension
creating build/temp.linux-i686-2.3
creating build/temp.linux-i686-2.3/pygdioctx
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386
-mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -
DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I/usr/includ
e/python2.3 -I. -I/usr/local/include -I/usr/include/python2.3 -c
pygdioctx/pygdioctx.c -o build/temp.linux-i686-2.3/pygdioctx/p
ygdioctx.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386
-mcpu=i686 -D_GNU_SOURCE -fPIC -fPIC -DIGNORE_MISSING_DATA
-DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -
DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I/usr/includ
e/python2.3 -I. -I/usr/local/include -I/usr/include/python2.3 -c
mapscript_wrap.c -o build/temp.linux-i686-2.3/mapscript_wrap.o
$ cd tests/cases
$ python runalltests.py -v
======================================================================
ERROR: OWSRequestTestCase.testGetParameter: OWS can get request
parameters by index
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows
test.py", line 57, in testGetParameter
request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'
======================================================================
ERROR: OWSRequestTestCase.testGetParameterByName: OWS can get request
parameters by name
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows
test.py", line 63, in testGetParameterByName
request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'
======================================================================
ERROR: OWSRequestTestCase.testInit: OWS initializer works right
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows
test.py", line 49, in testInit
request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'
======================================================================
ERROR: OWSRequestTestCase.testLoadWMSRequest: OWS can load a WMS request
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows
test.py", line 78, in testLoadWMSRequest
request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'
======================================================================
ERROR: OWSRequestTestCase.testResetParam: OWS can reset parameters by
name
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/ows
test.py", line 69, in testResetParam
request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'
======================================================================
FAIL: numpoints is immutable, this should raise error
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/lin
etest.py", line 71, in testAlterNumPoints
self.assertRaises(AttributeError, setattr, self.line, 'numpoints',
3)
File
"/usr/src/build/394694-i386/install/usr/lib/python2.3/unittest.py", line
295, in failUnlessRaises
raise self.failureException, excName
AssertionError: AttributeError
======================================================================
FAIL: testCreateUnsupported (outputformattest.UnsupportedFormatTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/src/mapserver/cvs/mapserver/mapscript/python/tests/cases/out
putformattest.py", line 117, in testCreateUnsupp
orted
'PDF')
File
"/usr/src/build/394694-i386/install/usr/lib/python2.3/unittest.py", line
295, in failUnlessRaises
raise self.failureException, excName
AssertionError: MapServerError
----------------------------------------------------------------------
Ran 242 tests in 20.785s
FAILED (failures=2, errors=5)
More information about the MapServer-users
mailing list