Page 1 of 1

pygame with numeric/numpy

Posted: 4. Jun 2010, 13:28
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.

Re: pygame Package

Posted: 4. Jun 2010, 13:32
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/

Re: pygame Package

Posted: 5. Jun 2010, 10:09
by damNageHack
Numarray and Numeric are no longer supported.
gapan, do you know about any main differences? :?