[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [BUG] pygame-ctypes
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] [BUG] pygame-ctypes
- From: Phil Hassey <philhassey@xxxxxxxxx>
- Date: Mon, 21 Aug 2006 18:49:48 -0700 (PDT)
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 21 Aug 2006 21:49:57 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rrF1laDcBfTB/bzejn2DHN/uO2h4K/6DHbqm6+BcSMCdkREzUNoKrG2aPsMdab+DsKaIBH7Tb3H1PHn5WL0LqTDW/XG1lSgv02yoW6NkTk0fK/AYxxEIW+NGi/WQVg/U28M0AVBxuXSzIsilyfbY3PB2GPIn90Mdfs74iSaDPGo= ;
- In-reply-to: <44EA4199.9000309@cs.rmit.edu.au>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Alex,
python-numeric-24.0-1mdk
Could be it's just too out of date then?
Phil
Alex Holkner <aholkner@xxxxxxxxxxxxxx> wrote: Phil Hassey wrote:
> Hey,
>
> When I run this example and press the letter 'a':
>
> [phil@localhost examples_pygame]$ python blit_blends.py
> press keys 1-5 to change image to blit.
> A - ADD, S- SUB, M- MULT, - MIN, + MAX
> one pixel is:[(99, 0, 0, 255)]:
> press keys 1-5 to change image to blit.
> A - ADD, S- SUB, M- MULT, - MIN, + MAX
> Traceback (most recent call last):
> File "blit_blends.py", line 163, in ?
> main()
> File "blit_blends.py", line 77, in main
> im1.blit(img_to_blit, (0,0), None, blits[event.key])
> File
"/usr/lib/python2.4/site-packages/pygame/surface.py", line 199,
> in blit
> _surface_blit(self, source, destrect, sourcerect, special_flags)
> File "/usr/lib/python2.4/site-packages/pygame/surface.py", line
> 1155, in _surface_blit
> result = _software_blit(src, srcrect, dst, dstrect, special_flags)
> File "/usr/lib/python2.4/site-packages/pygame/surface.py", line
> 1347, in _software_blit
> dR = array.minimum(dR + sR, 255)
> TypeError: function not supported for these types, and can't coerce to
> supported types
This works for me with Numeric 24.2, numpy 0.9.8 and numarray 1.3.1 at
16, 24 and 32-bit depths. I suspect this is a Numeric incompatibility.
Can you let me know your versions of these, if installed.
Thanks
Alex.
Alex Holkner <aholkner@xxxxxxxxxxxxxx> wrote: Phil Hassey wrote:
> Hey,
>
> When I run this example and press the letter 'a':
>
> [phil@localhost examples_pygame]$ python blit_blends.py
> press keys 1-5 to change image to blit.
> A - ADD, S- SUB, M- MULT, - MIN, + MAX
> one pixel is:[(99, 0, 0, 255)]:
> press keys 1-5 to change image to blit.
> A - ADD, S- SUB, M- MULT, - MIN, + MAX
> Traceback (most recent call last):
> File "blit_blends.py", line 163, in ?
> main()
> File "blit_blends.py", line 77, in main
> im1.blit(img_to_blit, (0,0), None, blits[event.key])
> File "/usr/lib/python2.4/site-packages/pygame/surface.py", line 199,
> in blit
> _surface_blit(self, source, destrect, sourcerect, special_flags)
> File "/usr/lib/python2.4/site-packages/pygame/surface.py", line
> 1155, in _surface_blit
>
result = _software_blit(src, srcrect, dst, dstrect, special_flags)
> File "/usr/lib/python2.4/site-packages/pygame/surface.py", line
> 1347, in _software_blit
> dR = array.minimum(dR + sR, 255)
> TypeError: function not supported for these types, and can't coerce to
> supported types
This works for me with Numeric 24.2, numpy 0.9.8 and numarray 1.3.1 at
16, 24 and 32-bit depths. I suspect this is a Numeric incompatibility.
Can you let me know your versions of these, if installed.
Thanks
Alex.
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.