title: pygame.error: Invalid joystick device number
body: <pre><code>import pygame
  
  pygame.init()
  j = pygame.joystick.Joystick(0)
  j.init()
  </code></pre>
  
  <p>When I run this code on my Raspberry-Pi I am getting back the following error:</p>
  
  <pre><code>  j = pygame.joystick.Joystick(0)
  pygame.error: Invalid joystick device number
  </code></pre>
  
  <p>This code was working a couple months ago, but something has clearly changed and I can not figure out what since the documentation is exactly the same as before. Any help or knowledge on the issue would be extremely appreciated.</p>