1. Marcus von Appen
  2. py-sdl2
  3. Issues
Issue #11 resolved

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

Anonymous 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 draw.py Traceback (most recent call last): File "draw.py", line 10, in <module> import sdl2.ext as sdl2ext File "C:\Python27\lib\site-packages\sdl2\ext__init.py", line 14, in <module> from .common import * File "C:\Python27\lib\site-packages\sdl2\ext\common.py", line 8, in <module> from .. import sdlttf File "C:\Python27\lib\site-packages\sdl2\sdlttf.py", line 40, in <module> os.getenv("PYSDL2_DLL_PATH")) File "C:\Python27\lib\site-packages\sdl2\dll.py", 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