ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
Re: [pygame] [BUG] pygame-ctypes
by Alex Holkner other posts by this author
Aug 22 2006 6:03PM messages near this date
Re: [pygame] [BUG] pygame-ctypes | [pygame] new pygameC or pygame.
Phil Hassey wrote:

>  Alex,
> 
>  python-numeric-24.0-1mdk
> 
>  Could be it's just too out of date then?

I just tried with Numeric-24.0, and it still worked.  Not sure what the 
problem could be.

Alex.


> 
>  */Alex Holkner <aholkner@[...].au>/* 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.
> 
Thread:
Phil Hassey
Lenard Lindstrom
Alex Holkner
Alex Holkner
Phil Hassey
Alex Holkner

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved