Package Details: python-pysdl2 0.9.3-1

Git Clone URL: https://aur.archlinux.org/python-pysdl2.git (read-only)
Package Base: python-pysdl2
Description: A Python wrapper around the SDL2 library
Upstream URL: https://bitbucket.org/marcusva/py-sdl2/overview
Licenses: custom:CC0
Submitter: feuri
Maintainer: padfoot
Last Packager: padfoot
Votes: 16
Popularity: 0.193594
First Submitted: 2013-08-07 13:55
Last Updated: 2015-07-18 22:18

Dependencies (6)

Required by (2)

Sources (1)

Latest Comments

feuri commented on 2013-09-26 13:55

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

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

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.