pyspotify Segmentation Fault (libspotify)
Question: I am trying to work with pyspotify with but no luck.

Setup:

  * Ubuntu - 12.04 TLS - fresh(ish) install
  * virtualenv - 1.8.2
  * libspotify - 12.1.51
  * pyspotiy - dev (1.8)

I have the pyspotify example `jukebox.py` but when I run it it always gives
Segmentation Fault

_(I had this example was working on a separate VM before however need to
replicate the functionality on a fresh VM.)_

    
    
    $ python jukebox.py -uEMAIL_ADDRESS -pPASSWORD
    Logging in, please wait...
    Segmentation fault (core dumped)
    

The `spotify_appkey.key` is in the same folder (it doesn't get as far as the
SegFault without the key).

Additionally I created a script to simply connect to Spotify but this also
gives a Segmentation Fault.

from spotify.manager import

    
    
    from spotify import SpotifySessionManager
    
    session = SpotifySessionManager(username=EMAIL_ADDRESS, password=PASSWORD)
    
    print('Connecting')
    session.connect()
    print('Connected')
    

This also give:

    
    
    $ python test.py
    Session created
    Connecting
    Segmentation fault (core dumped)
    


Answer: Try to run `jukebox.py` as root.

