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

Re: [pygame] PySDL2 0.9.2 released



On, Sun Apr 13, 2014, Floris van Manen wrote:

>
> On 13 Apr 2014, at 09:25, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
>
> > PySDL2 0.9.2 has been released.
>
>
> on OSX 10.9.2 only the following examples work properly:
>
>
> sdl2hello.py
> pixelaccess.py
> draw.py
> colorpalettes.py
>
>
>
> All others fail for various reasons:
>
> ===
> particles.py
>
> AttributeError: "'module' object has no attribute 'Renderer'"
>
> module body in particles.py at line 234
> sys.exit(run())
> function run in particles.py at line 178
> renderer = sdl2.ext.Renderer(window)

See the end of this mail

> ===
> oopengl.py
>
> ValueError: 'numpy.dtype has the wrong size, try recompiling'
>
> module body in opengl.py at line 5
> from OpenGL import GL, GLU
> module body in __init__.py at line 3
> from OpenGL.GL.VERSION.GL_1_1 import *
> module body in GL_1_1.py at line 10
> from OpenGL import platform, constants, constant, arrays
> module body in __init__.py at line 22
> formathandler.FormatHandler.loadAll()
> function loadAll in formathandler.py at line 28
> cls.loadPlugin( entrypoint )
> function loadPlugin in formathandler.py at line 35
> plugin_class = entrypoint.load()
> function load in plugins.py at line 14
> return importByName( self.import_path )
> function importByName in plugins.py at line 28
> module = __import__( ".".join(moduleName), {}, {}, moduleName)
> module body in numpymodule.py at line 30
> from OpenGL_accelerate.numpy_formathandler import NumpyHandler
> function init OpenGL_accelerate.numpy_formathandler (src/numpy_formathandler.c:5467)in untitled at line 155
> None

Seems to be an OpenGL problem, not on in PySDL2. Try to update your numpy and
PyOpenGL bindings.


> ===
> helloworld.py
>
> Using software rendering
> AttributeError: "'SpriteFactory' object has no attribute 'create_sprite_render_system'"
>
> module body in helloworld.py at line 78
> sys.exit(run())
> function run in helloworld.py at line 45
> spriterenderer = factory.create_sprite_render_system(window)
[...]

Those errors indicate that you may have some older version of PySDL2 installed
(probably 0.8.0 or earlier), which is loaded instead of 0.9.2. Try to
deinstall it first. 0.9.0 introduced some backwards-incompatible changes
(renaming of some classes and methods).

Cheers
Marcus

Attachment: pgpZ6UDv8pBJw.pgp
Description: PGP signature