Page 1 of 1

How do I install SDL and PySDL?

Posted: Sat Jun 30, 2018 2:45 pm
by boomonster
Hi there!

Just wondering if anyone has
successfully installed SDL 2.0
and PySDL on the Raspberry Pi 2
with Debian Stretch. When I tried in
Python to:

Code: Select all

import sdl2.ext
Python did this:

Code: Select all

>>> import sdl2.ext
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/sdl2/__init__.py", line 5, in <module>
    from .audio import *
  File "/usr/local/lib/python2.7/dist-packages/sdl2/audio.py", line 6, in <module>
    from .rwops import SDL_RWops, SDL_RWFromFile
  File "/usr/local/lib/python2.7/dist-packages/sdl2/rwops.py", line 54, in <module>
    SDL_LoadFile_RW = _bind("SDL_LoadFile_RW", [POINTER(SDL_RWops), POINTER(c_size_t), c_int], c_void_p)
  File "/usr/local/lib/python2.7/dist-packages/sdl2/dll.py", line 87, in bind_function
    (funcname, self._dll))
ValueError: could not find function 'SDL_LoadFile_RW' in <CDLL 'libSDL2-2.0.so.0', handle 86da58 at 76a2bc90>
>>> 
Any answers???

Re: How do I install SDL and PySDL?

Posted: Sat Jun 30, 2018 2:58 pm
by The Traveler
Install pygame.

Re: How do I install SDL and PySDL?

Posted: Wed Jul 04, 2018 6:31 pm
by boomonster
? I have pygame installed! :?: