Forum Archive

Install SDL2 and PyBoy?

Drizzel

I’m trying to implement PyBoy, a GameBoy Color Emulator written in Python, into a custom Ui. PyBoy has to be installed by downloading the project folder and then running setup.py, which requires modules that seem to not be supported by Pythonista. So I just moved the pyboy folder into site-packages-3, but running

from pyboy import pyboy

results in

ImportError: could not find any library for SDL2 (PYSDL2_DLL_PATH: unset)

And

pip install pysdl2

doesn’t change anything.

Is there any way to set PYSDL2_DLL_PATH, assuming pysdl2 can run in Pythonista?

mikael

@Drizzel, looks like an impossible mission:

”SDL is written in C, works natively with C++, and there are bindings available for several other languages, including C# and Python.”

We cannot install C libraries into Pythonista.

Drizzel

@mikael All right, thank you