I'm using 2.0.0a1 and getting runtime errors due to too much recursion. It looks like it might be related to some faulty error handing with malloc(). I'm just guessing based on the traceback.
import spotify
def login(session, name, pwd):
"""Block until login is sucessful"""
import threading
logged_in_event = threading.Event()
def logged_in_listener(session, error_type):
logged_in_event.set()
session.login(name, pwd)
session.on(spotify.SessionEvent.LOGGED_IN, logged_in_listener)
while not logged_in_event.wait(0.1):
session.process_events()
session = spotify.Session()
login(session, username, password)
pl = spotify.Playlist('spotify:user:durden20:playlist:1chOHrXPCFcShCwB357MFX')
pl.load()
The referenced playlist only has 11 tracks. So, I'm guessing this isn't a memory issue, but again that's just a guess.
From callback <function playlist_update_in_progress at 0x10b003848>:
Traceback (most recent call last):
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 629, in playlist_update_in_progress
playlist = Playlist._cached(sp_playlist, add_ref=True)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 53, in _cached
playlist = Playlist(sp_playlist=sp_playlist, add_ref=add_ref)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 69, in __init__
lib.sp_playlist_add_ref(sp_playlist)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/__init__.py", line 43, in wrapper
with _lock:
RuntimeError: maximum recursion depth exceeded while calling a Python object
From callback <function playlist_update_in_progress at 0x10b003848>:
Traceback (most recent call last):
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 629, in playlist_update_in_progress
playlist = Playlist._cached(sp_playlist, add_ref=True)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 53, in _cached
playlist = Playlist(sp_playlist=sp_playlist, add_ref=add_ref)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 69, in __init__
lib.sp_playlist_add_ref(sp_playlist)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/__init__.py", line 43, in wrapper
with _lock:
File "/usr/local/Cellar/python/2.7.3/lib/python2.7/threading.py", line 125, in acquire
self._note("%s.acquire(%s): recursive success", self, blocking)
RuntimeError: maximum recursion depth exceeded
From callback <function playlist_update_in_progress at 0x10b003848>:
Traceback (most recent call last):
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 629, in playlist_update_in_progress
playlist = Playlist._cached(sp_playlist, add_ref=True)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 51, in _cached
if sp_playlist in spotify.session_instance._cache:
RuntimeError: maximum recursion depth exceeded
From callback <function playlist_update_in_progress at 0x10b003848>:
Traceback (most recent call last):
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 629, in playlist_update_in_progress
playlist = Playlist._cached(sp_playlist, add_ref=True)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 53, in _cached
playlist = Playlist(sp_playlist=sp_playlist, add_ref=add_ref)
File "/Users/durden/.virtualenvs/spotify_tools/lib/python2.7/site-packages/spotify/playlist.py", line 58, in __init__
super(Playlist, self).__init__()
RuntimeError: maximum recursion depth exceeded while calling a Python object
python(10125,0x7fff7dcc2310) malloc: *** error for object 0x7fe1b2d730a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
I'm using 2.0.0a1 and getting runtime errors due to too much recursion. It looks like it might be related to some faulty error handing with malloc(). I'm just guessing based on the traceback.
I'm running 10.9 and Python 2.7.3 and trying the following code:
The referenced playlist only has 11 tracks. So, I'm guessing this isn't a memory issue, but again that's just a guess.
This results in the following traceback: