kivy/kivy — pull request #2280 by matham (2014-06-22 21:24:46+00:00)
Title: When core critically fails to load a lib, print all the exceptions.

Before, when core failed to load e.g. window, we'd get the following exception:

```
[WARNING ] [WinPygame ] SDL wrapper failed to import!
[CRITICAL ] [Window ] Unable to find any valuable Window provider at all!
[CRITICAL ] [App ] Unable to get a Window, abort.
```

Which is completely unhelpful. In this case, it was because I failed to set the height of the window in config.ini. With this change, it'd now print the following:

```
[WARNING ] [WinPygame ] SDL wrapper failed to import!
[CRITICAL ] [Window ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name bcm
File "C:\kivy-dev\kivy\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "C:\kivy-dev\kivy\kivy\core\window\window_egl_rpi.py", line 12, in
from kivy.lib.vidcore_lite import bcm, egl

pygame - ValueError: invalid literal for int() with base 10: ''
File "C:\kivy-dev\kivy\kivy\core\__init__.py", line 65, in core_select_lib
cls = cls()
File "C:\kivy-dev\kivy\kivy\core\window\__init__.py", line 513, in __init__
kwargs['height'] = Config.getint('graphics', 'height')
File "C:\kivy-dev\Python\lib\ConfigParser.py", line 359, in getint
return self._get(section, int, option)
File "C:\kivy-dev\Python\lib\ConfigParser.py", line 356, in _get
return conv(self.get(section, option))

sdl - ImportError: cannot import name sdl
File "C:\kivy-dev\kivy\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "C:\kivy-dev\kivy\kivy\core\window\window_sdl.py", line 15, in
from kivy.core.window import sdl

x11 - ImportError: No module named window_x11
File "C:\kivy-dev\kivy\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)

[CRITICAL ] [App ] Unable to get a Window, abort.
```