[Tilecache] python ./setup.py test failed - tilecache 2.10

Ivan Mincik ivan.mincik at gista.sk
Wed Jun 10 06:07:17 EDT 2009


On Wednesday 10 June 2009, Tibor Arpas wrote:
> It looks to me that the doctests were not updated or tested with the
> new releases. I think you'll have to go around by skipping the
> "setup.py test" ... No specific advise though, as I don't have
> experience with building debian packages of python projects.
Thanks, maybe I missed information, that "python ./setup.py test" is not only case when building debian package. It will happend also when trying to run it from standard sources.
> 
> On Wed, Jun 10, 2009 at 10:16 AM, Ivan Mincik<ivan.mincik at gista.sk> wrote:
> > Hi,
> > I wanted to upgrade from tilecache 2.03 used in Debian Lenny to version 2.10. When creating debian tilecache-2.10 package the process is failing on "python ./setup.py test".
> > The same command is running without any problems with 2.03 version. What can make this problem ?
> >
> > OS: Debian Lenny i386.
> >
> > Errors are following:
> > ivo at rybo:~/tmp/test_deb/tilecache/tilecache-2.10$ python ./setup.py test
> > running test
> > running egg_info
> > writing TileCache.egg-info/PKG-INFO
> > writing top-level names to TileCache.egg-info/top_level.txt
> > writing dependency_links to TileCache.egg-info/dependency_links.txt
> > reading manifest file 'TileCache.egg-info/SOURCES.txt'
> > writing manifest file 'TileCache.egg-info/SOURCES.txt'
> > running build_ext
> > Doctest: HACKING.swarm.txt ... FAIL
> > Doctest: HACKING.txt ... FAIL
> > Doctest: Service.txt ... FAIL
> >
> > ======================================================================
> > FAIL: Doctest: HACKING.swarm.txt
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >  File "/usr/lib/python2.5/doctest.py", line 2128, in runTest
> >    raise self.failureException(self.format_failure(new.getvalue()))
> > AssertionError: Failed doctest test for HACKING.swarm.txt
> >  File "/home/ivo/tmp/test_deb/tilecache/tilecache-2.10/tests/HACKING.swarm.txt", line 0
> >
> > ----------------------------------------------------------------------
> > File "/home/ivo/tmp/test_deb/tilecache/tilecache-2.10/tests/HACKING.swarm.txt", line 6, in HACKING.swarm.txt
> > Failed example:
> >    layers = { "Some Layer": Layer("Some Layer") }
> > Exception raised:
> >    Traceback (most recent call last):
> >      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
> >        compileflags, 1) in test.globs
> >      File "<doctest HACKING.swarm.txt[3]>", line 1, in <module>
> >        layers = { "Some Layer": Layer("Some Layer") }
> >      File "/home/ivo/tmp/test_deb/tilecache/tilecache-2.10/TileCache/Layer.py", line 137, in __init__
> >        self.paletted = False
> >    AttributeError: 'Layer' object has no attribute 'paletted'
> > ----------------------------------------------------------------------
> > File "/home/ivo/tmp/test_deb/tilecache/tilecache-2.10/tests/HACKING.swarm.txt", line 20, in HACKING.swarm.txt
> > Failed example:
> >    msg2 = Message.thaw(thunk, layers)
> > Exception raised:
> >    Traceback (most recent call last):
> >      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
> >        compileflags, 1) in test.globs
> >      File "<doctest HACKING.swarm.txt[11]>", line 1, in <module>
> >        msg2 = Message.thaw(thunk, layers)
> >    NameError: name 'layers' is not defined
> > ----------------------------------------------------------------------
> >
> > Thanks for help.
> > --
> > Ivan Mincik
> > Gista s.r.o.
> >
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
> >
> >
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 



-- 
Ivan Mincik
Gista s.r.o.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20090610/c1ef4370/attachment.bin


More information about the Tilecache mailing list