title: Kivy :[CRITICAL] [App ] Unable to get a Window, abort
body: <p>I recently installed <code>kivy</code> in my Ubuntu 16.04 machine, and tried to create first application with it as given in the <a href="https://kivy.org/docs/tutorials/pong.html" rel="nofollow noreferrer">docs</a>.
  But as soon as I tried running <code>main.py</code>, I got the following error:</p>
  
  <pre><code>[INFO   ] [Logger      ] Record log in /home/yathartha/.kivy/logs/kivy_17-08-03_7.txt
  [INFO   ] [Kivy        ] v1.9.0
  [INFO   ] [Python      ] v3.5.2 (default, Nov 17 2016, 17:05:23) 
  [GCC 5.4.0 20160609]
  [INFO   ] [Factory     ] 173 symbols loaded
  [INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
  [INFO   ] [OSC         ] using &lt;multiprocessing&gt; for socket
  [INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
  [CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
  egl_rpi - ImportError: cannot import name 'bcm'
    File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
      fromlist=[modulename], level=0)
    File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in &lt;module&gt;
      from kivy.lib.vidcore_lite import bcm, egl
  
  sdl2 - TypeError: expected bytes, str found
    File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in core_select_lib
      cls = cls()
    File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 121, in __init__
      super(WindowSDL, self).__init__()
    File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line 616, in __init__
      self.create_window()
    File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 171, in create_window
      self.fullscreen, resizable, state)
    File "kivy/core/window/_window_sdl2.pyx", line 60, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy/core/window/_window_sdl2.c:1447)
  
  x11 - ImportError: No module named 'kivy.core.window.window_x11'
    File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in core_select_lib
      fromlist=[modulename], level=0)
  
  [CRITICAL] [App         ] Unable to get a Window, abort.
  </code></pre>
  
  <p>I am unable to understand what is happening. I even tried installing <code>pygame</code> using following command:</p>
  
  <pre><code>python3 -m pip install pygame --user
  </code></pre>
  
  <p>but it did not remove the error. Please can anyone help me out!!</p>