Beaglebone Black with Adafruit
Based on the Adafruit Learn page for the library


  The majority of this library will need to be run as sudo in Ubuntu.


this Stackoverflow question, and the Github Bug closure as it is by design required to be run as sudo or root, it should be an issue of not running the script as sudo.