Importing sdl2.ext fails, if SDL2_image or SDL2_ttf are not installed

Issue #11 resolved
Former user created an issue

I get the following error on my system. It looks like the RuntimeError is not properly handled on importing sdl2.sdlttf or sdl2.sdlimage within sdl2.ext

c:\Python27\Lib\site-packages\sdl2\examples>python Traceback (most recent call last): File "", line 10, in <module> import sdl2.ext as sdl2ext File "C:\Python27\lib\site-packages\sdl2\", line 14, in <module> from .common import * File "C:\Python27\lib\site-packages\sdl2\ext\", line 8, in <module> from .. import sdlttf File "C:\Python27\lib\site-packages\sdl2\", line 40, in <module> os.getenv("PYSDL2_DLL_PATH")) File "C:\Python27\lib\site-packages\sdl2\", line 51, in init__ raise RuntimeError("could not find any library for %s" % libinfo) RuntimeError: could not find any library for SDL2_ttf

Comments (1)

  1. Log in to comment