pygame with numeric/numpy

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

pygame with numeric/numpy

Post by damNageHack »

http://www.pygame.org/ctypes/pygame-api/pygame.surfarray-module.html wrote:Module surfarray
Pygame module for accessing surface pixel data.
Functions to convert pixel data between pygame Surfaces and Numeric arrays. This module will only be available when pygame can use the external Numeric package.
Note, that surfarray is an optional module. It requires that Numeric is installed to be used. If not installed, an exception will be raised when it is used. eg. NotImplementedError: surfarray module not available
What is Numeric? Is there a package available for it? I get exactly these warning "surfarray module not available" with freevo (self packaged) and the (optional) dependency pygame.

I found this hint: http://aspn.activestate.com/ASPN/Mail/M ... on/3173129
But not sure which file to patch exactly, sitecomposite.py in freevo does not help.
Last edited by damNageHack on 5. Jun 2010, 10:10, edited 3 times in total.
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: pygame Package

Post by gapan »

This refers to either the old numeric: http://people.csail.mit.edu/jrennie/python/numeric/
or the new numpy: http://numpy.scipy.org/
Image
Image
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: pygame Package

Post by damNageHack »

Numarray and Numeric are no longer supported.
gapan, do you know about any main differences? :?
Image
This is the oppinion of the author, it does not force you to share and is signed automatically.
You are free to keep them all errors for your own. Linux is the best game I ever played.
Post Reply