ValueError: could not find function 'SDL_LoadFile_RW'

Issue #105 new
Mads created an issue


I cannot seem to find anyone else having this issue, so it might be a new one.

I've tried to install SDL2 with PyPy 2.7 v6.0 on Raspbian.

These are the steps I took:

sudo apt install git libsdl2-dev

curl -OL
tar xvf pypy2-v6.0.0-linux-armhf-raspbian.tar.bz2

curl -O
curl -O

sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb
sudo dpkg -i libffi5_3.0.10-3+deb7u2_armhf.deb

./pypy2-v6.0.0-linux-armhf-raspbian/bin/pypy -m ensurepip
./pypy2-v6.0.0-linux-armhf-raspbian/bin/pypy -m pip install git+
./pypy2-v6.0.0-linux-armhf-raspbian/bin/pypy -m pip install git+

Then starting PyPy and trying to import sdl2, gives me the following error:

pi@raspberrypi:~ $ ./pypy2-v6.0.0-linux-armhf-raspbian/bin/pypy -c "import sdl2"
Traceback (most recent call last):
  File "<module>", line 1, in <module>
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-packages/sdl2/", line 5, in <module>
    from .audio import *
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-packages/sdl2/", line 6, in <module>
    from .rwops import SDL_RWops, SDL_RWFromFile
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-packages/sdl2/", line 54, in <module>
    SDL_LoadFile_RW = _bind("SDL_LoadFile_RW", [POINTER(SDL_RWops), POINTER(c_size_t), c_int], c_void_p)
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-packages/sdl2/", line 87, in bind_function
    (funcname, self._dll))
ValueError: could not find function 'SDL_LoadFile_RW' in <CDLL '', handle 591978 at 73e11b10>

Comments (0)

  1. Log in to comment