[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] BUG: required modules not raising error when failing to import was Re: [pygame] Surfarray.array_alpha() bugfix, py2exe/py2app segfault



ah yes, good one.


On Wed, Feb 4, 2009 at 2:07 PM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
> Simple. The bufferproxy module is not included in the executables. I would
> also check for surflock.
>
> The moral of the story, when critical modules are missing, they should not
> be quietly ignored. An exception has to be raised. Brian Fisher did this
> with _numericsurfarray when Numeric is missing. It simply fails to import. I
> did the same for _numericsndarray. Now it needs to be done for Pygame
> extention modules that rely on other Pygame modules.
>