I maintain the latest built package at:
https://github.com/frealgagu/archlinux.python-pysdl2/releases
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: | |
Submitter: | feuri |
Maintainer: | frealgagu |
Last Packager: | frealgagu |
Votes: | 34 |
Popularity: | 1.11 |
First Submitted: | 2013-08-07 13:55 |
Last Updated: | 2020-12-05 18:00 |
I maintain the latest built package at:
https://github.com/frealgagu/archlinux.python-pysdl2/releases
I've changed the upstream URL to github, GPG verification is no longer needed.
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
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.
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
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.
Pinned Comments
frealgagu commented on 2020-12-05 18:01
I maintain the latest built package at:
https://github.com/frealgagu/archlinux.python-pysdl2/releases