On 21/08/2009, at 4:09 AM, Chris Laux wrote:
> Yes, fresh checkout from http://los-cocos.googlecode.com/svn/trunk/.  
> Here's
> the tracebacks:
>
> ch...@laptop:~/newcocos/cocos2d/test> python test_tiles.py
> Traceback (most recent call last):
>  File "test_tiles.py", line 38, in <module>
>    test_layer = tiles.load('road-map.xml')['map0']
>  File "../cocos/tiles.py", line 374, in load
>    obj = Resource(filename, paths)
>  File "../cocos/tiles.py", line 258, in __init__
>    self.handle(root)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 273, in resource_factory
>    self.handle(child)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 557, in rectmap_factory
>    m = RectMapLayer(id, width, height, cells, origin, properties)
>  File "../cocos/tiles.py", line 853, in __init__
>    RectMapLayer.__init__(self, properties)
> TypeError: __init__() takes at least 5 arguments (2 given)

Whoops, I appear to have broken test_tiles, which I'll fix.


> ch...@laptop:~/newcocos/cocos2d/test> python test_tiles_model.py
> Traceback (most recent call last):
>  File "test_tiles_model.py", line 13, in <module>
>    from cocos.tiles import Rect, RectCell, RectMap, HexCell, HexMap,  
> Tile
> ImportError: cannot import name Rect

And here I didn't add the path hackery to the test file so it's  
running the test against your installed cocos library.


      Richard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to