ValueError: could not find function 'SDL_LoadFile_RW'

Issue #105 new
Mads created an issue

Hi,

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 https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux-armhf-raspbian.tar.bz2
tar xvf pypy2-v6.0.0-linux-armhf-raspbian.tar.bz2

curl -O http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb
curl -O http://security.debian.org/debian-security/pool/updates/main/libf/libffi/libffi5_3.0.10-3+deb7u2_armhf.deb

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+https://bitbucket.org/pypy/numpy.git
./pypy2-v6.0.0-linux-armhf-raspbian/bin/pypy -m pip install git+https://github.com/marcusva/py-sdl2.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/__init__.py", line 5, in <module>
    from .audio import *
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-packages/sdl2/audio.py", line 6, in <module>
    from .rwops import SDL_RWops, SDL_RWFromFile
  File "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-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 "/home/pi/pypy2-v6.0.0-linux-armhf-raspbian/site-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 591978 at 73e11b10>

Comments (0)

  1. Log in to comment