Hi, Could you raise an issue for this (https://bitbucket.org/pyglet/pyglet/issues)? That is a programming error. The last line should read: self._search_cache.popitem(last=False)[1].dispose()
Or it might even be writting with a few more lines for clarity Rob Op zaterdag 28 februari 2015 18:31:49 UTC+1 schreef Jeremy Gray: > > Congrats on the recent release of 1.2! Thats a huge milestone. It will be > a great help to me going forward to have this available. > > Mostly the transition has been smooth for me, but I get an unexpected > error when testing code on travis-ci that I don't get when testing on Mac > OS 10.9, or on travis with pyglet 1.1.4. My code, typically called with > font = '"" but I also tried "Helvetica" > > self._font = pyglet.font.load(font, int(self._heightPix), dpi=72, > italic=self.italic, bold=self.bold) > leads down into pyglet, eventually to: > > def _add_to_search_cache(self, search_pattern, result_pattern): > self._search_cache[(search_pattern.name, > search_pattern.size, > search_pattern.bold, > search_pattern.italic)] = > result_pattern > if len(self._search_cache) > self._cache_size: > self._search_cache.popitem(last=False).dispose() > > AttributeError: 'tuple' object has no attribute 'dispose' > > Any ideas how I can fix this? Thanks. > > --Jeremy > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
