Opened 18 years ago
Closed 17 years ago
#1865 closed defect (fixed)
python test do not pass --without-wms
Reported by: | Owned by: | hobu | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapScript-Python | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
Testing different configurations, I have noticed that we 'have to' set --with-wms to run python mapscripts. Test will fail with the option --without-wms ========== dn_nobellsconfig.sh ================== ./configure --disable-ignore-missing-data \ --disable-point-z-m \ --enable-debug \ --enable-converage \ --enable-perlv-ld-detect \ --disable-runpath \ --without-freetype \ --without-zlib \ --without-png \ --without-jpeg \ --without-xpm \ --without-pdf \ --without-eppl \ --with-proj=/usr/local/ \ --without-threads \ --without-sde \ --without-mpatrol \ --without-geos \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --without-tiff \ --without-postgis \ --without-mygis \ --without-oraclespatial \ --without-ming \ --without-wms \ --without-wfs \ --without-wcs \ --without-wmsclient \ --without-wfsclient \ --without-sos \ --without-curl-config \ --without-xml2-config \ --without-fastcgi \ --without-httpd \ --without-warnings \ --without-php \ --without-apxs \ --without-apache \ --without-java-include-os-name # gmake clean gmake cd mapscript/python swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i python setup.py build python setup.py install cd tests/cases python runalltests.py ================================= Error: Traceback (most recent call last): File "runalltests.py", line 59, in ? m = __import__(test) File "/usr/local/mapserver/mapscript/python/tests/cases/symbolsettest.py", line 39, in ? from testing import mapscript, MapTestCase, TESTMAPFILE, XMARKS_IMAGE File "/usr/local/mapserver/mapscript/python/tests/cases/testing.py", line 61, in ? import mapscript File "../../build/lib.linux-i686-2.3/mapscript.py", line 4, in ? import _mapscript ImportError: ../../build/lib.linux-i686-2.3/_mapscript.so: undefined symbol: msOWSGetSchemasLocation Denis
Change History (9)
comment:1 by , 18 years ago
Component: | Build Problems → MapScript-Python |
---|
comment:3 by , 18 years ago
Cc: | added |
---|---|
Milestone: | → 4.10 release |
Owner: | changed from | to
Reassigning to owner of python MapScript module and setting 4.10 target milestone
comment:4 by , 18 years ago
Status: | new → assigned |
---|
Assefa fixed this. mapogcsld.c was pivoting on #ifdef USE_OGR and was pulling in msOWSGetSchemasLocation but it wasn't in the header because of different options.
comment:6 by , 18 years ago
--with-wms option is not fixed. But I still get problem with testSetValue and testNullValue. These two tests always failed on me. ====================================================================== ERROR: testSetValue (shapetest.ShapeValuesTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/mapserver/mapscript/python/tests/cases/shapetest.py", line 106, in testSetValue so.setValue(0, 'Foo'); File "../../build/lib.linux-i686-2.3/mapscript.py", line 1114, in setValue def setValue(*args): return _mapscript.shapeObj_setValue(*args) MapServerError: setValue(): Shapefile error. Can't set value ====================================================================== FAIL: testNullValue (shapetest.ShapeValuesTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/mapserver/mapscript/python/tests/cases/shapetest.py", line 101, in testNullValue assert so.numvalues == 4 AssertionError
comment:8 by , 18 years ago
testNullValue fails on the buildbot http://mapserver.builds.hobu.net/linux-i386-FC4-HEAD/builds/164/step-shell_9/0 same with testSetValue AFAIK, these have been failing for quite awhile. I'd like to clean them up, but won't be able to for beta2.
comment:9 by , 17 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
All of the python mapscript tests are now passing for me except for the ones related to postgis, which require you to set up a local pg instance.
Note:
See TracTickets
for help on using tickets.