By the wat, I found an ugly workaroud: >>> import pygame >>> surface = pygame.Surface((100, 100)) >>> data = "abcdefg" >>> buf = surface.get_buffer() >>> buf.write(data, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> IndexError: bytes to write exceed buffer size >>> buf.write(data*1, 0) >>>
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1336214 Title: pygame.surfarray.make_surface(numpyarray) gives IndexError To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pygame/+bug/1336214/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs