Package Details: python-pysdl2 0.9.16-1

Git Clone URL: https://aur.archlinux.org/python-pysdl2.git (read-only, click to copy)
Package Base: python-pysdl2
Description: Python ctypes wrapper around SDL2
Upstream URL: https://github.com/marcusva/py-sdl2
Licenses: custom:CC0
Submitter: feuri
Maintainer: frealgagu
Last Packager: frealgagu
Votes: 41
Popularity: 1.27
First Submitted: 2013-08-07 13:55 (UTC)
Last Updated: 2023-06-29 16:24 (UTC)

Pinned Comments

frealgagu commented on 2020-12-05 18:01 (UTC)

I maintain the latest built package at:

https://github.com/frealgagu/archlinux.python-pysdl2/releases

Latest Comments

k0r0ng commented on 2024-05-21 18:33 (UTC)

python-setuptools should be makedepends instead of depends

C0rn3j commented on 2021-12-13 00:25 (UTC)

While not mandated by packaging standards, it'd be nice to bump up pkgrel to smooth out transition to the newly shipped Python 3.10

frealgagu commented on 2020-12-05 18:01 (UTC)

I maintain the latest built package at:

https://github.com/frealgagu/archlinux.python-pysdl2/releases

frealgagu commented on 2018-03-24 03:04 (UTC)

I've changed the upstream URL to github, GPG verification is no longer needed.

<deleted-account> commented on 2017-02-11 16:48 (UTC)

In order to make the GPG verification work, you have to import the key of Marcus von Appen: gpg --recv-keys --keyserver hkp://pgp.mit.edu F5645D06D1395E36

feuri commented on 2013-09-26 13:55 (UTC)

These warnings appear, because the filesystem API for SDL2 is already included in pysdl2 (see https://bitbucket.org/marcusva/py-sdl2/commits/2d6920dbf2ee51f4f6bdf536a41ca202a5548e0f ) but not in the official SDL2 releases. So for now you can just ignore these warnings.

ewtoombs commented on 2013-09-25 22:35 (UTC)

Oops. Fixed. I required the optional sdl2_image package. Still, the error message that got produced could have been much clearer than "Surface should be a surface". I'll send that upstream. I'm still getting the warnings though: python examples/helloworld.py /usr/lib/python3.3/site-packages/sdl2/dll.py:74: UserWarning: function 'SDL_GetBasePath' not found in <CDLL 'libSDL2-2.0.so.0', handle 14c3520 at 7f8321b545d0>, using replacement (funcname, self._dll)) /usr/lib/python3.3/site-packages/sdl2/dll.py:74: UserWarning: function 'SDL_GetPrefPath' not found in <CDLL 'libSDL2-2.0.so.0', handle 14c3520 at 7f8321b545d0>, using replacement (funcname, self._dll)) Using software rendering

ewtoombs commented on 2013-09-25 22:32 (UTC)

The hello world example isn't running on my machine. To reproduce: $ python examples/helloworld.py /usr/lib/python3.3/site-packages/sdl2/dll.py:74: UserWarning: function 'SDL_GetBasePath' not found in <CDLL 'libSDL2-2.0.so.0', handle 12cef60 at 7fd80b630890>, using replacement (funcname, self._dll)) /usr/lib/python3.3/site-packages/sdl2/dll.py:74: UserWarning: function 'SDL_GetPrefPath' not found in <CDLL 'libSDL2-2.0.so.0', handle 12cef60 at 7fd80b630890>, using replacement (funcname, self._dll)) Using software rendering Traceback (most recent call last): File "examples/helloworld.py", line 87, in <module> sys.exit(run()) File "examples/helloworld.py", line 59, in run sprite = factory.from_image(RESOURCES.get_path("hello.bmp")) File "/usr/lib/python3.3/site-packages/sdl2/ext/sprite.py", line 405, in from_image return self.from_surface(load_image(fname), True) File "/usr/lib/python3.3/site-packages/sdl2/ext/sprite.py", line 423, in from_surface s = SoftwareSprite(tsurface, free) File "/usr/lib/python3.3/site-packages/sdl2/ext/sprite.py", line 299, in __init__ raise TypeError("surface must be a SDL_Surface") TypeError: surface must be a SDL_Surface $ No idea what just happened.