merging back the new pyshapelib
Bram de Greve
bram.degreve at gmail.com
Thu Jan 3 02:10:47 CET 2008
You're simply too quick. I hardly have sent my requesting for testing,
and you already responded =)
I'll check this out tomorrow. It's far past bedtime now ;)
Bramz
Bernhard Reiter wrote:
> I've done a (clumsy) attempt to merge back the unicode branch.
> Here are some results (without much analysis).
> Bram, if you have comments, let me know. :)
>
> I have noticed so far:
> a) libraries/pyshapelib/setup.py needs an update with new author and version
> information
> b) libraries/pyshapelib/README needs an update as we are not using SWIG
> anymore. Also the NEWS file.
> c) The test do not seem to be run from the thuban/test/ directory when doing
> runtests.py
> d) python libraries/pyshapelib/pytest.py seems to be an unsual name and
> testing method. Probably we should also use the unittest module.
>
> This is what I have done:
> 1) Fresh checkout of trunk
> svn checkout svn+ssh://bernhard@scm.wald.intevation.org/thuban/trunk/thuban
> cd thuban
> 2) merge attempt taking the last sync point of Bram (r2793) as a reference
> svn merge svn+ssh://bernhard@scm.wald.intevation.org/thuban/trunk/thuban@2793
> svn+ssh://bernhard@scm.wald.intevation.org/thuban/branches/WIP-pyshapelib-Unicode/thuban .
>
> Running the tests I got more trouble then usual:
> python setup.py build_ext --use-wx-python-swig-hack install_local
>
> LANG=de_DE.UTF-8
> ======================================================================
> ERROR: test_load_1_0.TestNonAsciiColumnName.test
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_load_1_0.py",
> line 289, in test
> session = load_session(self.filename())
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 687, in load_session
> handler.read(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/xmlreader.py",
> line 75, in read
> parser.parse(self.__file)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 109, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123,
> in parse
> self.feed(buffer)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 216, in feed
> self._parser.Parse(data, isFinal)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 353, in start_element_ns
> AttributesNSImpl(newattrs, qnames))
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/xmlreader.py",
> line 114, in startElementNS
> getattr(self, method_name[0])(name, qname, attrs)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 385, in start_fileshapesource
> self.idmap[ID] = self.open_shapefile(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 281, in open_shapefile
> store = self.theSession.OpenShapefile(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/session.py",
> line 296, in OpenShapefile
> store = ShapefileStore(self, filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/data.py",
> line 201, in __init__
> self.dbftable = table.DBFTable(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/table.py",
> line 98, in __init__
> ftype, name, width, prec = self.dbf.field_info(i)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 2:
> ordinal not in range(128)
>
> ======================================================================
> ERROR: test_load.TestNonAsciiColumnName.test
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_load.py",
> line 331, in test
> session = load_session(self.filename())
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 687, in load_session
> handler.read(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/xmlreader.py",
> line 75, in read
> parser.parse(self.__file)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 109, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123,
> in parse
> self.feed(buffer)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 216, in feed
> self._parser.Parse(data, isFinal)
> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 353, in start_element_ns
> AttributesNSImpl(newattrs, qnames))
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/xmlreader.py",
> line 114, in startElementNS
> getattr(self, method_name[0])(name, qname, attrs)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 385, in start_fileshapesource
> self.idmap[ID] = self.open_shapefile(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/load.py",
> line 281, in open_shapefile
> store = self.theSession.OpenShapefile(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/session.py",
> line 296, in OpenShapefile
> store = ShapefileStore(self, filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/data.py",
> line 201, in __init__
> self.dbftable = table.DBFTable(filename)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Thuban/Model/table.py",
> line 98, in __init__
> ftype, name, width, prec = self.dbf.field_info(i)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 2:
> ordinal not in range(128)
>
> ======================================================================
> FAIL: test_transientdb.TestTransientTable.test_auto_transient_table
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_transientdb.py",
> line 138, in test_auto_transient_table
> self.run_iceland_political_tests(table)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_transientdb.py",
> line 59, in run_iceland_political_tests
> self.assertEquals(columns[3].type, FIELDTYPE_INT)
> AssertionError: 'double' != 'int'
>
> ======================================================================
> FAIL: test_transientdb.TestTransientTable.test_transient_table
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_transientdb.py",
> line 111, in test_transient_table
> self.run_iceland_political_tests(table)
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/test_transientdb.py",
> line 59, in run_iceland_political_tests
> self.assertEquals(columns[3].type, FIELDTYPE_INT)
> AssertionError: 'double' != 'int'
>
> ======================================================================
> FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Column
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py",
> line 200, in test_Column
> self.assertEquals(self.table.Column(0).type, FIELDTYPE_INT)
> AssertionError: 'double' != 'int'
>
> ======================================================================
> FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Columns
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/mobilehome/bernhard/hacking/thuban/svn/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py",
> line 194, in test_Columns
> self.assertEquals(self.table.Columns()[0].type, FIELDTYPE_INT)
> AssertionError: 'double' != 'int'
>
> ----------------------------------------------------------------------
> Ran 578 tests in 81.882s
>
> FAILED (failures=4, errors=2)
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Thuban-devel mailing list
> Thuban-devel at intevation.de
> https://intevation.de/mailman/listinfo/thuban-devel
>
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)